Tarih: 2008-09-16, 18:26:07 Mesaj konusu: tema forum sol blok yok
Merhaba
yeni bir tema yükledim. bu temada forum sayfasına geldiğimizde sol bloklar tamamen yok oluyor. ama ben sol bloklarında gözükmesiniistiyorum
foruma baktıgımda genelde var olanı yok etmeye yönelik msjların olduğunı gördüm
yok olanı var etmek için ne yapmalıyım?
$blockside="l";
if ($name=='Forums') {
}
else
if ($name=='Private_Messages') {
}
else
if ($name=='Members_List') {
}
else {
blocks(left);
}
bununla degiştir
Alıntı:
blocks(left);
seende private_message ve Members_List olmayabilir yada baska seyler olabilir bunlardan diğerlerinde görünmesin sadece forumda görünsün diyorsan o zaman sadece bu kodu sil
include("themes/Mavimsn_C37/tables.php");
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $c o o k i e, $prefix, $db, $nukeurl, $anonymous, $name, $index, $blockside;
c o o k i edecode($user);
$seltheme = "Mavimsn_C37";
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$mretimed = base64_decode($mtimed);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$username = $c o o k i e[1];
if ($username == "") {
$username = "";
}
$tmpl_file = "themes/Mavimsn_C37/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($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 $isblockhide, $index, $swapleftorright, $banners, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message, $blockside;
if ($index==1) {
$tmpl_file = "themes/Mavimsn_C37/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
$blockside="r";
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content) {
global $swapleftorright, $bgcolor1, $bgcolor2;
if ($swapleftorright=="0") { //
$tmpl_file = "themes/Mavimsn_C37/blocksol.html";
} else {
$tmpl_file = "themes/Mavimsn_C37/blocksag.html";
}
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız