Etiketler: latestposts konu
| Author | Message |
10ur
36 posts |
#8922 2007-12-09 20:28 GMT |
|
Merhaba arkadaşlar, latestposts ile ilgili bişeyleri kurcalamadım ama yapamadım, benim istediğim şey latestposts eklentisindeki Konu,Mesajlar,okunma,Son Gönderen ve tarih yazan kısmı kategori,Konu,Mesajlar,okunma,Son Gönderen ve tarih olarak yapmak bunu yapmam için ne yapmam lazım |
|
Dvdbil
2,133 posts |
#8929 2007-12-09 23:23 GMT |
|
İlgili dosyanın kodlarını buraya yaz.
|
|
10ur
36 posts |
#8943 2007-12-10 17:23 GMT |
|
Code: <?PHP
/* ==================== Land Down Under - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/latestposts/latestposts.php Version=2 Updated= Type=Plugin Author=neocrome Description=Ana Sayfada Son Forum Konulari [END_SED] [BEGIN_SED_EXTPLUGIN] Code=latestposts Part=main File=latestposts Hooks=index.tags Tags=index.tpl:{PLUGIN_latestposts} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "13"; // 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_updated DESC LIMIT $plimit"); $latestposts = "<table border='0' width='100%' cellspacing='0' cellpadding='1' align='center'>"; $latestposts .= "<center><tr><td> Konu</td><td>Mesajlar</td><td>Okunma</td><td> Son Gönderen</td><td>Tarih</td></tr></center>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ if (sed_auth('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> "; $latestposts .= "<tr><td> "; $latestposts .= $img." <a href=\"forums.php?m=posts&q=".$row['ft_id']."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</a></td>"; $latestposts .="<td> (" .$row["ft_postcount"]. ") </td>"; $latestposts .="<td> (" .$row["ft_viewcount"]. ")</td>"; $latestposts .= "<td> <a href='users.php?m=details&id=".$row["ft_lastposterid"]."'>".$row["ft_lastpostername"]."</a></td>";$latestposts .= "<td> ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>"; } } if($ii==0){ $latestposts .= "<tr><td colspan=\"5\"><center><font color='red'><br> Son Forum Konularını Görmek için Giriş Yapınız</font></center></td></tr>"; } $latestposts .= "</table>"; $t-> assign(array( "PLUGIN_LATEST_POSTS" => $latestposts, )); ?> |
|
Dvdbil
2,133 posts |
#8950 2007-12-10 17:46 GMT |
|
Test etmeden yazdım.
Code: <?PHP
/* ==================== Land Down Under - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/latestposts/latestposts.php Version=2 Updated= Type=Plugin Author=neocrome Description=Ana Sayfada Son Forum Konulari [END_SED] [BEGIN_SED_EXTPLUGIN] Code=latestposts Part=main File=latestposts Hooks=index.tags Tags=index.tpl:{PLUGIN_latestposts} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "13"; // 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_updated DESC LIMIT $plimit"); $latestposts = "<table border='0' width='100%' cellspacing='0' cellpadding='1' align='center'>"; $latestposts .= "<center><tr><td>Kategori</td><td><td>Konu</td><td>Mesajlar</td><td>Okunma</td><td>Son Gönderen</td><td>Tarih</td></tr></center>"; $ii=0; while ($row = sed_sql_fetcharray($sql)){ if (sed_auth('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> "; $latestposts .= "<tr><td>"."<a href=\"forums.php?m=topics&s=".$row['fs_id']."\">".sed_cutstring(stripslashes($row['fs_title']),32)."</a></td>"; $latestposts .= "<td> "; $latestposts .= $img." <a href=\"forums.php?m=posts&q=".$row['ft_id']."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</a></td>"; $latestposts .="<td> (" .$row["ft_postcount"]. ") </td>"; $latestposts .="<td> (" .$row["ft_viewcount"]. ")</td>"; $latestposts .= "<td> <a href='users.php?m=details&id=".$row["ft_lastposterid"]."'>".$row["ft_lastpostername"]."</a></td>";$latestposts .= "<td> ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>"; } } if($ii==0){ $latestposts .= "<tr><td colspan=\"6\"><center><font color='red'><br> Son Forum Konularını Görmek için Giriş Yapınız</font></center></td></tr>"; } $latestposts .= "</table>"; $t-> assign(array( "PLUGIN_LATEST_POSTS" => $latestposts, )); ?> |
|
10ur
36 posts |
#8951 2007-12-10 17:52 GMT |
|
teşekkürler oldu
|
|
Temhem
4 posts |
#8952 2007-12-10 17:53 GMT |
|
Arkadaşım latestposts eklentisini kurduktan sonra {PLUGIN_latestposts} bu şekilde index.tpl de istediğin yere koyduğun zaman çıkar satan mesajlar, okunma, son gönderen eklentide var çıkar ...
|
|
|
Hiç Kimse Başarı Merdivenlerine Elleri Çebinde Çıkmamıştır...
Seditio/Plugins/Skins |
|
Dvdbil
2,133 posts |
#8953 2007-12-10 18:11 GMT |
Quote Kategorininde çıkmasını istiyordu. This post was edited by Dvdbil (2007-12-10 18:21 GMT, 223 Gün ago) |
|
Temhem
4 posts |
#8954 2007-12-10 18:18 GMT |
|
Tamam sorun yok
|
|
|
Hiç Kimse Başarı Merdivenlerine Elleri Çebinde Çıkmamıştır...
Seditio/Plugins/Skins |
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| latestposts sorunu... | 8 | WebCoder | 126 Gün |
| Latestposts Kısaltma | 3 | YaKuP_48 | 257 Gün |
| LatestPosts Sorunu | 19 | HiPy | 397 Gün |
| Konu gözükmüyor? | 3 | Kripteks | 125 Gün |
| En Çok Konu Acanlar | 3 | CoDeRizM | 480 Gün |





