HELP! forums are pushed over!

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   HELP! forums are pushed over!
brujah96
CZ Newbie
brujah96 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 08, 2004
0.00 posts per day
Posts: 9
Points: 894
   
Someone please help, my forums are a mess..they are pushed over to the right by it seems 2 empty colums ?? as you can see here:
[ Register or login to view links on this board. ] [ Register or login to view links on this board. ]

ive been searching for hours...anyone have a clue?



Back to top Reply with quote
#2   re: HELP! forums are pushed over!
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
You make any recent changes to the theme.php for that theme? Post the contents of it.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: HELP! forums are pushed over!
brujah96
CZ Newbie
brujah96 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 08, 2004
0.00 posts per day
Posts: 9
Points: 894
   
heres the code you asked for... i realize its long sorry...also i was wondering where you got the bbcodes mod you are using here?



/************************************************************/
/* Theme Colors Definition                                  */
/************************************************************/

$bgcolor1 = "#242424";
$bgcolor2 = "#242424";
$bgcolor3 = "#292929";
$bgcolor4 = "#242424";
$textcolor1 = "#CCCCCC";
$textcolor2 = "#CCCCCC";

/************************************************************/
/* OpenTable Functions                                      */
/************************************************************/

function OpenTable() {
    global $tableStatus;
if ($tableStatus != "open"){
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
                        <tr>
                                <td width=\"9\"><img src=\"themes/ClanMtS/images/tabletl.gif\" width=\"9\" height=\"29\" border=\"0\"></td>
                                <td width=\"100%\">
                                        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
                                                <tr>
                                                        <td width=\"6\"><img src=\"themes/ClanMtS/images/tab2.gif\" width=\"100\" height=\"29\" border=\"0\"></td>
                                                        <td background=\"themes/ClanMtS/images/tabletopbg.gif\"><img src=\"themes/ClanMtS/images/tab1.gif\" width=\"100\" height=\"29\" border=\"0\"></td>
                                                        <td width=\"9\"><img src=\"themes/ClanMtS/images/tabletr2.gif\" width=\"100\" height=\"29\" border=\"0\"></td>
                                                </tr>
                                        </table>
                                </td>
                                <td width=\"9\"><img src=\"themes/ClanMtS/images/tabletr.gif\" width=\"9\" height=\"29\" border=\"0\"></td>
                        </tr>
                        <tr>
                                <td colspan=\"3\">
                                        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
                                                <tr>
                                                        <td background=\"themes/ClanMtS/images/leftside.gif\" width=\"15\"><img src=\"themes/ClanMtS/images/leftside.gif\" width=\"15\" height=\"4\" border=\"0\"></td>
                                                        <td bgcolor=\"#242424\" width=\"100%\">\n";
$tableStatus = "open";
}
else {}
}

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 CloseTable() {
    global $tableStatus;
if ($tableStatus == "open"){
    echo "</td>
                                                        <td width=\"15\" background=\"themes/ClanMtS/images/rightside.gif\"><img src=\"themes/ClanMtS/images/rightside.gif\" width=\"15\" height=\"4\" border=\"0\"></td>
                                                </tr>
                                        </table>
                                </td>
<!--                                <td width=\"15\" background=\"themes/ClanMtS/images/rightside.gif\"><img src=\"themes/ClanMtS/images/rightside.gif\" width=\"15\" height=\"4\" border=\"0\"></td>
-->                        </tr>
                        <tr height=\"45\">
                                <td width=\"9\" height=\"27\"><img src=\"themes/ClanMtS/images/tablebotl.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
                                <td width=\"100%\" height=\"27\">
                                        <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
                                                <tr>
                                                        <td width=\"9\"><img src=\"themes/ClanMtS/images/tablebotl2.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
                                                        <td background=\"themes/ClanMtS/images/tablebotbg.gif\" width=\"100%\"></td>
                                                        <td width=\"9\"><img src=\"themes/ClanMtS/images/tablebotr2.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
                                                </tr>
                                        </table>
                                </td>
                                <td width=\"9\" height=\"27\"><img src=\"themes/ClanMtS/images/tablebotr.gif\" width=\"9\" height=\"27\" border=\"0\"></td>
                        </tr>
                </table>\n";
$tableStatus = "closed";
}
else {}
}

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

