if($name!="Forums" AND $name!="Wealth" AND $name!="About" AND $name!="Feedback" AND $name!="Amazon" AND $name!="Private Messages" AND $name!="FAQ" AND $name!="Recommend Us" AND $name!="Your Account" AND $name!="Stories Archive" AND $name!="Surveys" AND $name!="Top" AND $name!="Content" AND $name!="Submit News" AND $name!="Web_Links" AND $name!="Contact" AND $name!="Privacy" AND $name!="Search" AND $name!="WebMail" AND $name!="Books" AND $name!="Downloads" AND $name!="Tricks" AND $name!="Topics" AND $name!="Sections" AND $name!="Members List")
blocks(left);
Posted: Wed Nov 10, 2004 1:09 pm Post subject: Details
The modules are these:
Code:
if($name!="Forums" AND $name!="Wealth" AND $name!="About" AND $name!="Feedback" AND $name!="Amazon" AND $name!="Private Messages" AND $name!="FAQ" AND $name!="Recommend Us" AND $name!="Your Account" AND $name!="Stories Archive" AND $name!="Surveys" AND $name!="Top" AND $name!="Content" AND $name!="Submit News" AND $name!="Web_Links" AND $name!="Contact" AND $name!="Privacy" AND $name!="Search" AND $name!="WebMail" AND $name!="Books" AND $name!="Downloads" AND $name!="Tricks" AND $name!="Topics" AND $name!="Sections" AND $name!="Members List")
blocks(left);
Although, in fact presume ALL modules.
This is the entire theme.php
Code:
include("themes/Tropicale/tables.php");
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#FFD8B0\" text=\"#655D74\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
if ($banners == 1) {
include("banners.php");}
if($name!="Forums" AND $name!="Wealth" AND $name!="About" AND $name!="Feedback" AND $name!="Amazon" AND $name!="Private Messages" AND $name!="FAQ" AND $name!="Recommend Us" AND $name!="Your Account" AND $name!="Stories Archive" AND $name!="Surveys" AND $name!="Top" AND $name!="Content" AND $name!="Submit News" AND $name!="Web_Links" AND $name!="Contact" AND $name!="Privacy" AND $name!="Search" AND $name!="WebMail" AND $name!="Books" AND $name!="Downloads" AND $name!="Tricks" AND $name!="Topics" AND $name!="Sections" AND $name!="Members List")
blocks(left);
/************************************************************/
/* 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 ($index == 1) {
$tmpl_file = "themes/Tropicale/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/Tropicale/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";
// echo "<center><br><font class=\"small\">:: Tropicale PHP-Nuke theme by <a href=\"http://members.lycos.co.uk/nukedev\">NukeDiva</a> based on fisubgreen by MikeM at <a href=\"http://www.nukemods.com\">NukeMods</a> ::</font></center>";
echo "<br>\n";
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
I was confused because that code should already not show the left blocks on those stated modules. Is that not functioning?
If that is working, then you just need to add the same thing to the function themefooter. I added $name to the global line (though it seems we didn't have to do that in the function themeheader?) and added the modules list to the "if($index==1)" line.
Code:
function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message, $name;
if ($index == 1 AND $name!="Forums" AND $name!="Wealth" AND $name!="About" AND $name!="Feedback" AND $name!="Amazon" AND $name!="Private Messages" AND $name!="FAQ" AND $name!="Recommend Us" AND $name!="Your Account" AND $name!="Stories Archive" AND $name!="Surveys" AND $name!="Top" AND $name!="Content" AND $name!="Submit News" AND $name!="Web_Links" AND $name!="Contact" AND $name!="Privacy" AND $name!="Search" AND $name!="WebMail" AND $name!="Books" AND $name!="Downloads" AND $name!="Tricks" AND $name!="Topics" AND $name!="Sections" AND $name!="Members List") {
$tmpl_file = "themes/Tropicale/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/Tropicale/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";
// echo "<center><br><font class=\"small\">:: Tropicale PHP-Nuke theme by <a href=\"http://members.lycos.co.uk/nukedev\">NukeDiva</a> based on fisubgreen by MikeM at <a href=\"http://www.nukemods.com\">NukeMods</a> ::</font></center>";
echo "<br>\n";
}
Just add $name to the global line in the function themeheader too.
That's the only difference between the function themefooter (which you say works) and the function themeheader.
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