Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
999
Blok yapiminda nasil incl ..(8198 okuma, 3 yanıt) Orta Block Resim Ekleme ..(9448 okuma, 3 yanıt) yeni flashmanset haber bl ..(16490 okuma, 9 yanıt) Ramazan Yaklaştı Block,Mo ..(8363 okuma, 2 yanıt) php Nuke Jquery Accessibl ..(12025 okuma, 6 yanıt) Dernek Modulü için Block ..(6205 okuma, 1 yanıt) Adtech Reklam Bloku ..(7114 okuma, 2 yanıt) Manşet Blok ..(7422 okuma, 2 yanıt) Flash Atatürk Vecizeleri ..(7310 okuma, 2 yanıt) TRT Haber orta bloğu ..(12746 okuma, 9 yanıt) Yeni Manşet Haber Bloklar ..(25390 okuma, 23 yanıt) New haber flash band news ..(9646 okuma, 3 yanıt) new flash nsn news block ..(22846 okuma, 23 yanıt) ATS haber blogu kurdum am ..(10103 okuma, 6 yanıt) Akordiyon Blok hatası ..(7602 okuma, 2 yanıt) Youtube videolari site de ..(8338 okuma, 3 yanıt) bugun girenler blogu ..(12411 okuma, 8 yanıt) 3 haber yeni block ..(14341 okuma, 13 yanıt) nice manset haber block ..(11754 okuma, 8 yanıt) Bytasarım Slide Kayan Hab ..(31524 okuma, 30 yanıt) need help to make this ha ..(4610 okuma, 0 yanıt) new flash block preheadli ..(7011 okuma, 2 yanıt) Facebookta Paylaşım.. ..(11162 okuma, 7 yanıt) Blok nasıl eklenir Yardım ..(11821 okuma, 7 yanıt) Super mansetler flash blo ..(6076 okuma, 2 yanıt) yeni block flash haberler ..(6438 okuma, 2 yanıt) yeni block flash accordio ..(4561 okuma, 0 yanıt) block flash haber accordi ..(5913 okuma, 2 yanıt) İstediğiniz bir bloğu baş ..(5277 okuma, 0 yanıt) Bugün Doğan Üyeler Bloğu ..(9697 okuma, 6 yanıt) Bizim Yazarlar Modülüne b ..(5244 okuma, 0 yanıt) Sonvideostream flash blco ..(10401 okuma, 8 yanıt) Yenilikler Orta Blok ist ..(9960 okuma, 6 yanıt) Akordiyon Flash Blok+Xml ..(9302 okuma, 5 yanıt) blocks nsn news flash cu ..(4825 okuma, 0 yanıt) new flash bizim yazarlar ..(5307 okuma, 1 yanıt) haber flash block send al ..(7207 okuma, 4 yanıt) userinfo bloğu çalışmıyor ..(6547 okuma, 2 yanıt) Total hits block ..(5248 okuma, 1 yanıt) katagorili haber blogu ..(14886 okuma, 13 yanıt) Dolar-Tl Dönüştürücü Blok ..(9355 okuma, 5 yanıt) Flash Haber Sistemi Çok ..(13164 okuma, 9 yanıt) Video Stream Orta Blok ..(8092 okuma, 4 yanıt) new flash block ..(6860 okuma, 3 yanıt) flash haber blogu ..(7979 okuma, 4 yanıt) Döviz ve Haber Durumu Blo ..(13498 okuma, 10 yanıt) Blokta karakter sınırlama ..(7191 okuma, 2 yanıt) Yeni Hava Durumu Block'u ..(4863 okuma, 0 yanıt) yeni flash haber block ..(5907 okuma, 2 yanıt) yeni haber flash block ..(8161 okuma, 5 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - Headerde duyurular YARDIMMMMM!!!!
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-20, 13:10:02 Mesaj konusu: Headerde duyurular YARDIMMMMM!!!!
arkadaşlar sa öncelikle...
headerda kayan haberler yerine kayan duyurular yapabilecek olan var mı çok denedim ama hata alıyorum sürekli olmuyo bilgim zayıf biraz bilgisi olan varsa paylaşırsa sevinirim...
theme.php nin içinde kayan haberler için bir kod gömülü işte bu kod
Kod:
function kisalt($str)
{
$maxlength = 35; // Uzunluk
if (strlen($str) > $maxlength)
return substr($str, 0, $maxlength)."...";
else
return $str;
}
$mouse="onmouseover='this.stop()' onmouseout='this.start()'";
// Haberler
$result4 = $db->sql_query("SELECT sid, title, comments, counter FROM " . $prefix . "_stories $querylang ORDER BY sid DESC LIMIT 0,5");
while ($row4 = $db->sql_fetchrow($result4)) {
$sid = intval($row4['sid']);
$title = stripslashes($row4['title']);
$comtotal = stripslashes($row4['comments']);
$counter = $row4['counter'];
$haber .= "<B>·</B> <a href="modules.php?name=News&file=article&sid=$sid\" title="$title\">".kisalt($title)."</a> ";
}
bu düzenlenip duyurular çeklinde olabilir mi ve headerda gözükecek şekilde ayarlanabilir mi ?
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2026-06-15, 10:28:14 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-20, 17:49:20 Mesaj konusu:
bi YARDIM edin yaa pfff (
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-20, 17:51:55 Mesaj konusu:
Ali osman abi Ali manav abi bankocu YARDIM edin Lütfennn...
Başa dön
Bankocu Editör
Kayıt: Jun 02, 2003 Mesajlar: 1842 Konum: Istanbul
Tarih: 2009-11-20, 18:40:43 Mesaj konusu:
Bu kadar çok başlığa aynı şeyleri yazmayın.
Özel mesajınıza cevap verdim, orada söylediğim dosyaları yollayın bakalım.
Birden çok başlığa yazmanız işinizi kolaylaştırmaz.
Verdiğiniz örnekte Duyurulara ait kod örneği yok.
Kim ezbere biliyor bütün kodları?
Duyurular modülündeki ilgili bölümü yollayın bakalım.
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-21, 20:28:13 Mesaj konusu: HEADERDA KAYAN DUYURULAR YARDIMMM
öncelikle ilgilendiğiniz için tşkkr ederim bankocu kardeşim sağolasınız duyurulardaki kodlar şunlar ama bu kod duyurular kayan bloğunun içi onu biraz editledim sağa kayıyo edit dediysem "up" yazısını left yaptım :d
duyurular kodu şu
Kod:
<php>sql_query("SELECT baslik, metin FROM ".$prefix."_duyuru ORDER BY date DESC LIMIT 0,$limit");
while ($row = $db->sql_fetchrow($result)) {
$baslik = stripslashes($row['baslik']);
$metin = stripslashes($row['metin']);
if(strlen($metin)>$metinlimit) {
$metin = substr($metin,0, $metinlimit);
}
// $content .= "<br>$baslik</br>---------------------<br>";
$content .= "<a href="modules.php?name=Duyurular&pa=showpage&baslik=$baslik\">$baslik..</a> ";
}
$content .= "</center></marquee>";
$content .="<a href="http://www.kutlucam.com/modules.php?name=Duyurular\"><center>Tüm duyurular</center></a>";
?>
bu kod normalde theme.php ye yerleştirilecek sonrada header a $duyuru gibi bi link verilecek headerde kayan haberler gibi görünmesi için...
bazı temalarda kayan haber var headerda kayan haber koduda şu
theme.php aç
Kod:
$public_msg = public_message();
kodunu bul üstüne bu kodu ekle
Kod:
function kisalt($str)
{
$maxlength = 35; // Uzunluk
if (strlen($str) > $maxlength)
return substr($str, 0, $maxlength)."...";
else
return $str;
}
$mouse="onmouseover='this.stop()' onmouseout='this.start()'";
// Haberler
$result4 = $db->sql_query("SELECT sid, title, comments, counter FROM " . $prefix . "_stories $querylang ORDER BY sid DESC LIMIT 0,5");
while ($row4 = $db->sql_fetchrow($result4)) {
$sid = intval($row4['sid']);
$title = stripslashes($row4['title']);
$comtotal = stripslashes($row4['comments']);
$counter = $row4['counter'];
$haber .= "<B>·</B> <a href="modules.php?name=News&file=article&sid=$sid\" title="$title\">".kisalt($title)."</a> ";
}
sonra temanızın içindeki header.html yi aç şu kodu yerleştir
headerda kayan haber için ise
Kod:
<marquee> $haber </marquee>
şeklinde yapınca headerda kayan haber oluyo işte bu şekilde duyuruları kayan hale getirebilirmiyiz headerda getirebilirsek kodları nasıl olmalı...
ilginiz için tşkkr ediyorum şimdiden...
Başa dön
nobetciaykut Mesaj: 50+
Kayıt: Dec 28, 2005 Mesajlar: 59 Konum: Bursa - Mustafakemalpaşa
Tarih: 2009-11-21, 21:34:18 Mesaj konusu:
Arkadaşım
header.html de $haber aynen adı öyle kalsın
theme.php de
Kod:
function kisalt($str)
{
$maxlength = 35; // Uzunluk
if (strlen($str) > $maxlength)
return substr($str, 0, $maxlength)."...";
else
return $str;
}
$mouse="onmouseover='this.stop()' onmouseout='this.start()'";
// Haberler
$result4 = $db->sql_query("SELECT sid, title, comments, counter FROM " . $prefix . "_stories $querylang ORDER BY sid DESC LIMIT 0,5");
while ($row4 = $db->sql_fetchrow($result4)) {
$sid = intval($row4['sid']);
$title = stripslashes($row4['title']);
$comtotal = stripslashes($row4['comments']);
$counter = $row4['counter'];
$haber .= "<B>·</B> <a href="modules.php?name=News&file=article&sid=$sid\" title="$title\">".kisalt($title)."</a> ";
}
bunu yerine aşağıdaki kodu dene bakalım olacak mı
Kod:
function kisalt($str)
{
$maxlength = 50; // Uzunluk
if (strlen($str) > $maxlength)
return substr($str, 0, $maxlength).".";
else
return $str;
}
$mouse="onmouseover='this.stop()' onmouseout='this.start()'";
// Duyurular
sql_query("SELECT baslik, metin FROM ".$prefix."_duyuru ORDER BY date DESC LIMIT 0,$limit");
while ($row = $db->sql_fetchrow($result)) {
$baslik = stripslashes($row['baslik']);
$metin = stripslashes($row['metin']);
if(strlen($metin)>$metinlimit) {
$metin = substr($metin,0, $metinlimit);
$haber .= " <B>·</B> <a href="modules.php?name=Duyurular&pa=showpage&baslik=$baslik\"><b>$baslik</b></a>";
}
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-22, 10:32:16 Mesaj konusu:
kardeş kodu yerleştirdim ama bi sorun var sanırım ekran beyaz oluyo içerik gözükmüyo kod yazımında belki bi hata olabilir
Başa dön
halley_yas Mesaj: 100+
Kayıt: May 19, 2006 Mesajlar: 152 Konum: Konya
Tarih: 2009-11-22, 11:04:20 Mesaj konusu:
Kardeş diğer kodları unut gitsin theme.php yi aç aşagıdakı satırı bul
Kod:
function themeheader() {
global
Altına Ekle
Kod:
$a = 1;
$result = sql_query("select baslik, metin from ".$prefix."_duyuru order by date DESC limit 0,10", $dbi);
while ($row = $db->sql_fetchrow($result)) {
$baslik = $row['baslik'];
$metin= $row['metin'];
$content .= " <img src=images/arrow.gif alt=\"Duyurular\"> <a href="modules.php?name=Duyurular&pa=showpage&baslik=$baslik\"><b>$baslik</a></b>$tarih</span>";
$duyuru = " <MARQUEE> $content";
}
header.html yi aç uygun bi yere ekle
Kodu denemedim fakat çalışacagından eminim....
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2026-06-15, 10:28:14 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-22, 12:28:38 Mesaj konusu:
kardeş yine olmuyo istersen ben sana benim temanın theme.php nin kodlarını verim
Kod:
<php>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];
/* Themenin banner bolumu */
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";
}
include("themes/HKN-Citir/data.php");
echo "<body bgcolor=\"#ffffff\" text=\"#545C70\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
if ($username == "Anonymous") {
$theuser = " <a href="modules.php?name=Your_Account\">"._LOGIN."</a> ve <a href="modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
} else {
$theuser = "<CENTER><B>"._BWEL." $username!</B> <a href="modules.php?name=Your_Account&op=logout\">[ Çıkış ]</a></CENTER>";
}
$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();\n"
."if(thisYear <1900>\n\n"
."</s>";
function kisalt($str)
{
$maxlength = 35; // Uzunluk
if (strlen($str) > $maxlength)
return substr($str, 0, $maxlength)."...";
else
return $str;
}
$mouse="onmouseover='this.stop()' onmouseout='this.start()'";
// Haberler
$result4 = $db->sql_query("SELECT sid, title, comments, counter FROM " . $prefix . "_stories $querylang ORDER BY sid DESC LIMIT 0,5");
while ($row4 = $db->sql_fetchrow($result4)) {
$sid = intval($row4['sid']);
$title = stripslashes($row4['title']);
$comtotal = stripslashes($row4['comments']);
$counter = $row4['counter'];
$haber .= "<B>·</B> <a href="modules.php?name=News&file=article&sid=$sid\" title="$title\">".kisalt($title)."</a> ";
}
$public_msg = public_message();
$mesaj = "<img src='themes/HKN-Citir/images/uye.gif' border='0'><b> </b><a href="http://www.kutlucam.net\"><b> kutlucam.net</b> </a><FONT><B> HOSGELDINIZ</B></FONT> Sitemizde İyi Vakit Geçirmenizi Dileriz!</b>";
$tmpl_file = "themes/HKN-Citir/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
if ($name=='Forums') {}
else if ($name=='Members_List') {}
else if ($name=='Private_Messages') {}
else {
blocks(left);
}
$tmpl_file = "themes/HKN-Citir/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() */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $copyright;
if (defined('INDEX_FILE')) {
$tmpl_file = "themes/HKN-Citir/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
blocks(right);
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$copyright";
$tmpl_file = "themes/HKN-Citir/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
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&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/HKN-Citir/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* Function themearticle() */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
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&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$tmpl_file = "themes/HKN-Citir/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/************************************************************/
function themesidebox($title, $content) {
$tmpl_file = "themes/HKN-Citir/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
function theme_message_box($title, $content, $remain, $mid) {
global $admin;
echo "<div><table><tr><td>"
."<table><tr><td>"
."<table><tr><td>"
."<table><tr>"
."<td><font><b>$title</b></font></td></tr></table></td></tr>"
."<tr><td><table><tr><td><br>"
."<table><tr><td>"
."<font>$content</font>";
if (is_admin($admin)) {
echo "<br><br><center><font>[ "._MVIEWALL." - $remain - <a href="admin1.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
}
echo "</td></tr></table><br>"
."</td></tr></table>"
."</td></tr></table>"
."</td></tr></table>"
."</td></tr></table></div>";
echo "<br>";
}
?>
theme.php bu benim
dediğin kodun altına ekledim sayfa yine beyaz oluyo
Başa dön
halley_yas Mesaj: 100+
Kayıt: May 19, 2006 Mesajlar: 152 Konum: Konya
Tarih: 2009-11-22, 12:36:22 Mesaj konusu:
Eğer HKN-Citir orjinal theme.php sinde bi değişiklik yapmadıysan ben ona kodları ekledim. Denedim hata falan vermiyor sen sadece header.html ye
$duyuru kodunu ekle
http://www.ferdiciyiz.net/theme.rar
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-22, 13:12:22 Mesaj konusu:
kardeş senin verdiğin linkteki theme.php yi indirdim attım yindede olmadı headerada $duyuru kodunu ekledim ama hala olmuyo bak verdiğin theme.php nin içi bu
Kod:
<php>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];
/* Themenin banner bolumu */
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";
}
include("themes/HKN-Citir/data.php");
echo "<body bgcolor=\"#ffffff\" text=\"#545C70\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
if ($username == "Anonymous") {
$theuser = " <a href="modules.php?name=Your_Account\">"._LOGIN."</a> ve <a href="modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
} else {
$theuser = "<CENTER><B>"._BWEL." $username!</B> <a href="modules.php?name=Your_Account&op=logout\">[ Çıkış ]</a></CENTER>";
}
$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();\n"
."if(thisYear <1900>\n\n"
."</s>";
function kisalt($str)
{
$maxlength = 35; // Uzunluk
if (strlen($str) > $maxlength)
return substr($str, 0, $maxlength)."...";
else
return $str;
}
$mouse="onmouseover='this.stop()' onmouseout='this.start()'";
// Haberler
$result4 = $db->sql_query("SELECT sid, title, comments, counter FROM " . $prefix . "_stories $querylang ORDER BY sid DESC LIMIT 0,5");
while ($row4 = $db->sql_fetchrow($result4)) {
$sid = intval($row4['sid']);
$title = stripslashes($row4['title']);
$comtotal = stripslashes($row4['comments']);
$counter = $row4['counter'];
$haber .= "<B>·</B> <a href="modules.php?name=News&file=article&sid=$sid\" title="$title\">".kisalt($title)."</a> ";
}
$public_msg = public_message();
$mesaj = "<img src='themes/HKN-Citir/images/uye.gif' border='0'><b> </b><a href="http://www.harikulade.net.tc\"><b> HaRiKuLaDe.NeT.Tc</b> </a><FONT><B> HOSGELDINIZ</B></FONT> Sitemizde İyi Vakit Geçirmenizi Dileriz!</b>";
$tmpl_file = "themes/HKN-Citir/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
if ($name=='Forums') {}
else if ($name=='Members_List') {}
else if ($name=='Private_Messages') {}
else {
blocks(left);
}
$tmpl_file = "themes/HKN-Citir/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() */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $copyright;
if ($index == 1) {
$tmpl_file = "themes/HKN-Citir/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
blocks(right);
}
$footer_message = "$foot1<br>$foot2<br>$foot3<br>$copyright";
$tmpl_file = "themes/HKN-Citir/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
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&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/HKN-Citir/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* Function themearticle() */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
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&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$tmpl_file = "themes/HKN-Citir/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/************************************************************/
function themesidebox($title, $content) {
$tmpl_file = "themes/HKN-Citir/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
function theme_message_box($title, $content, $remain, $mid) {
global $admin;
echo "<div><table><tr><td>"
."<table><tr><td>"
."<table><tr><td>"
."<table><tr>"
."<td><font><b>$title</b></font></td></tr></table></td></tr>"
."<tr><td><table><tr><td><br>"
."<table><tr><td>"
."<font>$content</font>";
if (is_admin($admin)) {
echo "<br><br><center><font>[ "._MVIEWALL." - $remain - <a href="admin1.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
}
echo "</td></tr></table><br>"
."</td></tr></table>"
."</td></tr></table>"
."</td></tr></table>"
."</td></tr></table></div>";
echo "<br>";
}
?>
sizin verdiğiniz theme.php orjinal kodu bu
onu attım temanın içindeki theme.php ile değiştirdim headerda $duyuru kodunu ekledim ama hala olmadı
siz yerleştirmişmiydiniz kardeş theme.php kodunun içine yukardaki verdiğiniz theme.php ye eklenecek kodu eklememişsiniz sanırım ben direk atıp denedim olmadı sonra içini açtım
Kod:
function themeheader() {
global
altına ekledim ama ekleyince sayfa beyaz oluyo sanırım başka bi kısma eklenecek :S anlamadım giit ya şu sorunu bi çözemedim off off
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-22, 15:16:42 Mesaj konusu:
ŞU SORUNU HEP BERABER HALLEDELİM NOLUR ARKADAŞLAR ACİL LAZIM HEADER DA DUYURULAR
Başa dön
Rapcoast Mesaj: 50+
Kayıt: Jun 19, 2009 Mesajlar: 50
Tarih: 2009-11-22, 16:38:05 Mesaj konusu:
sorun çözüldü halley_yas çözdü saolsun :)
Başa dön
mersoy Mesaj: 1000+
Kayıt: Dec 08, 2007 Mesajlar: 2316
Tarih: 2009-11-22, 18:13:59 Mesaj konusu:
böyle her probleminde ortalığı birbirine katarsan
kimse sana yardımcı olmak istemez
benden söylemesi
Başa dön
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