помогоите пож с правыми блоками
Здравствуйте, прочитал все касающееся этой темы но не решил её, помогите пож чтоб правые блоки были видны. вот тема:
<?php global $loonr, $prefix, $db, $kokku; $bgcolor1 = "#FCFCFC"; $bgcolor2 = "#808080"; $bgcolor3 = "#333333"; $bgcolor4 = "#333333"; $textcolor1 = "#000000"; $textcolor2 = "#000000"; if ($loonr == "") { $loonr = "0"; } include("themes/Thank_to_Holod/tables.php"); /************************************************** **********/ /* Function themeheader() */ /************************************************** **********/ function themeheader() { global $user, $banners,$homeurl, $sitename, $slogan, $cookie, $prefix, $db; cookiedecode($user); $username = $cookie[1]; if ($username == "") { $username = "Anonymous"; } $topics_list = "<select name=\"topic\" onChange='submit()'>\n"; $topics_list .= "<option value=\"\">All Topics</option>\n"; $toplist = $db->sql_query("select topicid, topictext from ".$prefix."_topics order by topictext"); while(list($topicid, $topics) = $db->sql_fetchrow($toplist)) { $topicid = intval($topicid); 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\">Create an account"; } else { $theuser = " Welcome $username!"; } $public_msg = public_message(); $tmpl_file = "themes/Thank_to_Holod/header.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; blocks('left'); $tmpl_file = "themes/Thank_to_Holod/left_center.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; } /************************************************** **********/ /* Function themefooter() */ /************************************************** **********/ function themefooter() { global $index, $foot1, $foot2, $foot3, $foot4; if ($index == 1 OR defined('INDEX_FILE')) { $tmpl_file = "themes/Thank_to_Holod/center_right.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; blocks('left'); } $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4"; $tmpl_file = "themes/Thank_to_Holod/footer.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; print "<table cellpadding=0 cellspacing=0 width=100% border=0><tr><td bgcolor=\"D0D0D0\"><div align=center>Тема оформления создана IFrin<br>"; footmsg(); print "<br></div></td></tr></table>"; } /************************************************** **********/ /* Function themeindex() */ /************************************************** **********/ 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> <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/Thank_to_Holod/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&op=userinfo&username =$informant\">$informant</a> "; } else { $content = "$anonymous "; } $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n"; } $tmpl_file = "themes/Thank_to_Holod/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/Thank_to_Holod/blocks.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; } ?> |
открываете index.php нужного вам модуля (где необходим правый блок) и в начале файла после <?php
пишите: PHP код:
И так же у вас в коде допущена ошибка в функции themefooter() вместо: PHP код:
нужно: PHP код:
|
Soniks, Спасибо большое, все получилось))) но еще пришлось писать define('INDEX_FILE', true); на тех блоках(я на одном(навигации) написал, что должны быть слева, иначе получается что те блоки которые должны быть справа появляются слева
|
Часовой пояс GMT +4, время: 22:25. |
Copyright © 2005 by Soniks