Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 122
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 ME_Haber 2.3..
(108824 okuma, 145 yanıt)
 Resim Galerisi Modülü 2.0..
(122008 okuma, 173 yanıt)
 Ustalardan Bir Ricam Olac..
(13639 okuma, 6 yanıt)
 nukecode.com will close..
(11206 okuma, 5 yanıt)
 super youtube player a lo..
(6341 okuma, 1 yanıt)
 Need good PHP Haber port..
(5609 okuma, 0 yanıt)
 Forum Nasil Tam Sayfa Olu..
(35168 okuma, 40 yanıt)
 Php nuke Forumu Düzenleme..
(9946 okuma, 6 yanıt)
 Yeni Üyelik Aktivasyon Li..
(10988 okuma, 6 yanıt)
 Aşk Flashları Modülü..
(6985 okuma, 2 yanıt)
 resim galeri 2.0 da kateg..
(11422 okuma, 9 yanıt)
 Yeni iki modul: Merhumlar..
(32398 okuma, 36 yanıt)
 ürün tanıtım modülü..
(25242 okuma, 23 yanıt)
 PHP Nuke is out..
(15034 okuma, 13 yanıt)
 MSN Video Bing Video oldu..
(5202 okuma, 0 yanıt)
 haberhit.com..
(5793 okuma, 1 yanıt)
 Bilgi Yarışması 1.0 tama..
(52011 okuma, 72 yanıt)
 Musıc Box elinde olan var..
(6690 okuma, 2 yanıt)
 Online Okey , Batak , Tav..
(173373 okuma, 340 yanıt)
 Emlak Modül ve Blockları ..
(12306 okuma, 8 yanıt)
 WM who ist shampions..
(5047 okuma, 1 yanıt)
 coppermine resim galerisi..
(5490 okuma, 1 yanıt)
 Forumda Teşekkür Eklentis..
(9081 okuma, 7 yanıt)
 free wordpress themes..
(5582 okuma, 1 yanıt)
 JW image rotator for nsn ..
(7653 okuma, 4 yanıt)
 need Iletisim module..
(11016 okuma, 8 yanıt)
 Yeni modul: İletişim modu..
(27673 okuma, 33 yanıt)
 Başvuru Modulu ve Etkinli..
(5833 okuma, 1 yanıt)
 world cup flash..
(5046 okuma, 0 yanıt)
 ..:: Php Nuke FTP link Ha..
(4943 okuma, 0 yanıt)
 yeni phpnuke youtube 2.0..
(5167 okuma, 1 yanıt)
 Content Plus Önceki Konu ..
(4776 okuma, 0 yanıt)
 Php nuke Tickets Modülü..
(7980 okuma, 5 yanıt)
 need help to news time..
(4549 okuma, 0 yanıt)
 NSN News v3.0 new plugin..
(4840 okuma, 0 yanıt)
 how to save flash as imag..
(6056 okuma, 2 yanıt)
 Video Blok Yardım Lütfen...
(5994 okuma, 2 yanıt)
 gazete ara..
(9792 okuma, 5 yanıt)
 Bizim Yazarlar ve Bizim Ş..
(14958 okuma, 14 yanıt)
 Nuke Reflections v2 Türkç..
(14567 okuma, 14 yanıt)
 CNB Your Account 750 442 ..
(14263 okuma, 13 yanıt)
 Admin panelindeki simge ç..
(12368 okuma, 9 yanıt)
 Hosting Modülü..
(14028 okuma, 13 yanıt)
 Bizim şairler Modülü..
(5185 okuma, 1 yanıt)
 new plugin for nsn news v..
(4763 okuma, 1 yanıt)
 php nuke 8.0 türkce dil s..
(6927 okuma, 3 yanıt)
 Kan Bankası Modül istek..
(6144 okuma, 2 yanıt)
 Haber Konulari Sayfasinda..
(5763 okuma, 2 yanıt)
 Kan Bankası Modülünde İsi..
(7064 okuma, 3 yanıt)
 sonhaberler flash block ..
(6628 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - reklam modülü
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


reklam modülü

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
halil6161
Mesaj: 50+
Mesaj: 50+





Kayıt: Apr 08, 2007
Mesajlar: 51

MesajTarih: 2007-09-04, 14:30:46    Mesaj konusu: reklam modülü Alıntıyla Cevap Gönder

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 = "&nbsp;&nbsp;<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 = "&nbsp;&nbsp;<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 Question
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-05-24, 09:38:39    Mesaj konusu: Forum Arası Reklamlar


Başa dön
Aliosman
Teknik Yönetici
Teknik Yönetici





Kayıt: Jul 20, 2002
Mesajlar: 3836
Konum: Balıkesir

MesajTarih: 2007-09-04, 15:03:18    Mesaj konusu: Re: reklam modülü Alıntıyla Cevap Gönder

Kod:
    if ($banners == 1) {   
     include("banners.php");   
}


burayı sil.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
halil6161
Mesaj: 50+
Mesaj: 50+





Kayıt: Apr 08, 2007
Mesajlar: 51

MesajTarih: 2007-09-04, 15:34:09    Mesaj konusu: Re: reklam modülü Alıntıyla Cevap Gönder

orayi zaten sildim...simdi o yukarida gördügün kodlarin benzerini theme.php' dan silmeliyim...
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Modülleri Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
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

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok nuke için sağ tarafta kayan reklam sC... Rapcoast Php Nuke Sorunlarınız 13 2010-07-21, 17:55:35 Son Mesajı Görüntüle
Yeni mesaj yok Aşk Flashları Modülü alpsi Php Nuke Modülleri 2 2010-07-10, 16:55:13 Son Mesajı Görüntüle
Yeni mesaj yok ürün tanıtım modülü gergernur Php Nuke Modülleri 23 2010-07-06, 19:40:34 Son Mesajı Görüntüle
Yeni mesaj yok Forumun üst bölümüne nasıl reklam ekl... Vizyon NukeBB Eklentileri 2 2010-07-03, 23:35:16 Son Mesajı Görüntüle
Yeni mesaj yok Adtech Reklam Bloku calkan Php Nuke Blocklar 2 2010-06-27, 20:44:53 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright