Total Users Online: 0 üye, 1143 guest | Tarih/Saat: 2026-08-30 10:41
 
konulari facebook ve twittere aktarmak
2012-03-04 00:27 GMT  oklu Alnt
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
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']."&amp;n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a><font color='red'>" : "<a href=\"forums.php?m=posts&amp;q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a></b></font> ";

$latestposts2 .= "<tr><td> &nbsp;";
$latestposts2 .= $img." <a href=\"forums.php?m=posts&amp;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&amp;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>&nbsp;(" .$row["ft_postcount"]. ") </center></td>";
$latestposts2 .="<td><center>&nbsp;(" .$row["ft_viewcount"]. ")</center></td>";
$latestposts2 .= "<td><center>".sed_build_user($row['ft_lastposterid'], $row['ft_lastpostername'])."</td>";
$latestposts2 .= "<td><center>&nbsp; ".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,
));

?>
Konuyla İlgili Diğer Başlıklar
Facebook New Design 2013
Facebook Tarzı bildirim eklentisi
Facebook veya Twitter Tarzı Sayfalama
How To: Update Facebook status using PHP Curl?
Facebook Style TextArea with Wall Posting Script using jQuery PH
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

 

Powered by Seditio © 2009-2012 All Rights Reserved