Admin > setting (seçenekleri)
buradan bannerleri aktif et diyecen
Ondan sonra
Admin > banners ordanda reklam bannerlerini ekleyecen.
google reklamına gelince yaff sanki ne kazanacan googleden benim google reklamımı göstersen yeter D
Şaka bi yanada google içinde faklı bi dosya hazırla mesela benim gibi google.php dosyası yap google kodlarını at içine gönder includes içine
ondan sonra burayı
Kayıt: Sep 27, 2005 Mesajlar: 188 Konum: Gah Orada Gah Burada
Tarih: 2006-03-16, 02:29:40 Mesaj konusu:
Teşekküeler Allah razı olsun fesih başardım sonunda evet dediğin gibi biraz düşüneceksin... bu arada senin reklamlarını yayımlayacaktımda banner sitenin rengiyle uyuşmadı :))
Tarih: 2006-03-16, 13:27:15 Mesaj konusu: Re: her modülün üst tarafına bir reklam banneri
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {
Header("Location: index.php");
die();
}
##################################################
# Include some common header for HTML generation #
##################################################
function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $codddsfdsjf, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
$ThemeSel = get_theme();
include_once("themes/$ThemeSel/theme.php");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>$sitename $pagetitle</title>\n";
include("includes/m e t a.php");
include("includes/j a v a s c r i p t.php");
if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
if (file_exists("includes/custom_files/custom_head.php")) {
include_once("includes/custom_files/custom_head.php");
}
echo "\n\n\n</head>\n\n";
if (file_exists("includes/custom_files/custom_header.php")) {
include_once("includes/custom_files/custom_header.php");
}
*******themeheader();**********
}
şimdi header.php kodları bunlar ben burda yazdığım kodu *******themeheader();********** şeklinde göstermelik işaretlediğim kısmın altına koyuyorum ama bu seferde site sadece boş bir sayfaya dönüşüyor, hata nerde acaba?
Kayıt: Sep 27, 2005 Mesajlar: 188 Konum: Gah Orada Gah Burada
Tarih: 2006-03-16, 15:47:21 Mesaj konusu: Re: her modülün üst tarafına bir reklam banneri
bendeki header aynen aşağıdaki gibi vede calısıyo suan
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("header.php", $_SERVER['SCRIPT_NAME'])) {
Header("Location: index.php");
die();
}
require_once("mainfile.php");
##################################################
# Include some common header for HTML generation #
##################################################
$header = 1;
function head() {
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $codddsfdsjf, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
include("includes/ipban.php");
$ThemeSel = get_theme();
include("themes/$ThemeSel/theme.php");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<title>$sitename $pagetitle</title>\n";
include("includes/m e t a.php");
include("includes/j a v a s c r i p t.php");
modullerin neresine istersen koyabilirsin ama şunu da söylemeden geçmeyeyim. Böyle yapınca belli bir süre banner istatistigi saymadı bende daha sonra saymaya başladı yani bende oldu ve geçti şimdi sorunsuz çalışıyor.
banner ler rasgele gösterildigi için hem header de hem modulde her zaman aynısı olmuyor.
bunu da her fonkisyona tek tek eklemesi hem boyutu artıtır hem de sıkıcı olur buna söyle bir çözüm:
aşagıdaki kodu mudulde fonsiyon ekleyin
Kod:
function banners() {
OpenTable();
include("banners.php");
CloseTable();
}
koymak istdiginiz yere de bu kodu ekleyi
Kod:
banners();
ve örnek :
Kod:
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
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