Birşey soracam ben 7.9 kullanıyorum ve sitemde sağ bloklar gözükmüyor...
Yükledim temanın adı phpturk_v1 ama sağ bloklar gözükmüyor kodlarım ise themes.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 $admin, $user, $banners, $sitename, $slogan, $c o o k i e, $prefix, $db, $nukeurl, $anonymous, $name, $index, $blockside, $admin_file;
if ($index == 1) {
$topblock = "<td width=\"170\" height=\"12\"></td>";
} else {
$topblock = "<td width=\"170\" height=\"12\"></td>";
}
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
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];
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 = "<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' id='table5' width='100%'>
<TR>
<TD background='themes/NT_MaviRuya/images/NTMaviRuya_19.png' height='67'><a href='banners.php?op=click&bid=$bid' target='_blank'><img src='$imageurl' border='0' alt='$alttext' title='$alttext'></a></TD>
</TR>
<TR>
<TD background='themes/NT_MaviRuya/images/NTMaviRuya_24.png'><img SRC='themes/NT_MaviRuya/images/NTMaviRuya_24.png' WIDTH='7' BORDER='0' HEIGHT='9'></TD>
</TR>
</TABLE>";
}
}
c o o k i edecode($user);
$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body leftmargin=\"1\" topmargin=\"1\" marginwidth=\"1\" marginheight=\"1\">\n";
$datetime = "<script type=\"text/j a v a s c r i p t\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
."var dayNames = new Array(\"Pazar\",\"Pazartesi\",\"Salı\",\"Çarşamba\",\"Perşembe\",\"Cuma\",\"Cumartesi\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(now.getDate() + \" \" + monthNames[now.getMonth()] + \" \" + thisYear);\n"
."// -->\n\n"
."</script>";
function kisalt($str)
{
$maxlength = 35; // Uzunluk
$public_msg = public_message();
$tmpl_file = "themes/NT_MaviRuya/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
$blockside="l";
if ($name=='Forums') {
blocks(left);
$tmpl_file = "themes/NT_MaviRuya/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 $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message, $blockside;
if ($index == 1) {
$tmpl_file = "themes/NT_MaviRuya/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";
blocks(right);
}
$tmpl_file = "themes/NT_MaviRuya/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content) {
global $blockside;
/*if (@file_exists($content)) {
$fp = fopen ($content, "r");
$content = fread($fp, filesize($content));
fclose ($fp);
$content = "?>$content<?";
$content = e v a l($content);
} else if (eregi("^http", $content)) {
$fp = fopen ($content, "r");
$content = fread($fp, 65535);
fclose ($fp);
}*/
if ($blockside=="l") {
$tmpl_file = "themes/NT_MaviRuya/blocks.html";
} else {
$tmpl_file = "themes/NT_MaviRuya/blocks.html";
}
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
Tarih: 2007-03-07, 19:51:22 Mesaj konusu: Re: Temada sağ bloklar gözukmuyor?
Sorunlu temanızın theme.php (themes/Temaniz/ klasöründe) dosyasını açın.
if ($index == 1) {
yazan yeri bulun ve burayı
if (defined('INDEX_FILE')) { ile değiştirin. Olmuyor mu?
Sorunlu temanızın theme.php (themes/Temaniz/ klasöründe) dosyasını açın.
if (defined('INDEX_FILE')) {
yazan yeri bulun ve burayı
global $index;
if ($index == 1) {
ile değiştirin. Hala olmadı mı?
Sorunlu temanızın theme.php (themes/Temaniz/ klasöründe) dosyasını açın.
if (defined('INDEX_FILE')) {
yazan yeri bulun ve burayı
global $index;
if (($index == 1) OR if (defined('INDEX_FILE'))) {
ile değiştirin. Bunları yaptım ama hala sağ bloklar görünmüyor mu diyorsunuz? O zaman anasayfada yüklü olan modülün index.php dosyasını açın ve $module_name = basename(dirname(__FILE__));
yazan yerin altına
define('INDEX_FILE', true);
$index=1;
ekleyin.
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