Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
885
ME_Haber 2.3 ..(110925 okuma, 145 yanıt) Resim Galerisi Modülü 2.0 ..(123418 okuma, 173 yanıt) Ustalardan Bir Ricam Olac ..(13793 okuma, 6 yanıt) nukecode.com will close ..(11336 okuma, 5 yanıt) super youtube player a lo ..(6437 okuma, 1 yanıt) Need good PHP Haber port ..(5684 okuma, 0 yanıt) Forum Nasil Tam Sayfa Olu ..(35594 okuma, 40 yanıt) Php nuke Forumu Düzenleme ..(10053 okuma, 6 yanıt) Yeni Üyelik Aktivasyon Li ..(11110 okuma, 6 yanıt) Aşk Flashları Modülü ..(7111 okuma, 2 yanıt) resim galeri 2.0 da kateg ..(11585 okuma, 9 yanıt) Yeni iki modul: Merhumlar ..(32676 okuma, 36 yanıt) ürün tanıtım modülü ..(25507 okuma, 23 yanıt) PHP Nuke is out ..(15238 okuma, 13 yanıt) MSN Video Bing Video oldu ..(5288 okuma, 0 yanıt) haberhit.com ..(5873 okuma, 1 yanıt) Bilgi Yarışması 1.0 tama ..(52727 okuma, 72 yanıt) Musıc Box elinde olan var ..(6800 okuma, 2 yanıt) Online Okey , Batak , Tav ..(175946 okuma, 340 yanıt) Emlak Modül ve Blockları ..(12464 okuma, 8 yanıt) WM who ist shampions ..(5142 okuma, 1 yanıt) coppermine resim galerisi ..(5561 okuma, 1 yanıt) Forumda Teşekkür Eklentis ..(9176 okuma, 7 yanıt) free wordpress themes ..(5657 okuma, 1 yanıt) JW image rotator for nsn ..(7762 okuma, 4 yanıt) need Iletisim module ..(11153 okuma, 8 yanıt) Yeni modul: İletişim modu ..(27999 okuma, 33 yanıt) Başvuru Modulu ve Etkinli ..(5929 okuma, 1 yanıt) world cup flash ..(5113 okuma, 0 yanıt) ..:: Php Nuke FTP link Ha ..(5005 okuma, 0 yanıt) yeni phpnuke youtube 2.0 ..(5245 okuma, 1 yanıt) Content Plus Önceki Konu ..(4843 okuma, 0 yanıt) Php nuke Tickets Modülü ..(8076 okuma, 5 yanıt) need help to news time ..(4618 okuma, 0 yanıt) NSN News v3.0 new plugin ..(4901 okuma, 0 yanıt) how to save flash as imag ..(6134 okuma, 2 yanıt) Video Blok Yardım Lütfen. ..(6068 okuma, 2 yanıt) gazete ara ..(9918 okuma, 5 yanıt) Bizim Yazarlar ve Bizim Ş ..(15138 okuma, 14 yanıt) Nuke Reflections v2 Türkç ..(14786 okuma, 14 yanıt) CNB Your Account 750 442 ..(14427 okuma, 13 yanıt) Admin panelindeki simge ç ..(12476 okuma, 9 yanıt) Hosting Modülü ..(14218 okuma, 13 yanıt) Bizim şairler Modülü ..(5282 okuma, 1 yanıt) new plugin for nsn news v ..(4828 okuma, 1 yanıt) php nuke 8.0 türkce dil s ..(7022 okuma, 3 yanıt) Kan Bankası Modül istek ..(6257 okuma, 2 yanıt) Haber Konulari Sayfasinda ..(5852 okuma, 2 yanıt) Kan Bankası Modülünde İsi ..(7171 okuma, 3 yanıt) sonhaberler flash block ..(6723 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-06-17, 18:06:03 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