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: 858
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 Blok yapiminda nasil incl..
(6451 okuma, 3 yanıt)
 Orta Block Resim Ekleme..
(7498 okuma, 3 yanıt)
 yeni flashmanset haber bl..
(12832 okuma, 9 yanıt)
 Ramazan Yaklaştı Block,Mo..
(6479 okuma, 2 yanıt)
 php Nuke Jquery Accessibl..
(9647 okuma, 6 yanıt)
 Dernek Modulü için Block..
(4776 okuma, 1 yanıt)
 Adtech Reklam Bloku..
(5698 okuma, 2 yanıt)
 Manşet Blok..
(5707 okuma, 2 yanıt)
 Flash Atatürk Vecizeleri ..
(5714 okuma, 2 yanıt)
 TRT Haber orta bloğu..
(10160 okuma, 9 yanıt)
 Yeni Manşet Haber Bloklar..
(19546 okuma, 23 yanıt)
 New haber flash band news..
(7569 okuma, 3 yanıt)
 new flash nsn news block..
(17802 okuma, 23 yanıt)
 ATS haber blogu kurdum am..
(7723 okuma, 6 yanıt)
 Akordiyon Blok hatası..
(5823 okuma, 2 yanıt)
 Youtube videolari site de..
(6446 okuma, 3 yanıt)
 bugun girenler blogu..
(9552 okuma, 8 yanıt)
 3 haber yeni block..
(10674 okuma, 13 yanıt)
 nice manset haber block..
(9059 okuma, 8 yanıt)
 Bytasarım Slide Kayan Hab..
(24067 okuma, 30 yanıt)
 need help to make this ha..
(3531 okuma, 0 yanıt)
 new flash block preheadli..
(5460 okuma, 2 yanıt)
 Facebookta Paylaşım....
(8647 okuma, 7 yanıt)
 Blok nasıl eklenir Yardım..
(9203 okuma, 7 yanıt)
 Super mansetler flash blo..
(4681 okuma, 2 yanıt)
 yeni block flash haberler..
(4941 okuma, 2 yanıt)
 yeni block flash accordio..
(3466 okuma, 0 yanıt)
 block flash haber accordi..
(4598 okuma, 2 yanıt)
 İstediğiniz bir bloğu baş..
(4107 okuma, 0 yanıt)
 Bugün Doğan Üyeler Bloğu..
(7469 okuma, 6 yanıt)
 Bizim Yazarlar Modülüne b..
(4009 okuma, 0 yanıt)
 Sonvideostream flash blco..
(8018 okuma, 8 yanıt)
 Yenilikler Orta Blok ist..
(7706 okuma, 6 yanıt)
 Akordiyon Flash Blok+Xml..
(7192 okuma, 5 yanıt)
 blocks nsn news flash cu..
(3667 okuma, 0 yanıt)
 new flash bizim yazarlar ..
(4066 okuma, 1 yanıt)
 haber flash block send al..
(5581 okuma, 4 yanıt)
 userinfo bloğu çalışmıyor..
(4989 okuma, 2 yanıt)
 Total hits block..
(4022 okuma, 1 yanıt)
 katagorili haber blogu..
(11402 okuma, 13 yanıt)
 Dolar-Tl Dönüştürücü Blok..
(7181 okuma, 5 yanıt)
 Flash Haber Sistemi Çok ..
(10372 okuma, 9 yanıt)
 Video Stream Orta Blok..
(6327 okuma, 4 yanıt)
 new flash block..
(5356 okuma, 3 yanıt)
 flash haber blogu..
(6336 okuma, 4 yanıt)
 Döviz ve Haber Durumu Blo..
(10609 okuma, 10 yanıt)
 Blokta karakter sınırlama..
(5582 okuma, 2 yanıt)
 Yeni Hava Durumu Block'u..
(3762 okuma, 0 yanıt)
 yeni flash haber block..
(4535 okuma, 2 yanıt)
 yeni haber flash block..
