Toplam Üye:
32638
Aktif Üye:
0
Aktif Ziyaretçi:
148
??? Sitem deki Haberleri ..(25273 okuma, 26 yanıt) Free Hosta Php Nuke Kurul ..(16377 okuma, 14 yanıt) EKLENTİ: Misafire mesajın ..(36701 okuma, 38 yanıt) Php Nuke 9.0 Geliyor ..(20759 okuma, 19 yanıt) Bu başlık için mesaj bulu ..(13933 okuma, 15 yanıt) Facebook Sohbet Tipi Sohb ..(17682 okuma, 15 yanıt) üye aktivasyon ..(10593 okuma, 8 yanıt) Facebook tarzı altbar... ..(6242 okuma, 1 yanıt) kaldırmak istediğim bölüm ..(6517 okuma, 2 yanıt) Resimli RSS ..(23118 okuma, 25 yanıt) Onay linkini kaldirmak ..(11025 okuma, 8 yanıt) Yardım :( Site açılırken ..(6622 okuma, 2 yanıt) .Htaccess ile uzantıda ke ..(8237 okuma, 4 yanıt) block genişliği ..(5678 okuma, 1 yanıt) Haber Resimleri ve Slide ..(14311 okuma, 12 yanıt) Foruma büyük boyutlu resi ..(7270 okuma, 3 yanıt) Php-Nuke 8.0 Paket ..(9392 okuma, 6 yanıt) Hangi sürümü önerirsiniz? ..(10439 okuma, 8 yanıt) ethai1 3 ..(13101 okuma, 10 yanıt) Yeni PEHASPESEO ..(69593 okuma, 82 yanıt) Türkçe Karakter sorunu ? ..(37580 okuma, 36 yanıt) tek modul için sağ ve sol ..(11340 okuma, 8 yanıt) Php-nuke8.0 başlıklarda t ..(10537 okuma, 8 yanıt) Phpden iyi anlayan ..(5401 okuma, 1 yanıt) Php nuke 7.6 - 3.1 patch ..(72909 okuma, 89 yanıt) Mp3 Üst Player Yardım ..(29402 okuma, 40 yanıt) Toplu üyelik silme? ..(11079 okuma, 8 yanıt) Çözümleyemediğim hata... ..(12332 okuma, 11 yanıt) bloğu kayan hale getirmek ..(5947 okuma, 2 yanıt) Makale modulu ..(8545 okuma, 5 yanıt) PHP-Nuke Haber V.1 Paylas ..(84904 okuma, 121 yanıt) title değiştirme ..(10248 okuma, 6 yanıt) Arkadaşlar bu sorunun çöz ..(10004 okuma, 6 yanıt) Php Nuke 8.1 ..(4331 okuma, 0 yanıt) merhaba ..(10232 okuma, 9 yanıt) Anasayfa için boş modül o ..(13432 okuma, 13 yanıt) admin panelinde Access De ..(6358 okuma, 2 yanıt) Bu başlığa hiç cevap gelm ..(26262 okuma, 25 yanıt) Nuke Tema yapilisi ..(17043 okuma, 16 yanıt) Mavisce-net temasina bann ..(8683 okuma, 6 yanıt) PHP-Nuke wTeam - eklentil ..(6610 okuma, 2 yanıt) coppermine hata ..(10648 okuma, 8 yanıt) içerik tanıtımı ..(6254 okuma, 2 yanıt) Haber Ve İçeriğe Resim Ek ..(7124 okuma, 3 yanıt) google keywords ..(8930 okuma, 6 yanıt) 8.0'da html sorunu ..(5477 okuma, 1 yanıt) PHP-Nuke_8.1.3.5+NukeSent ..(53823 okuma, 76 yanıt) üye olunurken gereksiz is ..(9982 okuma, 7 yanıt) Arkadaşlar kolifa haber s ..(6331 okuma, 2 yanıt) Hesabınız'a tıklayınca te ..(10439 okuma, 7 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - 2'li haber modülü yapmak?
Önceki başlık :: Sonraki başlık
Yazar
Mesaj
gizemli_master Mesaj: 300+
Kayıt: Dec 25, 2006 Mesajlar: 360
Tarih: 2008-08-10, 10:31:51 Mesaj konusu: 2'li haber modülü yapmak?
merhaba arkadaşlar ben anasayfada yan yana 2 li haber nasıl yapabilirim
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-20, 10:56:31 Mesaj konusu: Forum Arası Reklamlar
Başa dön
hakan Editör
Kayıt: Aug 12, 2005 Mesajlar: 1619 Konum: Tokat
Tarih: 2008-08-10, 19:21:28 Mesaj konusu:
nsn news modülünü kullanarak yapabilirsin
Başa dön
soulfather Mesaj: 1000+
Kayıt: Jun 11, 2004 Mesajlar: 1051 Konum: Ankara
Başa dön
gizemli_master Mesaj: 300+
Kayıt: Dec 25, 2006 Mesajlar: 360
Tarih: 2008-08-11, 00:51:32 Mesaj konusu:
yaptım olmadı
Başa dön
envergengoru Mesaj: 300+
Kayıt: Jan 17, 2007 Mesajlar: 341 Konum: Köln / Almanya
Tarih: 2008-08-11, 01:03:01 Mesaj konusu:
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/************************************************************************/
if ( (!eregi("modules.php", $_SERVER['PHP_SELF'])) && (!defined('MODULE_FILE')) )
{
die("ııh yanlış geldin...");
}
define('INDEX_FILE', true);
$index=1;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
function theindex($new_topic="0") {
global $db, $storyhome, $topicname, $topicimage, $topictext, $datetime, $user, $c o o k i e, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm, $sitename, $user_news, $userinfo, $pagenum;
if (is_user($user)) { getusrinfo($user); }
if ($multilingual == 1) {
$querylang = "AND (alanguage='$currentlang' OR alanguage='')";
} else {
$querylang = "";
}
include("header.php");
automated_news();
if (isset($new_topic)) {
$new_topic = intval($new_topic);
} else {
$new_topic == 0;
}
if (isset($userinfo['setstorynum']) AND $user_news == 1) {
$storynum = $userinfo['setstorynum'];
} else {
$storynum = $storyhome;
}
if ($new_topic == 0) {
$qdb = "WHERE (ihome='0' OR catid='0')";
$home_msg = "";
} else {
$qdb = "WHERE topic='$new_topic'";
$result_a = $db->sql_query("SELECT topictext FROM ".$prefix."_topics WHERE topicid='$new_topic'");
$row_a = $db->sql_fetchrow($result_a);
$numrows_a = $db->sql_numrows($result_a);
$topic_title = stripslashes(check_html($row_a['topictext'], "nohtml"));
OpenTable();
if ($numrows_a == 0) {
echo "<center><font class=\"title\">$sitename</font><br><br>"._NOINFO4TOPIC."<br><br>[ <a href=\"modules.php?name=News\">"._GOTONEWSINDEX."</a> | <a href=\"modules.php?name=Topics\">"._SELECTNEWTOPIC."</a> ]</center>";
} else {
echo "<center><font class=\"title\">$sitename: $topic_title</font><br><br>"
."<form action=\"modules.php?name=Search\" method=\"post\">"
."<input type=\"hidden\" name=\"topic\" value=\"$new_topic\">"
.""._SEARCHONTOPIC.": <input type=\"name\" name=\"query\" size=\"30\"> "
."<input type=\"submit\" value=\""._SEARCH."\">"
."</form>"
."[ <a href=\"index.php\">"._GOTOHOME."</a> | <a href=\"modules.php?name=Topics\">"._SELECTNEWTOPIC."</a> ]</center>";
}
CloseTable();
echo "<br>";
}
if ($pagenum == "") { $pagenum = 1 ; }
$offset = ($pagenum-1) * $storynum ;
$result = $db->sql_query("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");
$pro = 0;
echo "<table border=\"0\" width=\"100%\" valign=\"top\" cellpadding=\"0\">";
while ($row = $db->sql_fetchrow($result)) {
$s_sid = intval($row['sid']);
$catid = intval($row['catid']);
$aid = stripslashes($row['aid']);
$title = stripslashes(check_html($row['title'], "nohtml"));
$time = $row['time'];
$hometext = stripslashes($row['hometext']);
$bodytext = stripslashes($row['bodytext']);
$comments = stripslashes($row['comments']);
$counter = intval($row['counter']);
$topic = intval($row['topic']);
$informant = stripslashes($row['informant']);
$notes = stripslashes($row['notes']);
$acomm = intval($row['acomm']);
$score = intval($row['score']);
$ratings = intval($row['ratings']);
if ($catid > 0) {
$row2 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
$cattitle = stripslashes(check_html($row2['title'], "nohtml"));
}
getTopics($s_sid);
formatTimestamp($time);
$subject = stripslashes(check_html($subject, "nohtml"));
$introcount = strlen($hometext);
$fullcount = strlen($bodytext);
$totalcount = $introcount + $fullcount;
$c_count = $comments;
$r_options = "";
if (isset($userinfo['umode'])) { $r_options .= "&mode=".$userinfo['umode']; }
if (isset($userinfo['uorder'])) { $r_options .= "&order=".$userinfo['uorder']; }
if (isset($userinfo['thold'])) { $r_options .= "&thold=".$userinfo['thold']; }
$story_link = "<a href=\"modules.php?name=News&file=article&sid=$s_sid$r_options\">";
if ($fullcount > 0 OR $c_count > 0 OR $articlecomm == 0 OR $acomm == 1) {
$morelink = "$story_link<b>"._READMORE."</b></a>";
} else {
$morelink = "";
}
$sid = intval($s_sid);
if ($catid != 0) {
$row3 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
$title1 = stripslashes(check_html($row3['title'], "nohtml"));
$title = "<a href=\"modules.php?name=News&file=categories&op=newindex&catid=$catid\"><font class=\"storycat\">$title1</font></a>: $title";
}
if ($score != 0) {
$rated = substr($score / $ratings, 0, 4);
} else {
$rated = 0;
}
if($pro == 0) {
echo "<tr>";
echo "<td valign='top' width='50%'>";
}
themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext);
echo "</td>";
$pro++;
if ($pro ==1) {
echo "</td><td width='50%' valign='top'>";
}
if ($pro == 2) {
echo "</td></tr>";
$pro = 0;
}
}
echo "</td></tr></table>";
#START Page Numbers
#$limitpn = "limit 100"; # limit number of stories
if(isset($new_topic)) {
$sql_pn = "select * from ".$prefix."_stories";
} else {
$sql_pn = "select * from ".$prefix."_stories where ihome=0 $limitpn";
}
$result_pn = $db->sql_query($sql_pn);
$numstories = $db->sql_numrows($result_pn);
$numpages = ceil($numstories / $storynum);
if ($numpages > 0) {
opentable();
echo "<center>("._PERPAGE." $storynum "._UZERE." $numpages "._PAGES.")<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();
}
#END Page Numbers in news and topics
include("footer.php");
}
function rate_article($sid, $score) {
global $prefix, $db, $ratec o o k i e, $sitename, $r_options;
$score = intval($score);
$sid = intval($sid);
if ($score) {
if ($score > 5) { $score = 5; }
if ($score < 1) { $score = 1; }
if ($score != 1 AND $score != 2 AND $score != 3 AND $score != 4 AND $score != 5) {
Header("Location: index.php");
die();
}
if (isset($ratec o o k i e)) {
$rc o o k i e = base64_decode($ratec o o k i e);
$rc o o k i e = addslashes($rc o o k i e);
$r_c o o k i e = explode(":", $rc o o k i e);
}
for ($i=0; $i < sizeof($r_c o o k i e); $i++) {
if ($r_c o o k i e[$i] == $sid) {
$a = 1;
}
}
if ($a == 1) {
Header("Location: modules.php?name=News&op=rate_complete&sid=$sid&rated=1");
} else {
$result = $db->sql_query("update ".$prefix."_stories set score=score+$score, ratings=ratings+1 where sid='$sid'");
$info = base64_encode("$rc o o k i e$sid:");
setc o o k i e("ratec o o k i e","$info",time()+3600);
update_points(7);
Header("Location: modules.php?name=News&op=rate_complete&sid=$sid$r_options");
}
} else {
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
echo "<center>"._DIDNTRATE."<br><br>"
.""._GOBACK."</center>";
CloseTable();
include("footer.php");
}
}
function rate_complete($sid, $rated=0) {
global $sitename, $user, $c o o k i e, $userinfo;
$r_options = "";
if (is_user($user)) {
getusrinfo($user);
if (isset($userinfo['umode'])) { $r_options .= "&mode=".$userinfo['umode']; }
if (isset($userinfo['uorder'])) { $r_options .= "&order=".$userinfo['uorder']; }
if (isset($userinfo['thold'])) { $r_options .= "&thold=".$userinfo['thold']; }
}
include("header.php");
title("$sitename: "._ARTICLERATING."");
OpenTable();
if ($rated == 0) {
echo "<center>"._THANKSVOTEARTICLE."<br><br>"
."[ <a href=\"modules.php?name=News&file=article&sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
} elseif ($rated == 1) {
echo "<center>"._ALREADYVOTEDARTICLE."<br><br>"
."[ <a href=\"modules.php?name=News&file=article&sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
}
CloseTable();
include("footer.php");
}
if (!(isset($new_topic))) { $new_topic = 0; }
switch ($op) {
default:
theindex($new_topic);
break;
case "rate_article":
rate_article($sid, $score);
break;
case "rate_complete":
rate_complete($sid, $rated);
break;
}
?>
bunu index.php olarak kaydet
modules/News/ buraya at olur
Başa dön
gizemli_master Mesaj: 300+
Kayıt: Dec 25, 2006 Mesajlar: 360
Tarih: 2008-08-11, 10:34:23 Mesaj konusu:
site gtti arkadaş başka çözüm yolu yokmu
Başa dön
berzankocak Mesaj: 300+
Kayıt: May 26, 2007 Mesajlar: 468
Tarih: 2008-08-11, 11:10:52 Mesaj konusu:
ben denedim olmadı news ana sayfa yaptım sayfa bembeyaz oldu
Başa dön
artistbaron Mesaj: 1000+
Kayıt: Dec 09, 2006 Mesajlar: 2993
Tarih: 2008-08-11, 16:49:46 Mesaj konusu:
Kod:
modules/News/index.php Dosyasini Acin ve Bulunuz Asagidaki Satirlari
$result = $db->sql_query("SELECT sid, catid, aid, title, ?>
Yukarida Bulmus oldugunuz Satirin Hemen Bir üstüne Asagidaki Satirlari Ekleyiniz
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">';
$itemsPerRow = 2;
$count = 0;
Bulunuz Asagidaki Satiri
themeindex($aid, $informant, $datetime, $title, $counter,
Buldugunuz Satirin Hemen Bir üstüne Asagidaki Satiri ekleyiniz
if ($count % $itemsPerRow == 0)
echo "<tr>
";
$count++;
echo '<td valign="top" height="100%" width="50%">';
Bulunuz Asagidaki Satiri Daha önce bulmus oldugumuz Satir
themeindex($aid, $informant, $datetime, $title, $counter,
Hemen Bir altina Asagidaki Satiri Ekliyoruz
echo '</td>';
if ($count % $itemsPerRow == 0)
echo "</tr>
";
Bulunuz Asagidaki Satiri
include("footer.php"):
Buldugunuz Satirin Hemen Üstüne Asgidaki Satiri ekleyiniz
echo '</table>';
Ben Bunlari Uyguladim Oldu,Hatasiz Yaparsan Eminim Sendede Olacaktir kardes..
Başa dön
Bu Site Google Adsense ile Gelir Elde Ediyor
Tarih: 2024-05-20, 10:56:31 Mesaj konusu: Forum Arası Reklamlar
Başa dön
berzankocak Mesaj: 300+
Kayıt: May 26, 2007 Mesajlar: 468
Tarih: 2008-08-11, 17:12:24 Mesaj konusu:
artistbaron :
Kod:
modules/News/index.php Dosyasini Acin ve Bulunuz Asagidaki Satirlari
$result = $db->sql_query("SELECT sid, catid, aid, title, ?>
Yukarida Bulmus oldugunuz Satirin Hemen Bir üstüne Asagidaki Satirlari Ekleyiniz
echo '<table>';
$itemsPerRow = 2;
$count = 0;
Bulunuz Asagidaki Satiri
themeindex($aid, $informant, $datetime, $title, $counter,
Buldugunuz Satirin Hemen Bir üstüne Asagidaki Satiri ekleyiniz
if ($count % $itemsPerRow == 0)
echo "<tr>
";
$count++;
echo '<td>';
Bulunuz Asagidaki Satiri Daha önce bulmus oldugumuz Satir
themeindex($aid, $informant, $datetime, $title, $counter,
Hemen Bir altina Asagidaki Satiri Ekliyoruz
echo '</td>';
if ($count % $itemsPerRow == 0)
echo "</tr>
";
Bulunuz Asagidaki Satiri
include("footer.php"):
Buldugunuz Satirin Hemen Üstüne Asgidaki Satiri ekleyiniz
echo '</table>';
Ben Bunlari Uyguladim Oldu,Hatasiz Yaparsan Eminim Sendede Olacaktir kardes..
harikasin hocam oldu çok sağol senden bir isteğim daha olucak ben bu an saygadaki news bloklarının sayısını nasıl azaltabilirim admin seçeneklerde en az 5 biliyorsunuz bunu nasıl azaltablirim
Başa dön
artistbaron Mesaj: 1000+
Kayıt: Dec 09, 2006 Mesajlar: 2993
Başa dön
gizemli_master Mesaj: 300+
Kayıt: Dec 25, 2006 Mesajlar: 360
Tarih: 2008-10-10, 02:00:05 Mesaj konusu:
süper sin hocam tamamdır iş
Başa dön
artistbaron Mesaj: 1000+
Kayıt: Dec 09, 2006 Mesajlar: 2993
Tarih: 2008-10-10, 05:34:48 Mesaj konusu:
gizemli_master :
süper sin hocam tamamdır iş
önemli değil sağolasın :)
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