Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
848
ME_Haber 2.3 ..(111549 okuma, 145 yanıt) Resim Galerisi Modülü 2.0 ..(124273 okuma, 173 yanıt) Ustalardan Bir Ricam Olac ..(13876 okuma, 6 yanıt) nukecode.com will close ..(11397 okuma, 5 yanıt) super youtube player a lo ..(6467 okuma, 1 yanıt) Need good PHP Haber port ..(5706 okuma, 0 yanıt) Forum Nasil Tam Sayfa Olu ..(35759 okuma, 40 yanıt) Php nuke Forumu Düzenleme ..(10095 okuma, 6 yanıt) Yeni Üyelik Aktivasyon Li ..(11155 okuma, 6 yanıt) Aşk Flashları Modülü ..(7162 okuma, 2 yanıt) resim galeri 2.0 da kateg ..(11650 okuma, 9 yanıt) Yeni iki modul: Merhumlar ..(32900 okuma, 36 yanıt) ürün tanıtım modülü ..(25625 okuma, 23 yanıt) PHP Nuke is out ..(15333 okuma, 13 yanıt) MSN Video Bing Video oldu ..(5309 okuma, 0 yanıt) haberhit.com ..(5900 okuma, 1 yanıt) Bilgi Yarışması 1.0 tama ..(53015 okuma, 72 yanıt) Musıc Box elinde olan var ..(6838 okuma, 2 yanıt) Online Okey , Batak , Tav ..(177431 okuma, 340 yanıt) Emlak Modül ve Blockları ..(12533 okuma, 8 yanıt) WM who ist shampions ..(5163 okuma, 1 yanıt) coppermine resim galerisi ..(5586 okuma, 1 yanıt) Forumda Teşekkür Eklentis ..(9211 okuma, 7 yanıt) free wordpress themes ..(5684 okuma, 1 yanıt) JW image rotator for nsn ..(7796 okuma, 4 yanıt) need Iletisim module ..(11226 okuma, 8 yanıt) Yeni modul: İletişim modu ..(28194 okuma, 33 yanıt) Başvuru Modulu ve Etkinli ..(5957 okuma, 1 yanıt) world cup flash ..(5134 okuma, 0 yanıt) ..:: Php Nuke FTP link Ha ..(5030 okuma, 0 yanıt) yeni phpnuke youtube 2.0 ..(5270 okuma, 1 yanıt) Content Plus Önceki Konu ..(4866 okuma, 0 yanıt) Php nuke Tickets Modülü ..(8123 okuma, 5 yanıt) need help to news time ..(4636 okuma, 0 yanıt) NSN News v3.0 new plugin ..(4920 okuma, 0 yanıt) how to save flash as imag ..(6159 okuma, 2 yanıt) Video Blok Yardım Lütfen. ..(6100 okuma, 2 yanıt) gazete ara ..(9952 okuma, 5 yanıt) Bizim Yazarlar ve Bizim Ş ..(15208 okuma, 14 yanıt) Nuke Reflections v2 Türkç ..(14851 okuma, 14 yanıt) CNB Your Account 750 442 ..(14503 okuma, 13 yanıt) Admin panelindeki simge ç ..(12540 okuma, 9 yanıt) Hosting Modülü ..(14275 okuma, 13 yanıt) Bizim şairler Modülü ..(5302 okuma, 1 yanıt) new plugin for nsn news v ..(4845 okuma, 1 yanıt) php nuke 8.0 türkce dil s ..(7053 okuma, 3 yanıt) Kan Bankası Modül istek ..(6291 okuma, 2 yanıt) Haber Konulari Sayfasinda ..(5878 okuma, 2 yanıt) Kan Bankası Modülünde İsi ..(7205 okuma, 3 yanıt) sonhaberler flash block ..(6762 okuma, 4 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - News Modulu - 7.6
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
critic34 Mesaj: 1+
Kayıt: Apr 21, 2004 Mesajlar: 10 Konum: İstanbul
Tarih: 2006-04-25, 01:15:32 Mesaj konusu: News Modulu - 7.6
7.6 versiyonunda news modulune numaralandırma koymak istiyorum bunu nasıl yapabilirim?
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-07-01, 05:07:05 Mesaj konusu: Forum Arası Reklamlar
Başa dön
Aliosman Teknik Yönetici
Kayıt: Jul 20, 2002 Mesajlar: 3836 Konum: Balıkesir
Tarih: 2006-04-25, 01:29:53 Mesaj konusu:
Size kodlarla anlatacam.
modules/News/index.php dosyasını açın. function theindex() yazan yerde $sql = "SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories $qdb $querylang ORDER BY sid DESC limit $storynum";
benzeri bir kod bulacaksınız. Burayı
if ($pagenum == "") { $pagenum = 1 ; }
$offset = ($pagenum-1) * $storynum ;
$sql = "SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories $qdb $querylang ORDER BY sid DESC limit $offset, $storynum";
Haline getirin. Sonrasında aynı bölümde include("footer.php") yazan yerden önce şu kodları ekleyin.
$sql_pn = "select * from ".$prefix."_stories $qdb $querylang $limitpn";
$result_pn = $db->sql_query($sql_pn);
$numstories = $db->sql_numrows($result_pn);
$numpages = ceil($numstories / $storynum);
#if ($numpages > 1 and $new_topic == 0) {
if ($numpages > 1) {
opentable();
echo "<center>$numstories "._STORIES." ($numpages "._PAGES.", $storynum "._PERPAGE.")<br>" ;
if ($pagenum > 1) {
$prevpage = $pagenum - 1 ;
$leftarrow = "images/left.gif" ;
if(isset($new_topic)) {
echo "<a href=\"modules.php?name=News&new_topic=$new_topic&pagenum=$prevpage\">";
echo "<img src=\"$leftarrow\" align=\"absmiddle\" border=\"0\" hspace=\"10\"></a>";
} else {
echo "<a href=\"modules.php?name=News&pagenum=$prevpage\">";
echo "<img src=\"$leftarrow\" align=\"absmiddle\" border=\"0\" hspace=\"10\"></a>";
}
}
echo "[ " ;
for ($i=1; $i < $numpages+1; $i++) {
if ($i == $pagenum) {
echo "<b>$i</b>";
} else {
if(isset($new_topic)) {
echo "<a href=\"modules.php?name=News&new_topic=$new_topic&pagenum=$i\">$i</a>";
} else {
echo "<a href=\"modules.php?name=News&pagenum=$i\">$i</a>";
}
}
if ($i < $numpages) { echo " | "; } else { echo " ]"; }
}
if ($pagenum < $numpages) {
$nextpage = $pagenum + 1 ;
$rightarrow = "images/right.gif" ;
if(isset($new_topic)) {
echo "<a href=\"modules.php?name=News&new_topic=$new_topic&pagenum=$nextpage\">";
echo "<img src=\"$rightarrow\" align=\"absmiddle\" border=\"0\" hspace=\"10\"></a>";
} else {
echo "<a href=\"modules.php?name=News&pagenum=$nextpage\">";
echo "<img src=\"$rightarrow\" align=\"absmiddle\" border=\"0\" hspace=\"10\"></a>";
}
}
echo "</center>" ;
closetable();
}
Başa dön
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