(6252 okuma, 5 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - 3 blogu birlestirip tek yapmak
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


3 blogu birlestirip tek yapmak

 
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 Blocklar
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2009-03-27, 22:54:55    Mesaj konusu: 3 blogu birlestirip tek yapmak Alıntıyla Cevap Gönder

Kod:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* Andrei Orlov http://www.x-prices.com                                 */
/*                                                                      */
/* 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.       */
/************************************************************************/
/* Additional security checking code 2003 by chatserv                   */
/* http://www.nukefixes.com -- http://www.nukeresources.com             */
/************************************************************************/

if (eregi("block-Aser_Shop.php",$_SERVER[PHP_SELF])) {
    Header("Location: index.php");
    die();
}

global $db, $user, $c o o k i e;

   $Asers_Shop = "Asers_Shop";    //Module name as folder name
      if(is_user($user)) {
      c o o k i edecode($user);
      $auth_name = $c o o k i e[1];
      $result = $db->sql_query("SELECT * FROM asershop_orders WHERE uname='$auth_name'");
         $numrows = $db->sql_numrows($result);
         if($numrows > 0) {
         }
      }      
   
   $cid = $_GET['cid'];
   $lid = $_GET['lid'];
   $name = $_GET['name'];
   if(!isset($cid) && isset($lid) && $name == "$Asers_Shop") {
       $result = $db->sql_query("SELECT cid FROM asershop_products WHERE lid = '$lid'");
       list($cid)=$db->sql_fetchrow($result);
   }
   $content .= "<center><a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewcart\"><img src = \"modules/$Asers_Shop/images/your_cart.gif\" border =\"0\"></a></center>";
   $content .= "<font class=\"option\"><strong><big>·</big></strong>&nbsp;<a href=\"modules.php?name=$Asers_Shop\">MAĞAZA</a></font><br>";
   if ($name != "$Asers_Shop" || !isset($cid)) {
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' order by title");
      while(list($cid, $title) = $db->sql_fetchrow($result)) {
          $content .= "<font class=\"content\"><strong><big>·</big></strong>&nbsp<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font><br>";
      }
       $content .= $content_c;
   } else {
      $result = $db->sql_query("SELECT parentid, title FROM asershop_categories WHERE cid='$cid'");
      $row = $db->sql_fetchrow($result);
       $parentid = intval($row['parentid']);
       $title = $row['title'];
       $title3 = "<img src=\"images/arrow.gif\" border=\"0\"><font class=\"content\"><strong><big>&nbsp;</big></strong><a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font>";
      $ptitle = getparentmenulink($parentid,"",$Asers_Shop);
      $content .= $ptitle;
      $content .= $title3;
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='$cid' order by title");
      while($row = $db->sql_fetchrow($result)) {
            $cid1 = intval($row['cid']);
            $title = $row['title'];
            $content .= "<br><font class=\"content\">&nbsp;&nbsp;&nbsp;&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$title</a>";
      }
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE parentid='$parentid' and cid != '$cid'";
         $result1 = $db->sql_query($sql);
         while($row = $db->sql_fetchrow($result1)) {
            $cid1 = intval($row['cid']);
            $ptitle1 = $row['title'];
            $parentid = $row['parentid'];
            $parentmenu .= "<br><font class=\"content\"><strong><big>+</big></strong>&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$ptitle1</a>";
         }
      $content .= $parentmenu;
      if ($parentid != 0) {
         while($parentid != 0) {
            $result = $db->sql_query("SELECT cid, parentid FROM asershop_categories WHERE cid='$parentid'");
            $row = $db->sql_fetchrow($result);
            $parentid = $row['parentid'];
            $cid3 = $row['cid'];
         }
         $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' and cid != '$cid3' order by title");
         while(list($cid, $title) = $db->sql_fetchrow($result)) {
             $endcontent .= "<br><font class=\"content\"><strong><big>·</big></strong>&nbsp;<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font>";
         }
      }
      $content .= $endcontent;
      $content .= "<br>".$content_c;
   }
   
function getparentmenulink($parentid,$ptitle,$Asers_Shop) {
    global $db;
    $parentid = intval($parentid);
    if ($parentid!=0) {
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE cid='$parentid'";
       $result = $db->sql_query($sql);
       $row = $db->sql_fetchrow($result);
       $cid = intval($row['cid']);
       $title = $row['title'];
       $parentid = $row['parentid'];
       $ptitle="<font class=\"content\"><strong><big>·</big></strong>&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font><br>".$ptitle;
    }   
    if ($parentid!=0) {
      $ptitle=getparentmenulink($parentid,$ptitle,$Asers_Shop);
    }
    return $ptitle;
}

?>




Kod:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* Andrei Orlov http://www.x-prices.com                                 */
/*                                                                      */
/* 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.       */
/************************************************************************/
/*         Additional security & Abstraction layer conversion           */
/*                           2003 chatserv                              */
/*      http://www.nukefixes.com -- http://www.nukeresources.com        */
/************************************************************************/

if (eregi("block-Last_Added_Products.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

global $db;
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$Asers_Shop = "Asers_Shop";
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY date desc, hits LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
    $lid = intval($row['lid']);
    $cid = intval($row['cid']);
    $title = stripslashes($row['title']);
    $price = $row['price'];
    $content .= "$a: <a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproductdetails&amp;lid=$lid&amp;cid=$cid\">$title - $currency$price</a><br><br>";
    $a++;
}
$content .= "<center><a href=\"modules.php?name=$Asers_Shop&amp;s_op=search&amp;query=*&amp;R1=title&amp;orderby=dateD\">History</a></center>"
?>
Kod:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* Andrei Orlov http://www.x-prices.com                                 */
/*                                                                      */
/* 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.       */
/************************************************************************/
/*         Additional security & Abstraction layer conversion           */
/*                           2003 chatserv                              */
/*      http://www.nukefixes.com -- http://www.nukeresources.com        */
/************************************************************************/

if (eregi("block-Top10_Products.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

global $db;
$Asers_Shop = "Asers_Shop";
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY hits DESC LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
    $lid = intval($row['lid']);
    $cid = intval($row['cid']);
    $title = stripslashes($row['title']);
    $price = $row['price'];
    $content .= "$a: <a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproductdetails&amp;lid=$lid&amp;cid=$cid\">$title - $currency$price</a><br><br>";
    $a++;
}

?>
aser shop bloklari 3 unu tek blok yapıp orta blokta gostermek icin yardim rica ediyorum.
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-07-01, 05:49:58    Mesaj konusu: Forum Arası Reklamlar


Başa dön
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2009-03-31, 12:32:26    Mesaj konusu: Alıntıyla Cevap Gönder

güncel.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
osdem66
Mesaj: 500+
Mesaj: 500+





Kayıt: Apr 26, 2008
Mesajlar: 587

MesajTarih: 2009-03-31, 13:31:22    Mesaj konusu: Alıntıyla Cevap Gönder

Merhaba.. cektirmek istedigin blok dosylarini ana dizine atip yan yana 3 tane table taglari kullanarak yaptigin bir blokta i f r a m e olarak cektirebilirsin en basit sekli..bu olsa gerek..
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2009-03-31, 13:59:36    Mesaj konusu: Alıntıyla Cevap Gönder

enterasan bir fikirde .normalde blok birlestirme oluyor benim orta bloklarim hep uclu.son populer gibi bloklari tek blok olarwak ortada veriyorum .bunda da sagdakileri 3 blogu menu poupler son urunler olarak birlestirmmk istiyorum.orta blok icin.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
serserialper21
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Jan 02, 2006
Mesajlar: 1660
Konum: Diyarbakır

MesajTarih: 2009-03-31, 20:06:42    Mesaj konusu: Alıntıyla Cevap Gönder

Bak ben bunu aylardır yapmayı istiyorum da yapamıyom =) ama ben 3'lü değilde 2 blocku yan yana ekletmek istiyorum bu sayede i,stediğim block'lar 2'li istediğim block'larda 3'lü oalcak
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder E-posta gönder Yazarın web sitesini ziyaret et AIM Adresi Yahoo Messenger MSN Messenger
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2009-03-31, 20:13:59    Mesaj konusu: Alıntıyla Cevap Gönder

neden bu kadar zorlandığınızı anlayamadım

global ile başlayıp php bitiş koduna kadar olan kodları <td tag'ları içine alırsanız istediğiniz veriyi istediğiniz bloktaki veriyi, istediğiniz yere çekersiniz
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2009-03-31, 21:11:20    Mesaj konusu: Alıntıyla Cevap Gönder

Ben birkac deneme yaptm beyaz sayfa ciktigi icin yardm rica ediyrm
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
GanJa
Mesaj: 300+
Mesaj: 300+





Kayıt: May 30, 2007
Mesajlar: 388
Konum: C:\Windows\System32

MesajTarih: 2009-03-31, 21:36:40    Mesaj konusu: Alıntıyla Cevap Gönder

Orta block için düşünelim

500 px lik bir tablo oluşturup;

içine 3 tane td ekleyelim.

ve her td nin içine blok kodlarını girelim.

html kodları aşağıda ama php kodlarını girmeden bunları blocka çevirmek gerek sanırım.
Kod:
<table>
   <tr>
      <td>blok kodları 1</td>
      <td>blok kodları 3</td>
      <td>blok kodları 3</td>
   </tr>
</table>


bu şekilde olur diye düşünüyorum.
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: 2024-07-01, 05:49:58    Mesaj konusu: Forum Arası Reklamlar


Başa dön
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2009-03-31, 22:09:39    Mesaj konusu: Alıntıyla Cevap Gönder

bunu denermisiniz

cooki olan yerleri düzeltmeyi unutmayınız

Kod:

<?php



if (eregi("block-juglanin.php",$_SERVER[PHP_SELF])) {
    Header("Location: index.php");
    die();
}

global $db, $user, $c o o k i e;


$content .="
<table>
    <tr><td>";

// 1.blok kod başlangıcı

   $Asers_Shop = "Asers_Shop";    //Module name as folder name
      if(is_user($user)) {
      cooki edecode($user);
      $auth_name = $c o o k i e[1];
      $result = $db->sql_query("SELECT * FROM asershop_orders WHERE uname='$auth_name'");
         $numrows = $db->sql_numrows($result);
         if($numrows > 0) {
         }
      }

   $cid = $_GET['cid'];
   $lid = $_GET['lid'];
   $name = $_GET['name'];
   if(!isset($cid) && isset($lid) && $name == "$Asers_Shop") {
       $result = $db->sql_query("SELECT cid FROM asershop_products WHERE lid = '$lid'");
       list($cid)=$db->sql_fetchrow($result);
   }
   $content .= "<center><a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewcart\"><img src = \"modules/$Asers_Shop/images/your_cart.gif\" border =\"0\"></a></center>";
   $content .= "<font class=\"option\"><strong><big>·</big></strong>&nbsp;<a href=\"modules.php?name=$Asers_Shop\">MAĞAZA</a></font><br>";
   if ($name != "$Asers_Shop" || !isset($cid)) {
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' order by title");
      while(list($cid, $title) = $db->sql_fetchrow($result)) {
          $content .= "<font class=\"content\"><strong><big>·</big></strong>&nbsp<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font><br>";
      }
       $content .= $content_c;
   } else {
      $result = $db->sql_query("SELECT parentid, title FROM asershop_categories WHERE cid='$cid'");
      $row = $db->sql_fetchrow($result);
       $parentid = intval($row['parentid']);
       $title = $row['title'];
       $title3 = "<img src=\"images/arrow.gif\" border=\"0\"><font class=\"content\"><strong><big>&nbsp;</big></strong><a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font>";
      $ptitle = getparentmenulink($parentid,"",$Asers_Shop);
      $content .= $ptitle;
      $content .= $title3;
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='$cid' order by title");
      while($row = $db->sql_fetchrow($result)) {
            $cid1 = intval($row['cid']);
            $title = $row['title'];
            $content .= "<br><font class=\"content\">&nbsp;&nbsp;&nbsp;&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$title</a>";
      }
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE parentid='$parentid' and cid != '$cid'";
         $result1 = $db->sql_query($sql);
         while($row = $db->sql_fetchrow($result1)) {
            $cid1 = intval($row['cid']);
            $ptitle1 = $row['title'];
            $parentid = $row['parentid'];
            $parentmenu .= "<br><font class=\"content\"><strong><big>+</big></strong>&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$ptitle1</a>";
         }
      $content .= $parentmenu;
      if ($parentid != 0) {
         while($parentid != 0) {
            $result = $db->sql_query("SELECT cid, parentid FROM asershop_categories WHERE cid='$parentid'");
            $row = $db->sql_fetchrow($result);
            $parentid = $row['parentid'];
            $cid3 = $row['cid'];
         }
         $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' and cid != '$cid3' order by title");
         while(list($cid, $title) = $db->sql_fetchrow($result)) {
             $endcontent .= "<br><font class=\"content\"><strong><big>·</big></strong>&nbsp;<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font>";
         }
      }
      $content .= $endcontent;
      $content .= "<br>".$content_c;
   }

function getparentmenulink($parentid,$ptitle,$Asers_Shop) {
    global $db;
    $parentid = intval($parentid);
    if ($parentid!=0) {
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE cid='$parentid'";
       $result = $db->sql_query($sql);
       $row = $db->sql_fetchrow($result);
       $cid = intval($row['cid']);
       $title = $row['title'];
       $parentid = $row['parentid'];
       $ptitle="<font class=\"content\"><strong><big>·</big></strong>&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font><br>".$ptitle;
    }
    if ($parentid!=0) {
      $ptitle=getparentmenulink($parentid,$ptitle,$Asers_Shop);
    }
    return $ptitle;
}
        $content .="</td>";

 //2. blok kod başlangıcı


 $content .="<td>";

global $db;

$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$Asers_Shop = "Asers_Shop";
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY date desc, hits LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
    $lid = intval($row['lid']);
    $cid = intval($row['cid']);
    $title = stripslashes($row['title']);
    $price = $row['price'];
    $content .= "$a: <a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproductdetails&amp;lid=$lid&amp;cid=$cid\">$title - $currency$price</a><br><br>";
    $a++;
}
$content .= "<center><a href=\"modules.php?name=$Asers_Shop&amp;s_op=search&amp;query=*&amp;R1=title&amp;orderby=dateD\">History</a></center>";

 $content .="</td>";

// 3. blok kod başlangıcı

$content .="<td>";

global $db;


$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY hits DESC LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
    $lid = intval($row['lid']);
    $cid = intval($row['cid']);
    $title = stripslashes($row['title']);
    $price = $row['price'];
    $content .= "$a: <a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproductdetails&amp;lid=$lid&amp;cid=$cid\">$title - $currency$price</a><br><br>";
    $a++;
}

