| Author | Message |
mrT
14 posts |
#9099 2007-12-14 01:22 GMT |
|
arkadaşlar ben sitemde önemli konuları giriş yapmadan görülmesini istiyorum nasıl yapacam kodlar aşağıda.. Code: <?PHP
/* ==================== Land Down Under - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/onemlikonular/onemlikonular.php Version=121 Updated=2005-dec-12 Type=Plugin Author=Neocrome Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=onemlikonular Part=main File=onemlikonular Hooks=index.tags Tags=index.tpl:{PLUGIN_onemlikonular} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } require_once("plugins/onemlikonular/lang/onemlikonular.tr.lang.php"); $plugin_title = $L['plu_title']; // Top pages $plimit = "5"; // define number of rows you want to see... $sql = sed_sql_query("SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, t.ft_viewcount, t.ft_lastposterid, t.ft_lastpostername, s.fs_id, s.fs_title, s.fs_category FROM $db_forum_topics t,$db_forum_sections s WHERE t.ft_sectionid=s.fs_id AND t.ft_movedto=0 AND t.ft_mode=0 ORDER by t.ft_viewcount DESC LIMIT ".$cfg['plugin']['onemlikonular']['maxlines']); $onemlikonular = "<table class='cells'>"; $onemlikonular .= "<h4></h4>"; $onemlikonular .= "<tr><td>Konu</td><td>Mesajlar</td><td>Okunma</td><td>Son Gönderen</td><td>Tarih</td></tr>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ if (sed_cc('forums', $row['fs_id'], 'R')){ $ii++; $img = ($usr['id']>0 && $row['ft_updated']>$usr['lastvisit']) ? "<a href=\"forums.php?m=posts&q=".$row['ft_id']."&n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a>" : "<a href=\"forums.php?m=posts&q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a> "; $onemlikonular .= "<tr><td> "; $onemlikonular .= $img." <a href=\"forums.php?m=posts&q=".$row["ft_id"]."&n=last#bottom\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</td>"; $onemlikonular .="<td> (" .$row["ft_postcount"]. ") </td>"; $onemlikonular .="<td> (" .$row["ft_viewcount"]. ")</td>"; $onemlikonular .= "<td> <a href='users.php?m=details&id=".$row["ft_lastposterid"]."'>".$row["ft_lastpostername"]."</a></td>"; $onemlikonular .= "<td> ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>"; } } $onemlikonular .= "</table>"; $t-> assign(array( "PLUGIN_onemlikonular" => $onemlikonular)); ?> |
|
Dvdbil
2,093 posts |
#9100 2007-12-14 01:46 GMT |
|
Test et:
Code: <?PHP
/* ==================== Land Down Under - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/onemlikonular/onemlikonular.php Version=121 Updated=2005-dec-12 Type=Plugin Author=Neocrome Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=onemlikonular Part=main File=onemlikonular Hooks=index.tags Tags=index.tpl:{PLUGIN_onemlikonular} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } require_once("plugins/onemlikonular/lang/onemlikonular.tr.lang.php"); $plugin_title = $L['plu_title']; // Top pages $plimit = "5"; // define number of rows you want to see... $sql = sed_sql_query("SELECT t.ft_id, t.ft_sectionid, t.ft_title, t.ft_updated, t.ft_postcount, t.ft_viewcount, t.ft_lastposterid, t.ft_lastpostername, s.fs_id, s.fs_title, s.fs_category FROM $db_forum_topics t,$db_forum_sections s WHERE t.ft_sectionid=s.fs_id AND t.ft_movedto=0 AND t.ft_mode=0 ORDER by t.ft_viewcount DESC LIMIT ".$cfg['plugin']['onemlikonular']['maxlines']); $onemlikonular = "<table class='cells'>"; $onemlikonular .= "<h4></h4>"; $onemlikonular .= "<tr><td>Konu</td><td>Mesajlar</td><td>Okunma</td><td>Son Gönderen</td><td>Tarih</td></tr>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ $ii++; $img = ($usr['id']>0 && $row['ft_updated']>$usr['lastvisit']) ? "<a href=\"forums.php?m=posts&q=".$row['ft_id']."&n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a>" : "<a href=\"forums.php?m=posts&q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a> "; $onemlikonular .= "<tr><td> "; $onemlikonular .= $img." <a href=\"forums.php?m=posts&q=".$row["ft_id"]."&n=last#bottom\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</td>"; $onemlikonular .="<td> (" .$row["ft_postcount"]. ") </td>"; $onemlikonular .="<td> (" .$row["ft_viewcount"]. ")</td>"; $onemlikonular .= "<td> <a href='users.php?m=details&id=".$row["ft_lastposterid"]."'>".$row["ft_lastpostername"]."</a></td>"; $onemlikonular .= "<td> ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>"; } $onemlikonular .= "</table>"; $t-> assign(array( "PLUGIN_onemlikonular" => $onemlikonular)); ?> |
|
Kaan
1,658 posts |
#9102 2007-12-14 12:48 GMT |
|
Burayıda silebilirsiniz fazlalık kod sanırım setup dosyasında sayfa sayısı varsa silin. $plimit = "5"; // define number of rows you want to see... |
|
zombie
1 posts |
#20712 2008-03-26 22:00 GMT |
|
Aynı Kodları Kopyaladım Olmadı Kullanıcılara Gozukmuyor Yardım Edermisiniz
|
|
Maddium Coder
62 posts |
#20833 2008-03-27 19:43 GMT |
|
PaneLize - Kullanıcılar - Yeni Üyeye TıkLa orda rütbelerden onemli konuları işaretLe ziyaretçilere gözükür.
|
|
alikoza
218 posts |
#20902 2008-03-28 00:04 GMT |
|
www.siteadresi.com/admin.php?m=rights&g=1 bu sekilde yaz sitenin sonuna gir panele.. ordan onemli konular eklentisini bul ve isaretle artik misafirler de uye olmadan gore bilirler...
|
|
> 1 <
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| Önemli Konular | 5 | Kaan | 274 Gün |
| Önemli konular Eklentisi | 4 | The_PcDelisi | 79 Gün |
| Latestpost ve önemli konular tam gözükmüyor | 3 | CockRoacH | 220 Gün |
| son konular | 2 | WoMaNiZeR | 152 Gün |
| Son Konular Sorunu | 3 | Kaan | 149 Gün |







