Our Sponsors



PHP Nuke themes, stock photos, icons, drupal themes and more.
Custom jobs at low cost, free lancers and service buyers.



Western Studios :: View topic - left blocks in Inpire-Citrus theme?
Need Jobs done? Use our brand new Jobs Board to get your projects done at affordable prices.
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


left blocks in Inpire-Citrus theme?



 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> Themes
Western Studios

New Member
New Member
~PHP Nuke User~


Posts: 3
Next Group: 2 posts
revspalding wrote:

I'd like to hide the left blocks in the theme Inspire-Citrus. I've modified other themes to hide the blocks, but they all used html template files, and this theme only has a theme.php file. I'm a little intimidated, but could someone tell me if the code that I've included here is OK?

Here is the existing code:

And here is how I think I should modify the code to hide the left blocks when the calendar module is being displayed.

Code:
echo    "<!-- FIN DEL TITULO -->\n"
      ."<table width=\"95%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n";
 
if ($name=='Calendar') {
    /* Don't display it. */
   }
   else { 
   echo "<td width=\"150\" valign=\"top\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/Inspire-Citrus/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n";
}

echo "<td width=\"100%\">\n";
}

Does that look right? The way it looks to me, this will keep the left column table from being formed and will allow the remaining table data to extend across the 100% tag.

Posted: Fri Dec 23, 2005 10:08 am

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3358
Staff
Next Group: 1642 posts
admin(Mark) wrote:

hi revspalding

This is the part you should hide

Code:
blocks(left);


use the if statement like this:

Code:
if($name =='Calender'){

}else{
blocks(left);
}


Make sure you have $name in the globals.

Posted: Fri Dec 23, 2005 2:38 pm

Post new topic   Reply to topic    Western Studios Forum Index -> PHP Nuke -> Themes All times are GMT - 5 Hours
Page 1 of 1

 
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


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts PHP paste bin added 0 admin 866 Wed Mar 23, 2005 6:47 pm
admin View latest post
No new posts PHP Nuke klips 0 admin 710 Fri Mar 18, 2005 6:52 pm
admin View latest post
No new posts Paypal success.php 1 Jabba 882 Fri Mar 04, 2005 7:00 pm
admin View latest post
No new posts Testing PHP tags 2 admin 859 Thu Mar 03, 2005 6:06 pm
admin View latest post
No new posts PHP Nuke Icons 0 admin 916 Mon Aug 23, 2004 4:05 pm
admin View latest post
 
Forums ©