PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
b14ze
New Member
New Member


Joined: Jul 22, 2006
Posts: 10

PostPosted: Wed Oct 03, 2007 9:32 am Reply with quote Back to top

When my site's users switch to a different theme (most of them), they loose the blocks on the right hand side. The blocks are a paypal donation block, a shoutbox block, and a whoisonline block. Any help would be appreciated!
View user's profile Send private message
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1853
Location: United Kingdom

PostPosted: Wed Oct 03, 2007 10:25 am Reply with quote Back to top

Please do a search in the forums this has been discussed before. Wink
View user's profile Send private message
PHrEEkie
Subject Matter Expert


Joined: Feb 23, 2004
Posts: 250

PostPosted: Wed Oct 03, 2007 10:26 am Reply with quote Back to top

Right block visibility is controlled by whatever module is loaded. If right blocks are visible on one theme but not others, then we can rule out a problem with the module and the problem then will most likely be in the theme itself.

Most often, some poorly written or modified themes has missing table close tags (</table>). These omissions are usually found in either theme.php, tables.php or footer.html/php depending on the filesystem that theme uses.

Nuke uses an extremely complicated combination of nested tables, which makes finding one missing tag quite daunting. My way of chasing it down is to load the erroneous page and load the source into a text editor. Makes it a little easier to see what the browser is seeing that way.

PHrEEk
View user's profile Send private message
jakec
Moderator


Joined: Feb 06, 2006
Posts: 1853
Location: United Kingdom

PostPosted: Wed Oct 03, 2007 10:37 am Reply with quote Back to top

It is more than likely the theme, especially as you say it happens when your users change the theme.

Have a look at the following fix posted here:
Only registered users can see links on this board!
Get registered or login to the forums!


Hopefully this will fix it for you. Wink
View user's profile Send private message
b14ze
New Member
New Member


Joined: Jul 22, 2006
Posts: 10

PostPosted: Wed Oct 03, 2007 9:57 pm Reply with quote Back to top

jakec wrote:
It is more than likely the theme, especially as you say it happens when your users change the theme.

Have a look at the following fix posted here:
Only registered users can see links on this board!
Get registered or login to the forums!


Hopefully this will fix it for you. Wink


Thank you from the bottom of my heart jakec. You are a gentleman, and a scholar! Worked like a charm.. Very Happy Oh and FTR, I did do a search. I was just having no luck.

*UPDATE* ok so I have most of the themese working correctly now, except one pesky theme.php that I couldnt find the values in the file listed in the fix. The theme does have this code in there wich looks as if it is telling nuke NO RIGHT BLOCKS.

Code:
    if (!defined("NO_RIGHT_BLOCKS") && !defined("ADMIN_FILE")) {
echo"</td>"
  . "    <td width=\"150\" valign=\"top\">"
 ."";
View user's profile Send private message
oyjord
Hangin' Around


Joined: Aug 25, 2006
Posts: 44

PostPosted: Fri Jan 18, 2008 5:46 pm Reply with quote Back to top

I found this solution in another thread elsewhere long ago, don't know if it'll help, but here goes:

Quote:
open your theme.php

find

Code:
if ($index == 1) {


and change it to

Code:
if (defined('INDEX_FILE')) {
View user's profile Send private message
McCain
New Member
New Member


Joined: Sep 21, 2007
Posts: 8

PostPosted: Wed Feb 06, 2008 12:36 pm Reply with quote Back to top

Praise be to god for the search engine! I believe these fixes will help me with my problem as well.

Thanks!
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7485
Location: Arizona

PostPosted: Wed Feb 06, 2008 6:50 pm Reply with quote Back to top

McCain, welcome to RavenPHPScripts!
View user's profile Send private message Visit poster's website
McCain
New Member
New Member


Joined: Sep 21, 2007
Posts: 8

PostPosted: Wed Feb 06, 2008 8:29 pm Reply with quote Back to top

montego wrote:
McCain, welcome to RavenPHPScripts!

Thanks for the welcome.

Looks like I may have celebrated to early. When I got home I opened my theme.php file, but couldn't find the mentioned codes in the thread, all I can find in my theme.php file is ...

Code:
/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
    if (defined('INDEX_FILE') || $index == 1) {
   $tmpl_file = "themes/AcidTechBlood/center_right.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   eval($thefile);
   print $r_file;
   blocks(right);
    }   
    $tmpl_file = "themes/AcidTechBlood/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
                    echo "<center>\n";
        $footer_message = footmsg();
            echo "</center>\n";
// PLEASE DO NOT TOUCH THE NEXT LINE.
// YOU CAN ONLY ADD TO IT IF YOU MODIFY THIS THEME :-)
        echo "<center><br><font class=\"small\">:: AcidTechBlood phpbb2 style by <a href=\"http://www.freestylexl.com/\">Freestyle XL</a> / PHP-Nuke theme by <a href=\"http://www.cmsrevolution.com\">www.cmsrevolution.com</a> ::</font></center>"; 
echo "<br>\n";
}


Not sure what to change here to keep the right hand blocks from vanishing when someone clicks the forum link, or the custom content links I have up.

Any ideas?

Thanks.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Thu Feb 07, 2008 8:44 am Reply with quote Back to top

Oh, you want right blocks? Even in forums? You'll have to modify the modules by adding a

define('INDEX_FILE', true);

to their files (usually modules/xxx/index.php).
View user's profile Send private message
McCain
New Member
New Member


Joined: Sep 21, 2007
Posts: 8

PostPosted: Thu Feb 07, 2008 10:42 am Reply with quote Back to top

Gremmie wrote:
Oh, you want right blocks? Even in forums? You'll have to modify the modules by adding a

define('INDEX_FILE', true);

to their files (usually modules/xxx/index.php).

Do I put that line of code anywhere in the index.php file?
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Thu Feb 07, 2008 12:07 pm Reply with quote Back to top

I would put it at file scope (not inside any function). After the opening comment block (if there is one) should work.
View user's profile Send private message
McCain
New Member
New Member


Joined: Sep 21, 2007
Posts: 8

PostPosted: Thu Feb 07, 2008 1:31 pm Reply with quote Back to top

Gremmie wrote:
I would put it at file scope (not inside any function). After the opening comment block (if there is one) should work.

Ok I'll try that. Should work? Hehe, I'm still learning so we shall see. Smile

Thanks again.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum