BU SİTE PHP-NUKE SONLANINCA KAPANDI. İÇİNDE EMEK OLDUĞUNDAN AÇIK TUTULMAKTADIR.
GÜNCEL İÇERİK BLOG SAYFASINDADIR!
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: 1289
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 nuke için sağ tarafta kay..
(27775 okuma, 13 yanıt)
 php hata yardım lüffen..
(10989 okuma, 2 yanıt)
 Virüs..
(8491 okuma, 1 yanıt)
 php-nuke Den Kayıp Yapmad..
(29891 okuma, 18 yanıt)
 Yeni 1 Tema yükledim böyL..
(11264 okuma, 5 yanıt)
 Türkçe KArakter Hatası :S..
(13060 okuma, 7 yanıt)
 Bir modülün admin file'ın..
(6262 okuma, 1 yanıt)
 Herhangi Bir Site Hostund..
(7452 okuma, 2 yanıt)
 sql hata veriyor..
(5655 okuma, 0 yanıt)
 Avatar yüklemede hata ver..
(6866 okuma, 1 yanıt)
 Konu başlıkları boyutu..
(6261 okuma, 1 yanıt)
 Resimli Menü Block Sorunu..
(15116 okuma, 9 yanıt)
 Üye kayıt olurken boşluk..
(13696 okuma, 9 yanıt)
 Aynı mysql'u kullanan bir..
(13695 okuma, 8 yanıt)
 video stream için bi iste..
(5790 okuma, 0 yanıt)
 siir bölümünde ilginc bir..
(5970 okuma, 1 yanıt)
 facebook hayranı ol blogu..
(15715 okuma, 7 yanıt)
 facebook'ta rss..
(5680 okuma, 1 yanıt)
 Center Block Sorunu..
(7837 okuma, 3 yanıt)
 Forum Yedeği Yardım..
(7198 okuma, 2 yanıt)
 Resim Göstermeme Sorunu..
(7330 okuma, 2 yanıt)
 Flashchat kaldırma..
(6416 okuma, 1 yanıt)
 Dergi tasarım..
(5168 okuma, 0 yanıt)
 Forum konusuna resim ekle..
(6686 okuma, 1 yanıt)
 html destek-yardım..
(11331 okuma, 7 yanıt)
 Temayı Sola Dayayıp, Dara..
(12419 okuma, 8 yanıt)
 Amanav Manşet Haber Yorum..
(17765 okuma, 15 yanıt)
 Haber resmi çok büyük çık..
(11220 okuma, 6 yanıt)
 Ip ve Domain Girişi..
(5316 okuma, 0 yanıt)
 Üye olurken noktalama isa..
(6878 okuma, 2 yanıt)
 Site ana sayfası çok geç ..
(6367 okuma, 1 yanıt)
 merhabalar..
(5491 okuma, 1 yanıt)
 emlak sitesi hakkında..
(12155 okuma, 7 yanıt)
 DinleTr Scriptinin Hatası..
(6875 okuma, 2 yanıt)
 Şeritli resimler Bloğu..
(11073 okuma, 7 yanıt)
 facebook duvar yazısı..
(5841 okuma, 1 yanıt)
 Radyo İstek Bölümü..
(13689 okuma, 11 yanıt)
 Php-Nuke 8.1 Kurulum Soru..
(9000 okuma, 5 yanıt)
 üye olunca aktifleştirme ..
(13633 okuma, 12 yanıt)
 php nuke tema..
(5944 okuma, 2 yanıt)
 bos sayfa nasil olusturur..
(8425 okuma, 4 yanıt)
 Resim Galersi Ve Ziyaretç..
(9167 okuma, 5 yanıt)
 DinleTr Scripti artık çal..
(11039 okuma, 7 yanıt)
 Phpnuke etiket sistemi...
(24381 okuma, 20 yanıt)
 tree menu..
(7753 okuma, 3 yanıt)
 sitem üye girişlerini kab..
(12245 okuma, 9 yanıt)
 Windows Hostta Nuke Sitey..
(7443 okuma, 3 yanıt)
 Pm Gönderiminde Sorun..
(5060 okuma, 1 yanıt)
 üyeyi sildim forumda izi ..
(7839 okuma, 3 yanıt)
 Üyeler arasi e-mail gönde..
