Etiketler: latestposts konu
| Author | Message |
10ur
46 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,233 posts |
#8929 2007-12-09 23:23 GMT |
|
İlgili dosyanın kodlarını buraya yaz.
|
|
|
Sitelerinize profesyonel anlamda hizmet verilir;
- Performans optimizasyonu, - Üst düzey güvenlik yamaları, - İsteğe bağlı eklentiler, - Her çeşit bot (program, video, resim, arsiv, haber), - Profesyonel görsel skin. Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta. *************************İSTATİSTİKLER************************* Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23 Sadece Eklenti hazırladığım kişi sayısı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
10ur
46 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,233 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, )); ?> |
|
|
Sitelerinize profesyonel anlamda hizmet verilir;
- Performans optimizasyonu, - Üst düzey güvenlik yamaları, - İsteğe bağlı eklentiler, - Her çeşit bot (program, video, resim, arsiv, haber), - Profesyonel görsel skin. Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta. *************************İSTATİSTİKLER************************* Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23 Sadece Eklenti hazırladığım kişi sayısı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
10ur
46 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,233 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, 302 Gün ago) |
|
|
Sitelerinize profesyonel anlamda hizmet verilir;
- Performans optimizasyonu, - Üst düzey güvenlik yamaları, - İsteğe bağlı eklentiler, - Her çeşit bot (program, video, resim, arsiv, haber), - Profesyonel görsel skin. Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta. *************************İSTATİSTİKLER************************* Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23 Sadece Eklenti hazırladığım kişi sayısı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
|
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 Kısaltma | 3 | YaKuP_48 | 336 Gün |
| LatestPosts Sorunu | 19 | HiPy | 476 Gün |
| latestposts sorunu... | 8 | WebCoder | 205 Gün |
| Silinecek Konu | 4 | Turk | 71 Gün |
| En Çok Konu Acanlar | 3 | CoDeRizM | 559 Gün |




