|
»Forumlar »SE ? Plugins
»Eklenti değiştirme sorunu
https://seditio.com.tr/eski1/forums.php?m=posts&q=661 |
| Author: TheRaskol, Posted: 2010-05-19 05:31 GMT. |
|
Merhaba ben newlatestpost eklenlentisinde de?i?ilik yaparak newgarbageposts diye a?a??daki eklentiyi yapt?m fakat kurduktantan sonra markitup eklentisi ile ?ak??ma yapt? ve markitup eklentisi ?al??mad?. A?a??da d?zenleyip kurdu?um eklenti. Songarbagetopics.php Kod: <?PHP /* ==================== [BEGIN_SED] File=plugins/songarbagetopics/songarbagetopics.php Version=** Updated= Type=Plugin Author=*** Description=*** [END_SED] [BEGIN_SED_EXTPLUGIN] Code=songarbagetopics Part=main File=songarbagetopics Hooks=index.tags Tags=index.tpl:{PLUGIN_SONGARBAGE_POSTS} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if ( !defined('SED_CODE') ) { die("Hacking attempt."); } $plimit = "5"; // 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 =25 ORDER by t.ft_updated DESC LIMIT $plimit"); $songarbagetopics = "<table border='0' width='100%' cellspacing='0' cellpadding='1' align='center'>"; $songarbagetopics .= "<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&q=".$row['ft_id']."&baslik=".sed_filtetr(str_replacei($row['ft_title']))."&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> "; $songarbagetopics .= "<tr><td> "; $songarbagetopics .= $img." <a href=\"forums.php?m=posts&q=".$row['ft_id']."&baslik=".sed_filtetr(str_replacei($row['ft_title']))."\">".sed_cc(sed_cutstring(stripslashes($row['ft_title']),38))."</a></td>"; $songarbagetopics .="<td> (" .$row["ft_postcount"]. ") </td>"; $songarbagetopics .="<td> (" .$row["ft_viewcount"]. ")</td>"; $songarbagetopics .= "<td> <a href='users.php?m=details&id=".$row["ft_lastposterid"]."'>".$row["ft_lastpostername"]."</a></td>";$songarbagetopics .= "<td> ".date($cfg['formatmonthdayhourmin'], $row['ft_updated'] + $usr['timezone'] * 3600)."</td></tr>"; } } if($ii==0){ $songarbagetopics .= "<tr><td colspan=\"5\"><center>Son Forum Mesajlar?n? G?rebilmek ??in Giri? Yap?n?z..</center></td></tr>"; } $songarbagetopics .= "</table>"; $t-> assign(array( "PLUGIN_SONGARBAGE_POSTS" => $songarbagetopics, )); ?> songarbagetopics.setup.php Kod: <?PHP /* ==================== [BEGIN_SED] File=plugins/songarbagetopics/songarbagetopics.setup.php Version=* Updated=*** Type=Plugin Author=*** Description=*** [END_SED] [BEGIN_SED_EXTPLUGIN] Code=songarbagetopics Name=Son garbage topic Description= Version=100 Date=2006-mar-10 Author=*** Copyright= Notes= SQL= Auth_guests=R Lock_guests=W12345A Auth_members=R Lock_members=W12345A [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } ?> Bunun sebebi ve ??z?m? nedir sizce? Te?ekk?r ederim. |
| Author: Kaan, Posted: 2010-05-19 14:17 GMT. |
| Markitupla hi? baglant?s? yokki neden ?ak??s?n ald?g?n hatay? yazarsan daha iyi yard?mc? oluruz.. |
| Author: TheRaskol, Posted: 2010-05-19 15:40 GMT. |
| hata alm?yorum fakat bunu kurunca forumlarda markitup a??lm?yor sadece bo? bir mesaj yazma b?l?m? oluyor. |
| Author: Kaan, Posted: 2010-05-19 15:58 GMT. |
| Eklentide $sql ile ba?layan sat?rlar? $sqlxx olarak de?i?tir dene |
| Author: TheRaskol, Posted: 2010-05-19 16:06 GMT. |
| malesef yine markitup a??lm?yor |
| Author: Aragorn-pc, Posted: 2010-05-19 16:25 GMT. |
| Bu bizim bildi?imiz latestpost de?il mi ? g?r?nd??? kadar?yla ayn?s? gibi duruyor neden de?i?iklilik yapma gere?i duydun ki ? s.fs_id =25 <= bu bir kategori ?a??r?yor ise Kaan'?n hazirladi?i bir eklenti vardi forum kategorisinden konu ?a??r?yordu onun ile d?zenleme yaparak kullanabilirsin.. |
| Author: TheRaskol, Posted: 2010-05-19 16:28 GMT. |
| O eklentiyi d?zenleyerek sadece fs_id=25 olanlar?n g?r?nmesini istedim ama bunu kurunca forumda mesaj yazma yeri ??km?yor.markitup a??lm?yor yani. |
| Author: Aragorn-pc, Posted: 2010-05-19 16:40 GMT. |
| https://seditio.com.tr/eski1/page.php?id=98 bu eklenti i?inizi g?r?r. |
| Powered by Seditio | Print version |