|
»Forumlar »SE ? Plugins
»cevapsız konular eklentisi
https://seditio.com.tr/eski1/forums.php?m=posts&q=1366 |
| Author: kors@n, Posted: 2011-04-16 01:35 GMT. |
| merhaba cevaps?z konular eklentisi ar?yorum |
| Author: Kaan, Posted: 2011-04-17 22:03 GMT. |
|
Eklentiyi test etmedim ?al??mayabilir.. cevaplanmayanlar.php Kod: <?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/cevaplanmayanlar/cevaplanmayanlar.php Version=0.1 Updated=2006-apr-18 Type=Plugin Author=Kaan Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=cevaplanmayanlar Part=main File=cevaplanmayanlar Hooks=index.tags Tags=index.tpl:{PLUGIN_cevap} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "10"; // define number of rows you want to see... $sql = sed_sql_query("SELECT COUNT(*) FROM $db_forum_topics WHERE ft_postcount=1"); $totaltopics = sed_sql_result($sql, 0, "COUNT(*)"); $sql = sed_sql_query("SELECT * FROM $db_forum_topics WHERE ft_postcount=1 ORDER by ft_updated DESC LIMIT $plimit"); $cvp = "<table class='cells'>"; $cvp .= "<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> "; $cvp .= "<tr><td> "; $cvp .= $img." <a href=\"forums.php?m=posts&q=".$row["ft_id"]."&n=last#bottom\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</td>"; $cvp .="<td> (" .$row["ft_postcount"]. ") </td>"; $cvp .="<td> (" .$row["ft_viewcount"]. ")</td>"; $cvp .= "<td> <a href='users.php?m=details&id=".$row["ft_lastposterid"]."'>".$row["ft_lastpostername"]."</a></td>"; $cvp .= "<td> ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>"; } } $cvp .= "</table>"; $t-> assign(array( "PLUGIN_cevap" => $cvp, )); ?> cevaplanmayanlar.setup.php Kod: <?PHP /* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/cevaplanmayanlar/cevaplanmayanlar.setup.php Version=0.1 Updated=2006-apr-18 Type=Plugin Author=Kaan Description=Forumda Cevaplanmayan Konular [END_SED] [BEGIN_SED_EXTPLUGIN] Code=cevaplanmayanlar Name=Cevaplanmayanlar Description=Cevaplanmayan Konular Version=0.1 Date=2006-apr-18 Author=Kaan Notes= Auth_guests=R Lock_guests=W12345A Auth_members=R Lock_members=W12345A [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } ?> |
| Powered by Seditio | Print version |