Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
NoFantasy
Worker
Worker



Joined: Apr 26, 2005
Posts: 114

PostPosted: Thu Nov 30, 2006 1:11 pm Reply with quote

Why is it i can't use blocks('left') in the function themefooter() ?
This is a sample of what i'm trying to do:
Code:
function themeheader() {

    global $banners;
    echo "<body>\n";
    if ($banners) {
   include_once("includes/babanners1.php");
    }
   echo "<div id=\"logo\"></div>

<div id=\"menu\">
... a small horizontal menu here, not relevant...
</div>

<div id=\"centercontent\">\n";

   $public_msg = public_message();
   echo "<div id=\"public\">
$public_msg
</div>\n";
}


function themefooter() {
global $index;
   echo "</div>\n";

   echo "<div id=\"leftcontent\">\n";
   blocks('left');
   echo "</div>\n";

   if (defined('INDEX_FILE')) {
   echo "<div id=\"rightcontent\">\n";
   blocks('right');
   echo "</div>\n";
   } else {
   echo "<div id=\"norightcontent\"></div>\n";
   }

   echo "<div id=\"footer\">\n";
    footmsg();
   echo "</div>\n";
}

The CSS isn't really relevant either...at least i don't think it is, once i move the blocks('left') into the function themeheader() it's all ok.

However, i don't want to render the left blocks before the content, thats the reason i'm asking. I want the content of my page to appear as soon in the code as possible (yes, you guessed it...for SEO reasons of course).

Also, a bit offtopic but...why is it there is no difference using blocks('left') instead of just blocks('l') ?
 
View user's profile Send private message
NoFantasy







PostPosted: Thu Nov 30, 2006 1:22 pm Reply with quote

...and the error i see in FireFox is:

The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

IE and Opera stays white, just trying to load the pages...
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Nov 30, 2006 2:58 pm Reply with quote

There should be no reason why you couldn't do that. We need to see error messages from your error log

Also, phpNuke blocks function doesn't care whether you use blocks("left") or blocks("l") - it only checks the first letter to determine if its left or right blocks.

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
NoFantasy







PostPosted: Thu Nov 30, 2006 3:16 pm Reply with quote

...i assume you mean the apache error log? Don't have easy access to that one... but at least now i know it should be possible to use the blocks() "anywhere" i want.

Guess i just have to dig around, see if i have any flaws in the code somewhere else causing this to happen...which is probably the most likely reason. Thanks so far!

Thanks for the clarification about the use of left vs. l too!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©