$content .="</td>
    </tr>
</table>";

?>





Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2009-04-01, 09:56:10    Mesaj konusu: Alıntıyla Cevap Gönder

http://s1.dosya.tc/aser.txt.html
3 blogu tek dosyay attım arkadaslar.mersoy verdiniz kodlarla sag blok gittti.bukadar ugrasmamistim bir blokla nedense is cikardi bana
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2009-04-01, 11:20:23    Mesaj konusu: Alıntıyla Cevap Gönder

tekrar bakınca 1. blokta problem olduğunu gördüm

2. ve 3'üncü bloğunuz yan yana çalışıyor
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
juglanin
Mesaj: 500+
Mesaj: 500+





Kayıt: Dec 09, 2005
Mesajlar: 880

MesajTarih: 2009-04-01, 13:06:53    Mesaj konusu: Alıntıyla Cevap Gönder

bloklar tamam sadecee cok geni soldu bloklar arasindaki mesafeyi bolugu nasil kuculltebilirim.orta bloga sigdigrmak icin aralarindaki bsluklari ufaltamadim.

Kod:
<?php



if (eregi("block-juglanin.php",$_SERVER[PHP_SELF])) {
    Header("Location: index.php");
    die();
}

global $db, $user, $c o o k i e;


$content .="
<table>
    <tr><td>";
 $content .="<td>";