(4882 okuma, 0 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - sağ ve sol bloklar farklı renkte nasıl olur
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


sağ ve sol bloklar farklı renkte nasıl olur

 
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 Sorunlarınız
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-07-11, 22:20:02    Mesaj konusu: sağ ve sol bloklar farklı renkte nasıl olur Alıntıyla Cevap Gönder

örnek bu arkadaşlar


blocks.html yerine blockleft.html ve blockright.html oluşturdum
theme.php içine nasıl bir kod eklemeliyimki sol block olduğunda blockleft.html çağırsın, sağ blok olduğunda blockright.html çağırsın

theme.php aşağıdaki gibi
Kod:
<?php

$bgcolor1 = "#EAEDF4";
$bgcolor2 = "#aabbcc";
$bgcolor3 = "#EAEDF4";
$bgcolor4 = "#aabbcc";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

include("themes/Nuke23-nov-07/tables.php");

/************************************************************/
/* 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, $Version_Num, $blockside;
   if ($Version_Num > "7.7") {
      $showbanners = ads(0);
   } else {
         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];

      /* 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 bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";
   
    if ($username == "Anonymous") {
   $theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">"._LOGIN."</a>/<a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>";
    } else {
   $theuser = "&nbsp;&nbsp;"._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()+543;\n"
   ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
   ."document.write(now.getDate() + \" \" + monthNames[now.getMonth()] + \" \" + thisYear);\n"
   ."// -->\n\n"
   ."</script>";
     $public_msg = public_message();
    $tmpl_file = "themes/Nuke23-nov-07/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    e v a l($thefile);
    print $r_file;
    $blockside="l";
    blocks(left);
    $tmpl_file = "themes/Nuke23-nov-07/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, $blockside;
    if (defined('INDEX_FILE') || ($index == 1)) {
   $tmpl_file = "themes/Nuke23-nov-07/center_right.html";
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   e v a l($thefile);
   print $r_file;
    $blockside="r";
   blocks(right);
    }   
    $tmpl_file = "themes/Nuke23-nov-07/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";
   //echo "<br>\n";
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
   $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
    }
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/Nuke23-nov-07/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()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
   $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
    }
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   $content = "$thetext$notes\n";
    } else {
   if($informant != "") {
       $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    $tmpl_file = "themes/Nuke23-nov-07/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()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
   global $blockside;
    if ($blockside=="l") {
       $tmpl_file = "themes/Nuke23-nov-07/blockleft.html";
    } else {
       $tmpl_file = "themes/Nuke23-nov-07/blockright.html";
    }
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    e v a l($thefile);
    print $r_file;
}

?>


En son mersoy tarafından 2009-03-28, 21:56:03 tarihinde değiştirildi, toplam 1 kere değiştirildi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2025-05-09, 19:35:50    Mesaj konusu: Forum Arası Reklamlar


Başa dön
diyar
Mesaj: 100+
Mesaj: 100+





Kayıt: Jan 03, 2004
Mesajlar: 164
Konum: Almanya

MesajTarih: 2008-07-12, 06:33:05    Mesaj konusu: Alıntıyla Cevap Gönder

Sana daha iyi bir kod yazayim istedigin her blogun rengini ayri ayri renklerde yap istersen arka renklerinide degisik degisik renkler kullan örnek asagidaki gibidir

Kod:
function themesidebox($title, $content) {
$ThemeSel = get_theme();
if ($title == "Site Menüsü") {
$tmpl_file = "themes/TEMANIN ADI/block_menu.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;

} else
if ($title == "Dosyalar") {
$tmpl_file = "themes/TEMANIN ADI/block_dosyalar.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;

} else {
$tmpl_file = "themes/TEMANIN ADI/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
print $r_file;
}
}


en alttaki kod orjinal block icindir yani bir block olusturdun ama temada o blogun dosyasi yoksa orjinal block yerine cikar blocks.html dosyasi, ayrica editleyecegin blocklarda block_dosyalar.html ve block_menu.html Frontpage ile basit bir sekilde editleyebilirsin umarim yardimci olabilmisimdir.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et Yahoo Messenger MSN Messenger
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2008-07-12, 07:55:14    Mesaj konusu: Alıntıyla Cevap Gönder

teşekkür ederim ama benim istediğim üstteki gibi
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
gladion
Mesaj: 1+
Mesaj: 1+





Kayıt: Apr 15, 2008
Mesajlar: 43

MesajTarih: 2008-07-12, 12:43:47    Mesaj konusu: Alıntıyla Cevap Gönder

mersoy diyar vermiş kodları üstelik her blok için vermiş. yinede anlamadıysan özelden msnni yolla halledelim.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Ö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 Sorunlarınız 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 nerden ve nasıl bulmuş anlayamadım muhammed-fatih İnternet Üzerine 3 2010-07-16, 18:42:47 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 Blok nasıl eklenir Yardım lütfen:( mymusti82 Php Nuke Blocklar 7 2010-06-02, 19:29:03 Son Mesajı Görüntüle
Yeni mesaj yok Kayan Table'ı Nasıl Block Yapabilirim ? serdaraydin09 Php Nuke Sorunlarınız 1 2010-04-27, 22:17:07 Son Mesajı Görüntüle
Yeni mesaj yok div tasarımımı phpnuke'ye nasıl uygul... Weaster_93 Php Nuke Tema Paylaşımları 0 2010-04-27, 12:58:13 Son Mesajı Görüntüle

Copyright © 2002-2025 Ali Osman KAHRAMAN - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
netopsiyon®, Ali Osman KAHRAMAN' a ait tescilli bir markadır. İzinsiz kullanılamaz!
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright