konulari facebook ve twittere aktarmak
|
#6976 |
|
|
Kaan
User is:
Posts: 2772
Meslek: Serbest Meslek
Age: 43
|
Kod: <?PHP /* ==================== [BEGIN_SED] File=plugins/latestposts2/latestposts2.php Version=121 Updated=31-aralýk-2007 Type=Plugin Author=Aragorn-pc Description=kankayizz.net [END_SED] [BEGIN_SED_EXTPLUGIN] Code=latestposts2 Part=main File=latestposts2 Hooks=index.tags Tags=index.tpl:{LATEST_POSTS_2} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "35"; // 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"); $latestposts2 .= "<table class=\"cells\"><tr>"; $latestposts2 .= "<tr><td class=\"fscat\"><center>Mövzu</b></center></td><td class=\"fscat\"> <center>Mesajlar</b></center></td></td><td class=\"fscat\"><center>Oxunma</b></center></td><td class=\"fscat\"><center>Son Göndərən</b></center></td><td class=\"fscat\"><center>Tarix</b></center></td></tr>"; $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><font color='red'>" : "<a href=\"forums.php?m=posts&q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a></b></font> "; $latestposts2 .= "<tr><td> "; $latestposts2 .= $img." <a href=\"forums.php?m=posts&q=".$row['ft_id']."\" title=\"".$row['ft_title']."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."</a> <a href=\"http://www.facebook.com/sharer.php?u=".$cfg['mainurl']."/forums.php?m=posts&q=".$row['ft_id']."&t=".sed_cc(sed_cutstring(stripslashes($row['ft_title']),28))."\" target=\"blank\"><img src=\"plugins/latestposts2/facebook_icon.png\" alt=\"FaceBook ta payla?\" /></a> </td>"; $latestposts2 .="<td><center> (" .$row["ft_postcount"]. ") </center></td>"; $latestposts2 .="<td><center> (" .$row["ft_viewcount"]. ")</center></td>"; $latestposts2 .= "<td><center>".sed_build_user($row['ft_lastposterid'], $row['ft_lastpostername'])."</td>"; $latestposts2 .= "<td><center> ".sed_build_timegap($row['ft_updated'], $sys['now_offset'])."</b></td></center></tr>"; } } if($ii==0){ $latestposts2 .= "<tr><td colspan=\"5\"><center>Son forum mesajlar?n? g?rmək ???n sayta giri? edin...</center></td></tr>"; } $latestposts2 .= "</table>"; $t-> assign(array( "LATEST_POSTS_2" => $latestposts2, )); ?> |
Emlak, Oto Galeri, Rent A Car, ?iir, Edebiyat Script Sipari?lerinizi Verebilirsiniz. Detaylar ??in: kaan@ntka.org Seditio 170 ?ndir Capte M?zik ?ndir Seditio Toolbar ?ndir |