global $prefix, $db;

/********************************************************/
/*  | Blokk mûködésének beállításai | hungarian         */
/*  | Block function configuration  | english           */
/********************************************************/
$piclim = 1000; // Kép limit (1-10000...) | Picture limit (1-10000...)
$scroll = 1; // görgetés (1 = igen, 0 = nem) | scroll (1 = yes, 0 = no)
$blockw = 120; // blokk szélesség (alapértelmezett 120) | block width (default 120)
$blockh = 120; // blokk magasság | block height
$blocksc = "up"; // görgetés irányítás (up = fel, down = le, left = bal, vagy right = jobb) | scroll direction (up, down, left, or right)
$scrollam = 1; // scrollamount
$scrollde = 1; // scrolldelay
/********************************************************/
/*  | Blokk mûködésének beállításai | hungarian         */
/*  | Block function configuration  | english           */
/********************************************************/

   $result = $db->sql_query("SELECT * from asershop_config");
   while ($row = $db->sql_fetchrow($result)) {
      $asershop_config[$row['config_name']] = $row['config_value'];         
   }   
   $product_image_path = $asershop_config['product_image_path'];
   $product_image_size_w = $asershop_config['product_image_size_w'];
    $currency = $asershop_config['currency'];
    $featured_num = $asershop_config['featured_num'];
   
