İşte benim theme.php dosyam size zahmet modülleri tam sayfa göstermek için bu temada napabilirim?
Kod:
<php> "7.7") {
$showbanners = ads(0);
} else {
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 (!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>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>";
}
}
}
c o o k i edecode($user);
$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
if ($username == "Anonymous") {
$theuser = " <a href="modules.php?name=Your_Account\">"._LOGIN."</a>/<a href="modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
} else {
$theuser = " "._BWEL." $username!";
}
$datetime = "<s>\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
."var now = new Date();\n"
."thisYear = now.getYear()+543;\n"
."if(thisYear <1900>\n\n"
."</s>";
$public_msg = public_message();
$tmpl_file = "themes/Nuke12-dec-07/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
$blockside="l";
blocks(left);
$tmpl_file = "themes/Nuke12-dec-07/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 (defined('INDEX_FILE') || ($index == 1)) {
$tmpl_file = "themes/Nuke12-dec-07/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/Nuke12-dec-07/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
//echo "<center>\n";
//$footer_message = footmsg();
// echo "</center>\n";
//echo "<br>\n";
}
/************************************************************/
/* 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 ($blockside=="l") {
$tmpl_file = "themes/Nuke12-dec-07/blockleft.html";
} else {
$tmpl_file = "themes/Nuke12-dec-07/blockright.html";
}
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
Ben anlatamıyorum theme.php yi kolayalıp yazdım en üstte bulabilirsen arkadaşım sen bul anlattığın gibi birşey yok.. Anlayan varsa lütfen yardımcı olurmusunuz..?
"İSTEDİĞİN MODÜLÜN ADI" yazılı yerini kendi modülüne göre değiştirmeyi unutmayasın :)
al sana kod
Kod:
<php> "7.7") {
$showbanners = ads(0);
} else {
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 (!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>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>";
}
}
}
c o o k i edecode($user);
$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
if ($username == "Anonymous") {
$theuser = " <a href="modules.php?name=Your_Account\">"._LOGIN."</a>/<a href="modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
} else {
$theuser = " "._BWEL." $username!";
}
$datetime = "<s>\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
."var now = new Date();\n"
."thisYear = now.getYear()+543;\n"
."if(thisYear <1900>\n\n"
."</s>";
$public_msg = public_message();
$tmpl_file = "themes/Nuke12-dec-07/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=='İSTEDİĞİN MODÜLÜN ADI') {}
elseif ($name=='İSTEDİĞİN MODÜLÜN ADI') {}
else {
blocks(left);
}
$tmpl_file = "themes/Nuke12-dec-07/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 (defined('INDEX_FILE') || ($index == 1)) {
$tmpl_file = "themes/Nuke12-dec-07/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/Nuke12-dec-07/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
//echo "<center>\n";
//$footer_message = footmsg();
// echo "</center>\n";
//echo "<br>\n";
}
/************************************************************/
/* 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 ($blockside=="l") {
$tmpl_file = "themes/Nuke12-dec-07/blockleft.html";
} else {
$tmpl_file = "themes/Nuke12-dec-07/blockright.html";
}
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
tabi sen burdan direk kopyalayıp yapıştıracaksın ve haliyle hata verecek dosyan.
hata istemiyorsan uploadladım ben dosyayı aşağıdaki linkten theme.php yi indir ve ordaki "İSTEDİĞİNİZ MODÜLÜN ADI" yazanı kendine göre ayarla ve sendeki theme.php üzerine yaz.
Kayıt: Oct 29, 2006 Mesajlar: 196 Konum: Uzak Bir Yer!
Tarih: 2008-08-04, 17:13:20 Mesaj konusu:
erkancan :
Kardeş okuma yazmanız yokmu? bu iki oldu aynı şeyi yazmışsınız.
Bu işten gerçekten anlayan varsa theme.php en üstte.
adigecan Just
hadi bakalım..
Kardeşim okuma yazmamız var çok şükür lisans bile yaptık hamd olsun... Yanlız sende okuma sorunu var sanırım herşey açıkca anlatılmış olan birşeyde direk hazırcılık yapmak yerine biraz mantık kullansan sorunsuzca halledeceksin...
Ben sana
Kod:
global $user, $banners, $sitename, $slogan, $c o o k i e, $prefix, $dbi;
içerisine,
Kod:
$name
ekle ve sonrada verdiğim kodlarla senin
Kod:
blocks(left);
değiştir demişim.
Bu kadar açıklayıcı birşeyi nasıl zora sokuyorsun anlayamadım doğrusu...
Daha doğrusu direk burdan kopyala yapıştır almak yerine verdiğim kodları yerleştirmeyi denedinmi yoksa function themeheader görmeden direk benim temamda böyle birşey yok mu dedin ? Merak ediyorum da...
yok kardeş söylemek olmaz yapıp direk vereceksin o zaman teşekkür ediliyor.
burdaki tema ethaigndesigne nın nuke 12 november teması yani alışık olduğumuz nuke temalarından değil. o yüzden theme.php side biraz değişik.
senin verdiğin kodları bizzat uyguladım ve hatta sırf kontrol etmek için temayı indirip kendi sitemde denedim ve başarılı olduğunu gördüm ve arkadaşa verdim.
ya oldu ya olmadı diye bi cevap verirsin artık değil mi can erkan ?
Üstadlar bilseydim zaten yazmazdım buraya tema farklı bunu editleyebilecek kaç kişi war burda?? kendinizce haklısınız genede teşekkürler uğraşmışsınız elinize sağlık...
Kayıt: Oct 29, 2006 Mesajlar: 196 Konum: Uzak Bir Yer!
Tarih: 2008-08-05, 17:04:45 Mesaj konusu:
Acımızı, sevincimizi, ekmeğimizi, yemeğimizi, bildiğimizi paylaşmak... Şu fani dünyada hayatımızı anlamlı ve değerli kılan paylaşmaktan daha güzel bir mutluluk var mı? Ah şu paylaşmak :)
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