/************************************************************/
/* FormatStory                                              */
/************************************************************/

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\" color=\"#505050\">$thetext$notes</font>\n";
    } else {
        if($informant != "") {
            $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $boxstuff = "$anonymous ";
        }
        $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
        echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
    }
}

/************************************************************/
/* Function themeheader()                                   */
/************************************************************/
    function themeheader() {
    global $user, $sitename, $cookie, $prefix, $sitekey, $dbi;
    mt_srand ((double)microtime()*1000000);
    $maxran = 1000000;
    $random_num = mt_rand(0, $maxran);
    $datekey = date("F j");
    $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
    $code = substr($rcode, 2, 6);
   
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    $public_msg = public_message();
    echo "$public_msg";
   
    if ($username == "Anonymous") {
        $theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\"><input type=\"text\" name=\"username\" value style=\"width:100;height:19;FONT-SIZE: 10px;\"><font size=\"1\" face=\"arial\">&nbsp;<b>User</b>&nbsp;<input type=\"password\" name=\"user_password\" value style=\"width:100;height:19;FONT-SIZE: 10px;\">&nbsp;<b>Pass</b></TD><TD COLSPAN=2 align=left background=\"themes/ClanMtS/images/header/ClanMts-hd_u2.gif\" WIDTH=92 HEIGHT=32><input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><input type=\"hidden\" name=\"gfx_check\" value=\"$code\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"image\" value=\"login\" src=\"themes/ClanMtS/images/header/go.gif\" border=\"0\"></TD></form></font>\n";
       
   
    } else {
        $theuser = "&nbsp;</TD><TD COLSPAN=2 align=left background=\"themes/ClanMtS/images/header/ClanMts-hd_u2.gif\" WIDTH=92 HEIGHT=32>&nbsp;</TD>\n";
    }
    if ($username == "Anonymous") {
        $User1 = "&nbsp;Guest&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account&op=new_user\">Register</a>\n";
   
    } else {
        $User1 = "&nbsp;$username&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account&op=logout\">Logout</a>\n";
    }
   echo "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
    include("themes/ClanMtS/header.php");
   

//LEFT SIDE BACKGROUND
    echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
      ."<tr valign=\"top\">\n"
        ."<td width=\"25\" valign=\"top\" background=\"themes/ClanMtS/images/lt.gif\"><img src=\"themes/ClanMtS/images/lt.gif\" width=\"25\" height=\"1\" border=\"0\"></td>\n"
      ."<td width=\"160\" background=\"themes/ClanMtS/images/ltbg.gif\" valign=\"top\">\n";
blocks(left);
    echo "</td>\n"
       ."<td><img src=\"themes/ClanMtS/images/pixel.gif\" width=\"0\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
       ."<td width=\"100%\">\n";
}


/************************************************************/
/* Function themefooter()                                   */
/************************************************************/