$Asers_Shop = "Asers_Shop";
$a = 1;
$result2 = $db->sql_query("SELECT lid, title, image, price FROM asershop_products ORDER BY RAND() DESC LIMIT 0,$piclim");
$content = "<div align=\"center\">\n";
if ($scroll == 1) {
    $content .= "<marquee behavior='scroll' direction='$blocksc' width='$blockw' height='$blockh' scrollamount='$scrollam' scrolldelay='$scrollde' onMouseOver='this.stop()' onMouseOut='this.start()'><br>";
}
while ($row2 = $db->sql_fetchrow($result2)) {
    $lid = intval($row2['lid']);
    $title = stripslashes($row2['title']);
      $ttitle = str_replace (" ", "_", $title);
      $ttitle = str_replace ("'", "", $ttitle);
      $ttitle = str_replace (":", "", $ttitle);
      $ttitle = str_replace ("(", "", $ttitle);
      $ttitle = str_replace (")", "", $ttitle);
      $ttitle = str_replace ("&", "and", $ttitle);
   $image = $row2['image'];
    $price = $row2['price'];
    $content .= "<br><div align=\"center\"><a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproductdetails&amp;lid=$lid&amp;ttitle=$ttitle\"><img src=\"$product_image_path/$image\" alt=\"$title\" title=\"$title\" width=\"$blockw\" border=\"0\"><br>$title<br></a></div><br>";
    $a++;
}
if ($scroll == 1) {
   $content .= "</marquee>";
}
$content .="</td>";
 //2. blok kod başlangıcı
 $content .="<td>";
