Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

How to display the Right blocks

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Author Message
sn8kebyte

Beginner
Beginner


Joined: Aug 23, 2004
Posts: 2

PostPosted: Tue Sep 21, 2004 10:07 am    Post subject: How to display the Right blocks Reply with quote

Hi Guys,

I need to display the right hand blocks when a user goes into my gallery. I can't find anything resembling $index = 0; in the index file and the theme.php file in the themes folder only handles the left block.

Chris
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: How to display the Right blocks  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue Sep 21, 2004 10:26 am    Post subject: Re: How to display the Right blocks Reply with quote

here is a chunk of my theme.php file from the theme i use on this site:
PHP: › <?php function themefooter() {
    global 
$index;    
    if (
$index == 1) {
        echo 
"<td valign=\"top\" align=\"center\" width=\"170\" bgcolor=\"#ffffff\"><br>\n";
        
blocks(right);
    } 
?>


look for something similar, and add a check for the gallery module name and for it to display right blocks as well. i discourage you from doing this however, as the page will become very cramped with blocks on both sides and the gallery in the middle.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
sn8kebyte

Beginner
Beginner


Joined: Aug 23, 2004
Posts: 2

PostPosted: Tue Sep 21, 2004 2:56 pm    Post subject: Re: How to display the Right blocks Reply with quote

Hi Dari,

Thanks for the help, works great. Here is the code for anyone else interested. the right blocks are displayed for the albums and the thumbnail pages but not when viewing the full image.

You just ned to add a check for the module name before the code so translated it would be:- If $index equals 1 or $name equals "gallery" then display right blocks.

PHP: › <?php function themefooter() {
    global 
$index$name;
    if ((
$index == 1) || ($name == "gallery"))
        {
            echo 
"</td><td><img src=\"themes/fiapple/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
            
blocks(right);
        } 
?>
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Tue Sep 21, 2004 8:14 pm    Post subject: Re: How to display the Right blocks Reply with quote

Made sticky for future reference.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
costy81gl

Beginner
Beginner


Joined: Sep 02, 2006
Posts: 4

PostPosted: Thu Sep 07, 2006 9:28 am    Post subject: Re: How to display the Right blocks Reply with quote

Many of the problems with the right blocks apear when you redefine $index variable. So double check all your custom modules to see if you have a $index variable.
_________________
Costy: seo articles, retete culinare
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Other PHPNuke Issues View previous topicPrinter friendly versionView next 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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia