Free Press Release Submission




MB Publishing Webmaster Resource ::
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 


No Theme Blocks

 
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> Nuke Themes
View previous topic :: View next topic  
Author Message
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 412

PostPosted: Wed Nov 10, 2004 7:57 am    Post subject: No Theme Blocks Reply with quote

How can we get this to display zero blocks on the left and right for the stated modules?

Code:
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");}
   
    $topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
    while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
    if ($topicid==$topic) { $sel = "selected "; }
   $topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
   $sel = "";
    }
    if ($username == "Anonymous") {
   $theuser = " ;; ;;<a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
   $theuser = " ;; ;;Welcome $username!";
    }
   $public_msg = public_message();
    $tmpl_file = "themes/Tropicale/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
   
    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);
   
   
   
    $tmpl_file = "themes/Tropicale/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
Humpa
Site Admin
Site Admin


Joined: Feb 05, 2004
Posts: 23

PostPosted: Wed Nov 10, 2004 12:00 pm    Post subject: Reply with quote

I dont really follow.
Which stated modules are you referring to?

Also, the code for right blocks is not in that function.
Back to top
View users profile Send private message Visit posters website
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 412

PostPosted: Wed Nov 10, 2004 1:09 pm    Post subject: Details Reply with quote

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");}
   
    $topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
    while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
    if ($topicid==$topic) { $sel = "selected "; }
   $topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
   $sel = "";
    }
    if ($username == "Anonymous") {
   $theuser = " ;; ;;<a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
   $theuser = " ;; ;;Welcome $username!";
    }
   $public_msg = public_message();
    $tmpl_file = "themes/Tropicale/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
   
    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);
   
   
   
    $tmpl_file = "themes/Tropicale/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* 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 themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/Tropicale/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/Tropicale/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
    $tmpl_file = "themes/Tropicale/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
Humpa
Site Admin
Site Admin


Joined: Feb 05, 2004
Posts: 23

PostPosted: Wed Nov 10, 2004 1:53 pm    Post subject: Reply with quote

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";
}
Back to top
View users profile Send private message Visit posters website
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 412

PostPosted: Wed Nov 10, 2004 2:05 pm    Post subject: Left Blocks Reply with quote

No, the left blocks ARE showing.
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
Humpa
Site Admin
Site Admin


Joined: Feb 05, 2004
Posts: 23

PostPosted: Wed Nov 10, 2004 2:33 pm    Post subject: Reply with quote

How about the right blocks?

If the left blocks are still showing, then what is all that code for? It never worked?
Back to top
View users profile Send private message Visit posters website
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 412

PostPosted: Wed Nov 10, 2004 2:51 pm    Post subject: Left and Right Reply with quote

The right blocks do not show, the left do.

It never worked.
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
Humpa
Site Admin
Site Admin


Joined: Feb 05, 2004
Posts: 23

PostPosted: Wed Nov 10, 2004 3:41 pm    Post subject: Reply with quote

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.
Back to top
View users profile Send private message Visit posters website
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 412

PostPosted: Wed Nov 10, 2004 7:41 pm    Post subject: Da Man Reply with quote

Yo da man.
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> Nuke Themes All times are GMT + 1 Hour
Page 1 of 1

 

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
Home | News Feeds | Release Archive | Web Marketing | Weight Loss | Publish Your Links | Press Release Topics | Free Downloads | Press FAQs | AvantGO | Amazon Store
Webmaster Forums | Search Releases | Press Topics | Feedback | Submit Press Release | Webmaster Surveys | Recommend | Top | Account | PM | Prweb | Free Link Submission | Add Downloads | New Media | Audio School | TOS

The comments are property of their posters, all the rest 2004 - 2008 by MB
Audana Ltd
You can syndicate our news using the file backend.php
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 1.377 Seconds. -