global $db, $user, $c o o k i e;

   $Asers_Shop = "Asers_Shop";    //Module name as folder name
      if(is_user($user)) {
      c o o k i edecode($user);
      $auth_name = $c o o k i e[1];
      $result = $db->sql_query("SELECT * FROM asershop_orders WHERE uname='$auth_name'");
         $numrows = $db->sql_numrows($result);
         if($numrows > 0) {
         }
      }      
   
   $cid = $_GET['cid'];
   $lid = $_GET['lid'];
   $name = $_GET['name'];
   if(!isset($cid) && isset($lid) && $name == "$Asers_Shop") {
       $result = $db->sql_query("SELECT cid FROM asershop_products WHERE lid = '$lid'");
       list($cid)=$db->sql_fetchrow($result);
   }
   $content .= "<center><a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewcart\"><img src = \"modules/$Asers_Shop/images/your_cart.gif\" border =\"0\"></a></center>";
   $content .= "<font class=\"option\"><strong><big>·</big></strong>&nbsp;<a href=\"modules.php?name=$Asers_Shop\">MAĞAZA</a></font><br>";
   if ($name != "$Asers_Shop" || !isset($cid)) {
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' order by title");
      while(list($cid, $title) = $db->sql_fetchrow($result)) {
          $content .= "<font class=\"content\"><strong><big>·</big></strong>&nbsp<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font><br>";
      }
       $content .= $content_c;
   } else {
      $result = $db->sql_query("SELECT parentid, title FROM asershop_categories WHERE cid='$cid'");
      $row = $db->sql_fetchrow($result);
       $parentid = intval($row['parentid']);
       $title = $row['title'];
       $title3 = "<img src=\"images/arrow.gif\" border=\"0\"><font class=\"content\"><strong><big>&nbsp;</big></strong><a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font>";
      $ptitle = getparentmenulink($parentid,"",$Asers_Shop);
      $content .= $ptitle;
      $content .= $title3;
      $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='$cid' order by title");
      while($row = $db->sql_fetchrow($result)) {
            $cid1 = intval($row['cid']);
            $title = $row['title'];
            $content .= "<br><font class=\"content\">&nbsp;&nbsp;&nbsp;&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$title</a>";
      }
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE parentid='$parentid' and cid != '$cid'";
         $result1 = $db->sql_query($sql);
         while($row = $db->sql_fetchrow($result1)) {
            $cid1 = intval($row['cid']);
            $ptitle1 = $row['title'];
            $parentid = $row['parentid'];
            $parentmenu .= "<br><font class=\"content\"><strong><big>+</big></strong>&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid1>$ptitle1</a>";
         }
      $content .= $parentmenu;
      if ($parentid != 0) {
         while($parentid != 0) {
            $result = $db->sql_query("SELECT cid, parentid FROM asershop_categories WHERE cid='$parentid'");
            $row = $db->sql_fetchrow($result);
            $parentid = $row['parentid'];
            $cid3 = $row['cid'];
         }
         $result = $db->sql_query("SELECT cid, title FROM asershop_categories WHERE parentid='0' and cid != '$cid3' order by title");
         while(list($cid, $title) = $db->sql_fetchrow($result)) {
             $endcontent .= "<br><font class=\"content\"><strong><big>·</big></strong>&nbsp;<a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid\">$title</a></font>";
         }
      }
      $content .= $endcontent;
      $content .= "<br>".$content_c;
   }
   
