NOT: Buraya kadar herseyi yaptıysanız hazırladıgınız logoları sitenizin anadizinine biraz once yuklediginiz banners klasorunun icine atın script resimleri otomatik tanıyacaktır
teşekkür için yazmadım kardeş sağolasın.Bi ara ben bunu baya bi araştırdı idim o zaman hiç bişeyde bilmiyordum karşıma çıkınca yazım dedim belki ihtiyacı olan vardır diye.
Tabbi ki yapılır hatta ben kendi sitemde yapmıştım sql den verileri rasgele çekiyordu.Her sayfa yenilediğinde farklı bir bölümü çekiyor sql den .Ama bu biraz daha farklı tabii.
bu kod elektro temasinda yok nasil yapabiliriz kodlari asagiya yaziyorum
<?php
/************************************************************/
/* Theme Name: Elektro */
/* Theme Design: mikem of www.nukemods.com */
/* version 3.0 */
/* Theme inspired by the phpbb2 style Elektro by */
/* Totoelectro (http://www.wanadoo.fr/) */
/* */
/* Copyright Notice */
/* - THIS PACKAGE IS NOT RELEASED AS GPL/GNU scriptING. */
/* - Our Package name and link MUST REMAIN in the credit */
/* footer of all Nuke generated pages. */
/* Translations are permitted, not renaming. */
/* - This package CAN NOT be ported without written */
/* permission. */
/* - This package CAN NOT be mirrored without written */
/* permission. */
/* - Use of this package requires that credits to the */
/* original PHPNuke remain in all site generated */
/* page footers. */
/* */
/************************************************************/
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $admin, $user, $banners, $sitename, $slogan, $c o o k i e, $prefix, $db, $nukeurl, $anonymous;
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 (!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];
/* Check if this impression is the last one and print the banner */
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> ";
}
} c o o k i edecode($user);
$username = $c o o k i e[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body background=\"themes/Elektro/images/bac.jpg\" text=\"#000000\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
if ($username == "Anonymous") {
$theuser = " <a href=\"modules.php?name=Your_Account\">"._LOGIN."</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
} else {
$theuser = " "._BWEL." $username!";
}
$datetime = "<script type=\"text/j a v a s c r i p t\">\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) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script>";
$public_msg = public_message();
$tmpl_file = "themes/Elektro/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/Elektro/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() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
if ($index == 1) {
$tmpl_file = "themes/Elektro/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);
}
$tmpl_file = "themes/Elektro/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
echo "<center>\n";
$footer_message = footmsg();
echo "</center>\n";
// PLEASE DO NOT TOUCH THE NEXT LINE.
// YOU CAN ONLY ADD TO IT IF YOU MODIFY THIS THEME :-)
echo "<center><br><font class=\"small\"></font></center>";
echo "<br>\n";
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content) {
if ($_GET['name']!="Forums") {
$tmpl_file = "themes/Elektro/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;}
}
kodu header html icerisine uyguladim calisiyor hemde her modulde calisiyor bu guzel ama kotu olan sag ve sol blocklar asagi indi onlari yukari alamiyorum reklam resimlerini sag ve sol blocklarin ortasina nasil alabilirim
benim dedigim logo degil logo sabit kalacak ornegin bir haber eklersinya orta ust tarafta gorunur iste orda reklam resimlerinin gorunmesini istiyorum hangi modulde gezersen gez yani sag ve sol blocklarin ortasinda yukarda
nereye koyarsan koy üstad, serbestsin.. sadece istediğin yere bir resim koy, yolunu da rotate.php ye göre ayarla.. yani çok zor şeyler değil bunlar.. mantığını kavradığında, her bölüm için ayrı ayrı bile resimler gösterebilirsin..
Tarih: 2007-03-10, 16:24:08 Mesaj konusu: Re: Değişen Logo
Arkadaşlar Peki şu kodu nasıl çalıştıracaz
Kod:
<td>
<p align="right">
<script language="JavaScript1.1">
//Picture Cube slideshow - By Tony Foster III
//Modifications by JK
var specifyimage=new Array() //Your images / resimler
specifyimage[0]="http://kayikcituning.ws.tc/1.JPG"
specifyimage[1]="http://kayikcituning.ws.tc/2.JPG"
specifyimage[2]="http://www.kayikcituning.ws.tc/3.JPG"
specifyimage[3]="http://www.kayikcituning.ws.tc/4.JPG"
specifyimage[4]="http://www.kayikcituning.ws.tc/5.JPG"
specifyimage[5]="http://www.kayikcituning.ws.tc/6.JPG"
specifyimage[6]="http://www.kayikcituning.ws.tc/7.JPG"
specifyimage[7]="http://www.kayikcituning.ws.tc/8.JPG"
specifyimage[8]="http://www.kayikcituning.ws.tc/9.JPG"
var delay=3000 //3 seconds / 3 saniye bekleme
//Counter for array / syralamadaki ikinci resim
var count =0;
var cubeimage=new Array()
for (i=0;i<specifyimage.length;i++){
cubeimage[i]=new Image()
cubeimage[i].src=specifyimage[i]
}
function movecube(){
if (window.createPopup)
cube.filters[0].apply()
document.images.cube.src=cubeimage[count].src;
if (window.createPopup)
cube.filters[0].play()
count++;
if (count==cubeimage.length)
count=0;
setTimeout("movecube()",delay)
}
window.onload=new Function("setTimeout('movecube()',delay)")
</script>
<img src="http://www.kayikcituning.ws.tc/1.JPG" name="cube" border=0 style="filter:progid:DXImageTransform.Microsoft.Stretch(stretchStyle='PUSH')" width="99" height="103" align="left">
bu kod normal olarak çalışıyor fakat header.html ye atnca çalışmıyor. bana bu lazım bilen bar mı. kolay gelsin
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