Total Users Online: 0 üye, 254 guest | Tarih/Saat: 2026-08-26 22:17
 
newlatestpost renklendirme
2010-06-02 20:45 GMT  oklu Alnt
TheRaskol

User is: Online status   Gender_M
Posts: 438
Ülke: Çanakkale - 17
Meslek: Palyaço
Age: 38

Merhaba;

Newlatest post eklentisinde duyuru forumuna a??lan topiclerin bu eklentideki linklern farkl? renkte olmas?n? nas?l yapabilirim acaba?

Duyuru forum fs_id=1

Kod:
<?PHP

/* ====================
[BEGIN_SED]
File=plugins/newlatestposts/newlatestposts.php
Version=**
Updated=
Type=Plugin
Author=***
Description=***
[END_SED]

[BEGIN_SED_EXTPLUGIN]
Code=newlatestposts
Part=main
File=newlatestposts
Hooks=index.tags
Tags=index.tpl:{PLUGIN_NEWLATEST_POSTS}
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 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 AND s.fs_id !=30 AND s.fs_id !=25 ORDER by t.ft_updated DESC LIMIT $plimit");

$newlatestposts = "<table border='0' width='100%' cellspacing='0' cellpadding='1' align='center'>";
$newlatestposts .= "<tr><td><strong>Konu</strong></td><td><strong>Mesajlar</strong></td><td><strong>Okunma</strong></td><td><strong>Son G?nderen</strong></td><td><strong>Tarih</strong></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&amp;q=".$row['ft_id']."&amp;baslik=".sed_filtetr(str_replacei($row['ft_title']))."&amp;n=unread#unread\"><img src=\"skins/$skin/img/system/arrow-unread.gif\" alt=\"\" /></a>" : "<a href=\"forums.php?m=posts&amp;q=".$row['ft_id']."\"><img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /></a> ";

$newlatestposts .= "<tr><td> &nbsp;";
$newlatestposts .= $img." <a href=\"forums.php?m=posts&amp;q=".$row['ft_id']."&amp;baslik=".sed_filtetr(str_replacei($row['ft_title']))."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</a></td>";

$newlatestposts .="<td>&nbsp;(" .$row["ft_postcount"]. ") </td>";
$newlatestposts .="<td>&nbsp;(" .$row["ft_viewcount"]. ")</td>";
$newlatestposts .= "<td>".sed_build_user($row['ft_lastposterid'], $row['ft_lastpostername'])."</td>"; 
$newlatestposts .= "<td>&nbsp; ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>";

}
}

if($ii==0){
$newlatestposts .= "<tr><td colspan=\"5\"><center>Son Forum Mesajlar?n? G?rebilmek ??in Giri? Yap?n?z..</center></td></tr>";
}

$newlatestposts .= "</table>";

$t-> assign(array(
"PLUGIN_NEWLATEST_POSTS" => $newlatestposts,
));

?>
Konuyla İlgili Diğer Başlıklar
Son Forum Konularında Üye Renklendirme.
Seditio Kod Renklendirme

 

newlatestpost renklendirme
2010-06-02 22:10 GMT  oklu Alnt
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 43

Payla?t?g?m renkli sonforum konular?na bakarak yapabilirsin..
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

 

newlatestpost renklendirme
2010-06-03 00:33 GMT  oklu Alnt
TheRaskol

User is: Online status   Gender_M
Posts: 438
Ülke: Çanakkale - 17
Meslek: Palyaço
Age: 38

buray? d?zenliyoruz san?r?m ama burada fs_id=1 ve renk konrol? nas?l yapaca??z

Kod:
$newlatestposts .= $img." <a href=\"forums.php?m=posts&amp;q=".$row['ft_id']."&amp;baslik=".sed_filtetr(str_replacei($row['ft_title']))."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</a></td>";

 

newlatestpost renklendirme
2010-06-03 02:24 GMT  oklu Alnt
Kaan

User is: Online status   Gender_M
Posts: 2772
Ülke: İstanbul - 34
Meslek: Serbest Meslek
Age: 43

Sitemizde bulunan 2 eklentiyi indir istedi?ini kolayl?kla yapabilirsin..

Forumcat_id eklentisi ve renkli son forum konular? bunlar sayesinde istedi?inden fazlas?n? yapabilirsin..
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