function themefooter() {
    global $index, $user, $banners, $cookie, $prefix, $dbi, $db, $foot1, $foot2, $foot3, $foot4, $admin,  $adminmail, $nukeurl, $total_time, $start_time;
$mtime = microtime();
    $mtime = explode(" ",$mtime);
    $mtime = $mtime[1] + $mtime[0];
    $end_time = $mtime;
    $total_time = ($end_time - $start_time);
    $total_time = "".substr($total_time,0,5)." "._SECONDS."";
    if ($banners == 1) {
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
   /* Get a random banner if exist any. */
   /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */

    if ($numrows>1) {
   $numrows = $numrows-1;
   mt_srand((double)microtime()*1000000);
   $bannum = mt_rand(0, $numrows);
    } else {
   $bannum = 0;
    }
    $sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $bid = $row[bid];
    $imageurl = $row[imageurl];
    $clickurl = $row[clickurl];
    $alttext = $row[alttext];
   
    if (!is_admin($admin)) {
       $db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
    }
    if($numrows>0) {
   $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
   $result2 = $db->sql_query($sql2);
   $row2 = $db->sql_fetchrow($result2);
   $cid = $row2[cid];
   $imptotal = $row2[imptotal];
   $impmade = $row2[impmade];
   $clicks = $row2[clicks];
   $date = $row2[date];

/* Check if this impression is the last one and print the banner */

   if (($imptotal <= $impmade) AND ($imptotal != 0)) {
       $db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
       $sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
       $result3 = $db->sql_query($sql3);
       $row3 = $db->sql_fetchrow($result3);
       $c_name = $row3[name];
       $c_contact = $row3[contact];
       $c_email = $row3[email];
       if ($c_email != "") {
      $from = "$sitename <$adminmail>";
      $to = "$c_contact <$c_email>";
      $message = ""._HELLO." $c_contact:\n\n";
      $message .= ""._THISISAUTOMATED."\n\n";
      $message .= ""._THERESULTS."\n\n";
      $message .= ""._TOTALIMPRESSIONS." $imptotal\n";
      $message .= ""._CLICKSRECEIVED." $clicks\n";
      $message .= ""._IMAGEURL." $imageurl\n";
      $message .= ""._CLICKURL." $clickurl\n";
      $message .= ""._ALTERNATETEXT." $alttext\n\n";
      $message .= ""._HOPEYOULIKED."\n\n";
      $message .= ""._THANKSUPPORT."\n\n";
      $message .= "- $sitename "._TEAM."\n";
      $message .= "$nukeurl";
      $subject = "$sitename: "._BANNERSFINNISHED."";
      mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
       }
   }
    $showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
    }
}
    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
   
if ($index == 1) {
   echo "</td>\n"
       ."<td><img src=\"themes/ClanMtS/images/pixel.gif\" width=\"0\" height=\"0\" border=\"0\" alt=\"\"></td>\n"
       ."<td valign=\"top\" background=\"themes/ClanMtS/images/rtbg.gif\" width=\"160\">\n";
   blocks(right);
    }
    echo "</td>\n"
        ."<td width=\"25\" valign=\"top\" background=\"themes/ClanMtS/images/rt.gif\"><img src=\"themes/ClanMtS/images/rt.gif\" width=\"25\" height=\"0\" border=\"0\"></td>\n"
       ."</tr>\n"
       ."</table>\n\n\n";
   
   
    include("themes/ClanMtS/footer.php");
   
}

/************************************************************/
/* 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;

$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    //Code Changed - just show posted by
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time  ";
    //End Code Change
    $datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
    $morelink = substr($morelink, strlen($datetime) + 2);
    $tmpl_file = "themes/ClanMtS/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}
    $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&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/ClanMtS/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/************************************************************/

function themesidebox($title, $content) {
    $tmpl_file = "themes/ClanMtS/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

?>



Back to top Reply with quote
#4   re: HELP! forums are pushed over!
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
That looks fine. What was the last file you made any changes too before you noticed the change? Also try switching themes see if is like that on all of them.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
brujah96
CZ Newbie
brujah96 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 08, 2004
0.00 posts per day
Posts: 9
Points: 894
   
...i have many themes loaded however for some reason none will change...also nothing else seems to want to update either ...i tried putting a news article on the main page which doesnt happen... any suggestions?



Back to top Reply with quote
#6   re: HELP! forums are pushed over!
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
All this just happened out of blue? What changes have you made to the site?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#7   
brujah96
CZ Newbie
brujah96 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 08, 2004
0.00 posts per day
Posts: 9
Points: 894
   
i installed a fresh copy of 7.2 and added the theme and everything seemed fine except those forums, then i brang over the information such as users and such from my other database in phpmyadmin. i also added nsn your_account



Back to top Reply with quote
#8   re: HELP! forums are pushed over!
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
I see you changed the theme and the Forums are working again can you post news now?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: HELP! forums are pushed over!
brujah96
CZ Newbie
brujah96 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 08, 2004
0.00 posts per day
Posts: 9
Points: 894
   
i havent changed anything i still see the same, also now i just found out private messages are with the same colomn on the left ... icon_sad.gif



Back to top Reply with quote
#10   re: HELP! forums are pushed over!
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
When i view the site
[ Register or login to view links on this board. ]

I see the standard Nuke-Lite theme and everything works just fine. Change your theme.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
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