function getparentmenulink($parentid,$ptitle,$Asers_Shop) {
    global $db;
    $parentid = intval($parentid);
    if ($parentid!=0) {
       $sql = "SELECT cid, title, parentid FROM asershop_categories WHERE cid='$parentid'";
       $result = $db->sql_query($sql);
       $row = $db->sql_fetchrow($result);
       $cid = intval($row['cid']);
       $title = $row['title'];
       $parentid = $row['parentid'];
       $ptitle="<font class=\"content\"><strong><big>·</big></strong>&nbsp;<a href=modules.php?name=$Asers_Shop&amp;s_op=viewproduct&amp;cid=$cid>$title</a></font><br>".$ptitle;
    }   
    if ($parentid!=0) {
      $ptitle=getparentmenulink($parentid,$ptitle,$Asers_Shop);
    }
    return $ptitle;
}

 $content .="</td>";
// 3. blok kod başlangıcı
$content .="<td>";
global $db;
$result = $db->sql_query("SELECT config_value from asershop_config where config_name='currency'");
list($currency) = $db->sql_fetchrow($result);
$a = 1;
$result = $db->sql_query("SELECT lid, cid, title, price FROM asershop_products ORDER BY hits DESC LIMIT 0,5");
while ($row = $db->sql_fetchrow($result)) {
    $lid = intval($row['lid']);
    $cid = intval($row['cid']);
    $title = stripslashes($row['title']);
    $price = $row['price'];
    $content .= "$a: <a href=\"modules.php?name=$Asers_Shop&amp;s_op=viewproductdetails&amp;lid=$lid&amp;cid=$cid\">$title - $currency$price</a><br><br>";
    $a++;
}

$content .="</td>
    </tr>
</table>";

?>










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 Blocklar 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 ATS haber blogu kurdum ama resim olmuyor haydarlim Php Nuke Blocklar 6 2010-06-20, 16:34:50 Son Mesajı Görüntüle
Yeni mesaj yok resimleri yukardan asagi kayan flash ... hulyamm Flash Tasarım 2 2010-05-29, 15:40:29 Son Mesajı Görüntüle
Yeni mesaj yok tarihte bugun blogu hulyamm Php Nuke Blocklar 0 2010-04-21, 23:25:08 Son Mesajı Görüntüle
Yeni mesaj yok bugun girenler blogu hulyamm Php Nuke Blocklar 8 2010-04-17, 16:58:49 Son Mesajı Görüntüle
Yeni mesaj yok facebook hayranı ol blogu juglanin Php Nuke Sorunlarınız 7 2010-04-14, 11:53:32 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