Left side blocks to appear on forums & External links

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Left side blocks to appear on forums & External links
tick
CZ Newbie
tick has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 23, 2004
0.00 posts per day
Posts: 25
Points: 1,842
   
How can i get the left side blocks to appear on the forums, private messages and member list?

And

How can i get external links to open in the page, like the content pages do, instead of in a new window?



Back to top Reply with quote
#2   re: Left side blocks to appear on forums & External link
tick
CZ Newbie
tick has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 23, 2004
0.00 posts per day
Posts: 25
Points: 1,842
   
this is my theme.php for my theme
<?php
$bgcolor1 = "#000000";
$bgcolor2 = "#000000";
$bgcolor3 = "#000000";
$bgcolor4 = "#000000";
$textcolor1 = "#ffffff";
$textcolor2 = "#ffffff";

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
   if($informant != "") {
       $boxstuff = "<a href=\"user.php?op=userinfo&amp;uname=$informant\"><b>$informant</a> ";
   } else {
       $boxstuff = "<b>Un anonimo ";
   }
   $boxstuff .= "segnala:</b> \"$thetext\"$notes\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

/************************************************************/
/* Function themeheader()                                   */
/************************************************************/

function themeheader() {
    global $banners, $name; 
    echo "<body bgcolor=\"#000000\" text=\"#ffffff\" link=\"0000ff\" leftmargin=0 rightmargin=0 topmargin=0><br>\n";
    if ($banners) {
   include("banners.php");
   echo "<br>";
    }

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"80\" align=\"center\">\n"

    ."<tr><td width=\"100%\" height=\"11\" valign=\"bottom\">\n"
   ."<map name=\"FPMap0\">"
   ."</map>"
   ."<img border=\"0\" src=\"themes/stal_clanspy/images/logo.gif\" usemap=\"#FPMap0\" width=\"800\" height=\"100\">"


    ."<tr><td width=\"100%\">\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
   ."<tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#000000'>\n"
   ."<tr><td bgcolor=\"#000000\"><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr>\n";   
    echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"#000000\" cellspacing=\"0\" border=\"0\">\n"
   ."<tr valign=\"top\">\n"
   ."<td><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
   ."<td width=\"130\" bgcolor=\"#000000\" valign=\"top\">\n";
global $name;
    if($name!=Forums)
    {
    blocks(left);
    }
    echo "</td><td><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}

/************************************************************/
/* 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;
    echo "<br>";
    if ($index == 1) {
   echo "</td><td><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"130\" bgcolor=\"#000000\">\n";
   blocks(right);
   echo "<td><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\">";
    }
else {
   echo "</td><td colspan=\"2\"><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"4\" height=\"1\" border=\"0\" alt=\"\">";
    }
    echo "<br><br></td></tr></table>\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
style=\"border-collapse: collapse\" bordercolor=\"#000000\" width=\"100%\"
bgcolor=\"#000000\"><tr><td width=\"100%\">"
   ."<br><center>";
    footmsg();
   echo "<br>";
   // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
   echo "<a href=\"http://www.thethemes.net\" target=\"_blank\"><img src=\"themes/stal_clanspy/images/bar.gif\" align=\"right\" width=\"794\" height=\"17\" border=\"0\"></a>";
   echo "</center></table></table></table>";
}


function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\"><tr>\n"
   ."<td background=\"themes/stal_clanspy/images/header_news.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b> ;; ;; ;; ;; ;; ;;$title</b></font></td></tr>\n"
   ."<tr><td background=\"themes/stal_clanspy/images/back1.gif\" colspan=\"2\" bgcolor=\"#000000\">\n"
   ."<table border=\"0\" width=\"100%\" align=\"center\"><tr><td>\n"
   ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td bgcolor=\"#000000\" align=\"left\">\n"
    ." ;"
   ."<b><font class=\"tiny\">"._POSTEDBY." ";
    formatAidHeader($aid);
    echo " - $time $timezone <br></font>\n"
   ."<font class=\"content\">$morelink</font></center>\n"
   ."<img src=\"themes/stal_clanspy/images/pixel.gif\" border=\"0\" height=\"1\">"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td background=\"themes/stal_clanspy/images/header_news_down.gif\" width=\"100%\" height=\"15\"></tr>"
   ."<tr><td bgcolor=\"#000000\"><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"100%\" height=\"4\"></td></tr></table>\n";
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\">"
   ."<tr><td background=\"themes/stal_clanspy/images/header_news_article.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b> ;; ;; ;; ;; ;; ;;$title</b></font></td></tr>\n"
   ."<tr><td colspan=\"2\" background=\"themes/stal_clanspy/images/back1.gif\"><br>\n"
   ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
   ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes="", $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table><br>\n"
   ."</td></tr>\n"
   ."</table></td></tr>\n"
   ."<tr><td background=\"themes/stal_clanspy/images/header_news_down_article.gif\" width=\"100%\" height=\"15\"></tr>"
   ."<tr><td><br><div align=\"center\"><a href=\"http://www.thethemes.net\" target=\"_blank\"><img src=\"http://www.thethemes.net/banner.jpg\" alt=\"ClanSpy.net advertising\" width=\"468\" height=\"60\" border=\"0\"></a></div></td></tr>\n"
   ."<tr><td bgcolor=\"#000000\"><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"100%\" height=\"4\"></td></tr></table>\n";
}

function themesidebox($title, $content) {
    echo "<table border=\"0\" align=\"center\" width=\"130\" cellpadding=\"0\" cellspacing=\"0\">"
   ."<tr><td background=\"themes/stal_clanspy/images/header.gif\" width=\"130\" height=\"16\">"
   ." ;; ;; ;;<font color=\"#cccccc\"><b>$title</b></font>"
   ."</td></tr><tr><td><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"100%\" height=\"1\"></td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"130\">\n"
   ."<tr><td width=\"130\" bgcolor=\"#000000\">\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"130\">\n"
   ."<tr><td background=\"themes/stal_clanspy/images/back1.gif\" width=\"130\" bgcolor=\"#000000\">\n"
   ."$content"
   ."</td></tr></table></td></tr><td background=\"themes/stal_clanspy/images/header_down.gif\" width=\"130\" height=\"16\"></td><tr><td><img src=\"themes/stal_clanspy/images/pixel.gif\" width=\"130\" height=\"4\"></td></tr></table>";
}

?>



Back to top Reply with quote
#3   re: Left side blocks to appear on forums & External link
tick
CZ Newbie
tick has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 23, 2004
0.00 posts per day
Posts: 25
Points: 1,842
   
bump

someone? icon_cry.gif



Back to top Reply with quote
#4   re: Left side blocks to appear on forums & External link
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
Please be patient. Someone will answer you as soon as possible.

Also, you sig is too big. Please resize or remove it.

Thanks.



Back to top Reply with quote
#5   re: Left side blocks to appear on forums & External link
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.71 posts per day
Posts: 5530
Points: 481,695
   
in your theme.php file that you posted, look under themeheader and remove this part of the code:

global $name;
    if($name!=Forums)
    {
    blocks(left);
    }



replace that with:

blocks(left);




do that for all your themes. For your second question, where are these external links you have? In the navigation? In the header?

You cna use the php-iframe mod which cna be found in the download section for your external links, That opens up in the main window (body) of your page


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to 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
You cannot attach files in this forum
You cannot download files in this forum