Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
123
ME_Haber 2.3 ..(108717 okuma, 145 yanıt) Resim Galerisi Modülü 2.0 ..(121794 okuma, 173 yanıt) Ustalardan Bir Ricam Olac ..(13613 okuma, 6 yanıt) nukecode.com will close ..(11197 okuma, 5 yanıt) super youtube player a lo ..(6335 okuma, 1 yanıt) Need good PHP Haber port ..(5605 okuma, 0 yanıt) Forum Nasil Tam Sayfa Olu ..(35109 okuma, 40 yanıt) Php nuke Forumu Düzenleme ..(9940 okuma, 6 yanıt) Yeni Üyelik Aktivasyon Li ..(10975 okuma, 6 yanıt) Aşk Flashları Modülü ..(6977 okuma, 2 yanıt) resim galeri 2.0 da kateg ..(11416 okuma, 9 yanıt) Yeni iki modul: Merhumlar ..(32367 okuma, 36 yanıt) ürün tanıtım modülü ..(25221 okuma, 23 yanıt) PHP Nuke is out ..(14997 okuma, 13 yanıt) MSN Video Bing Video oldu ..(5194 okuma, 0 yanıt) haberhit.com ..(5785 okuma, 1 yanıt) Bilgi Yarışması 1.0 tama ..(51926 okuma, 72 yanıt) Musıc Box elinde olan var ..(6685 okuma, 2 yanıt) Online Okey , Batak , Tav ..(173193 okuma, 340 yanıt) Emlak Modül ve Blockları ..(12277 okuma, 8 yanıt) WM who ist shampions ..(5041 okuma, 1 yanıt) coppermine resim galerisi ..(5486 okuma, 1 yanıt) Forumda Teşekkür Eklentis ..(9074 okuma, 7 yanıt) free wordpress themes ..(5575 okuma, 1 yanıt) JW image rotator for nsn ..(7643 okuma, 4 yanıt) need Iletisim module ..(11004 okuma, 8 yanıt) Yeni modul: İletişim modu ..(27651 okuma, 33 yanıt) Başvuru Modulu ve Etkinli ..(5828 okuma, 1 yanıt) world cup flash ..(5040 okuma, 0 yanıt) ..:: Php Nuke FTP link Ha ..(4938 okuma, 0 yanıt) yeni phpnuke youtube 2.0 ..(5161 okuma, 1 yanıt) Content Plus Önceki Konu ..(4772 okuma, 0 yanıt) Php nuke Tickets Modülü ..(7972 okuma, 5 yanıt) need help to news time ..(4541 okuma, 0 yanıt) NSN News v3.0 new plugin ..(4828 okuma, 0 yanıt) how to save flash as imag ..(6039 okuma, 2 yanıt) Video Blok Yardım Lütfen. ..(5984 okuma, 2 yanıt) gazete ara ..(9785 okuma, 5 yanıt) Bizim Yazarlar ve Bizim Ş ..(14948 okuma, 14 yanıt) Nuke Reflections v2 Türkç ..(14534 okuma, 14 yanıt) CNB Your Account 750 442 ..(14224 okuma, 13 yanıt) Admin panelindeki simge ç ..(12332 okuma, 9 yanıt) Hosting Modülü ..(14016 okuma, 13 yanıt) Bizim şairler Modülü ..(5179 okuma, 1 yanıt) new plugin for nsn news v ..(4758 okuma, 1 yanıt) php nuke 8.0 türkce dil s ..(6918 okuma, 3 yanıt) Kan Bankası Modül istek ..(6130 okuma, 2 yanıt) Haber Konulari Sayfasinda ..(5753 okuma, 2 yanıt) Kan Bankası Modülünde İsi ..(7054 okuma, 3 yanıt) sonhaberler flash block ..(6621 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - reklam modülü
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
halil6161 Mesaj: 50+
Kayıt: Apr 08, 2007 Mesajlar: 51
Tarih: 2007-09-04, 14:30:46 Mesaj konusu: reklam modülü
selamlar suanda reklam modülü kuruyorum ve theme.php'nin icerisinde bi bölüm silmeliyim
silmem gereken kod sudur:
Kod:
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 ($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 = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
}
}
ve benim theme.php söyle
Kod:
<?php
//******************************************************************//
//* PHP-Nuke Europe Team Dev *//
//* ------------------------ *//
//* Jean Claude GIRAUD *//
//* URL: http://www.phpnuke-europe.org *//
//* *//
//* Christophe aka ckforum *//
//* URL: http://www.ckforum.com *//
//* *//
//* Tous droits réservés - 2004 - 2005 copyright *//
//* UTILISATION *//
//* ------------------------ *//
//* Ce code est sous licence GNU/GPL (http://gnu.org) *//
//* Vous pouvez l'utiliser et/ou le redistribuer et/ou le modifier *//
//* EN AUCUN CAS vous ne devez retirer ces lignes de copyright *//
//* EN AUCUN CAS vous ne devez renommer ce script *//
//******************************************************************//
define("_Nametheme", "Ace-Orange") ;
include("themes/"._Nametheme."/theme_cfg.php");
// couleur et constante !
require_once("themes/"._Nametheme."/functions.php");
include("themes/"._Nametheme."/tables.php");
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $themecurrentlang,$admin, $user, $banners, $sitename, $slogan, $c o o k i e, $prefix, $dbi, $nukeurl, $anonymous, $name, $db;
$sql ="select custom_title from ".$prefix."_modules where title='$name'";
$resul1 = sql_query($sql,$dbi);
list($realmod_title) = sql_fetch_row($result,$dbi);
if ($realmod_title) {
$forrealmod_title = $realmod_title;
} else {
$forrealmod_title = $name;
}
$addurl = $nukeurl."/modules.php?name=".$name;
$addfavo = "j a v a s c r i p t:window.external.AddFavorite('$addurl', '... $sitename ... // ($forrealmod_title)')";
if (_isblockhide==1) {
$appelhideblock = "<script type=\"text/j a v a s c r i p t\" src=\"themes/"._Nametheme."/blockscript.js\"></script>\n";
$appelblockhidejs = "onLoad=\"doblocks('themes/"._Nametheme."/images/');\"";
echo $appelhideblock;
}
c o o k i edecode($user);
$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body ".$appelblockhidejs." bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"10\" topmargin=\"0\" marginwidth=\"10\" marginheight=\"10\">";
if ($username == "Anonymous") {
$theuser = " <a href=\"modules.php?name=Your_Account&op=new_user\"><b>Créer un compte</b></a><b>/</b><a href=\"modules.php?name=Your_Account\"><b>Connexion</b></a>";
} else {
$theuser = " <b>Bienvenue <a href=\"modules.php?name=Your_Account\"><font color=\"#FA9105\"><b>$username</b></font></a> !</b>";
}
$menu_js = themenu();
$link_1 = _link_1;
$link_2 = _link_2;
$link_3 = _link_3;
$link_4 = _link_4;
$tmpl_file = "themes/"._Nametheme."/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
leftcolumn();
$tmpl_file = "themes/"._Nametheme."/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 $isblockhide,$prefix, $index, $foot1, $foot2, $foot3, $foot4, $copyright, $total_time, $start_time, $footer_message, $nukeurl, $db, $dbi, $sitename, $banners;
if ($banners == 1) {
include("banners.php");
}
c o o k i edecode($user);
$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = ""._PAGEGENERATION." ".substr($total_time,0,5)." "._SECONDS."";
$time = ($end_time - $start_time);
$time = "".substr($time,0,5)."";
if (($index == 1) || (defined('INDEX_FILE'))) {
$tmpl_file = "themes/"._Nametheme."/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
rightcolumn();
}
$footmsg = "$foot1<br>$foot2<br>$foot3";
$tmpl_file = "themes/"._Nametheme."/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> <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/"._Nametheme."/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> <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/"._Nametheme."/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() */
/************************************************************/
// pour cache block
$deftitle=1;
function themesidebox($title, $content) {
global $deftitle;
if (_isblockhide==1) {
$deftitle++;
$bid = str_replace(" ", "", $title).$deftitle;
$bid = str_replace(".", "", $bid);
$bid = str_replace("'", "", $bid);
$codejsblock_img = cacheblock_img($bid,$title);
$codejsblockdiv1 = cacheblock_debutdiv($bid);
$codejsblockdiv2 = cacheblock_findiv($bid);
} else {
$bid = str_replace(" ", "", $title);
}
$tmpl_file = "themes/"._Nametheme."/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
?>
theme.php'nin icersinden hangi bölümü silmeliyim arkadaslar
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-19, 06:14:12 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Aliosman Teknik Yönetici
Kayıt: Jul 20, 2002 Mesajlar: 3836 Konum: Balıkesir
Tarih: 2007-09-04, 15:03:18 Mesaj konusu: Re: reklam modülü
Kod:
if ($banners == 1) {
include("banners.php");
}
burayı sil.
Başa dön
halil6161 Mesaj: 50+
Kayıt: Apr 08, 2007 Mesajlar: 51
Tarih: 2007-09-04, 15:34:09 Mesaj konusu: Re: reklam modülü
orayi zaten sildim...simdi o yukarida gördügün kodlarin benzerini theme.php' dan silmeliyim...
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