Help me plS Trynna modify blocks on my themE

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Help me plS Trynna modify blocks on my themE
l3revv
CZ Newbie
l3revv has been a member for over 18 year's 18 Year Member
Age: 38
Gender: Male
Status: Offline
Joined: Jul 23, 2005
0.00 posts per day
Posts: 2
Points: 116
   
ok,
heres what i need help with. im trying to make each block on my php nuke site have a different look. I have php-nuke 7.7 and i have 8 blocks activated on my site so i already know ill need to make 8 block.html files in my themes folder, one for each block. But i dont know what else ill need to do after that. heres some of my theme.php file for my theme


//************************************** Different Blocks *****************************************//

//if 0, use blocks.htm, if 1, use blocks-right.htm, if 2, use blocks-left.htm
//left blocks values
    global $swapleftright;

   if ($leftblockstemp == "2"){
   $swapleftright = "2"; // if 2, use right blocks template
   }
   if ($leftblockstemp == "1"){
   $swapleftright = "1"; // if 1, use left blocks template
   }
   if ($leftblockstemp == "0"){ // use default
   $swapleftright = "0";
   }
   if ($forumleftblocks == 1){   //hide or display left blocks on forums
         if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) { // remove left blocks for these modules //
      }
       else {
      blocks(left);
      }
   }
   else {
      blocks(left);
   }


   //right blocks values
   if ($rightblockstemp == "2"){
   $swapleftright = "2"; // if 2, use right blocks template
   }
   if ($rightblockstemp == "1"){
   $swapleftright = "1"; // if 1, use left blocks template
   }
   if ($rightblockstemp == "0"){ // use default
   $swapleftright = "0";
   }




//if 0, use blocks.htm, if 1, use blocks-right.htm, if 2, use blocks-left.htm
if ($swapleftright=="1") {
   if (file_exists("themes/WOW/blocks-right.htm")){
    $tmpl_file = "themes/WOW/blocks-right.htm";
   }
   else{
    $tmpl_file = "themes/WOW/blocks.htm";
   }
}
elseif ($swapleftright=="2") {
   if (file_exists("themes/WOW/blocks-left.htm")){
    $tmpl_file = "themes/WOW/blocks-left.htm";
   }
   else{
    $tmpl_file = "themes/WOW/blocks.htm";
   }
}
else {
    $tmpl_file = "themes/WOW/blocks.htm";
}



now im not too sure what scripts ull need to help me so if u need more than just this please just ask me here ill post it with no problem and also that isnt all of the theme.php file for my theme but its the part i think does the work for the blocks and their look.

what im doing is trying to make each block (modules, login, top 10 links, ect.) have a different look from one another not as in text look but the bg imgs look behind the text. somebody please help me?!?!?!?!?!?


Back to top Reply with quote
#2   re: Help me plS Trynna modify blocks on my themE
dkwds
CZ Active Member
dkwds has been a member for over 19 year's 19 Year Member
uk.gif
Occupation: Student
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Jul 29, 2004
0.04 posts per day
Posts: 282
Points: 12,713
   
is this actually possible? i know that the center blocks can have a different look for the ones on the side but can all blocks be made to look different?




_________________
Back to top Reply with quote
#3   re: Help me plS Trynna modify blocks on my themE
l3revv
CZ Newbie
l3revv has been a member for over 18 year's 18 Year Member
Age: 38
Gender: Male
Status: Offline
Joined: Jul 23, 2005
0.00 posts per day
Posts: 2
Points: 116
   
Im sure it is possible but not sure how to go about doing it. I found a addon to php nuke that will allow this to be done called Auto Theme 1.7, but i didnt want to buy it without knowing its limits so i used the free version called AutoTheme AT-Lite .8 and its a great addon for php nuke but i wish there were a way for this exact same thing to be done with php nuke without having to use this. Because this addon forces me to start my entire theme over which really takes some time -'_'- (from scratch). This addon is great though other than me having to start over its mostly html scripting which is easy enough. If you or anyone else would like to know more information about this addon please just private message me and ill get back with you, or just visit the makers site by clicking [ Register or login to view links on this board.] . Hopefully those of you who download this addon from his downloads page can use his works to understand better on how to do this with plain php nuke, I would still like to know because im lazy and hate starting over. Also the addon mentioned in this reply also has a PostNuke version, CPG-Nuke version, and a few more.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum