if ( !defined('SED_CODE') ) { die("Hacking attempt."); }
$plimit = "25"; // 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");
Ben NEWPAGESBYPATH eklentisini kullan?yorum, bu eklenti ile panelimden kategoriler olusturdum video, oyun, vs...
Olu?turmu? oldu?um bu kategorileri ana sayfamda index.tpl dosyas?nda g?r?nt?l?yorum, mesela kulland???m kategori kodu ve g?r?nt?lenme ?u ?ekilde
index.tpl
{PLUGIN_NEWPAGESBYPATH.oyunlar}
G?r?nt?lenme ise ana sayfada ?u ?ekilde oluyor ...
? 2011-03-18 / Oyun // -? Pro Evulation Soccer 2011 ( PES 2011 )
? 2011-03-03 / Oyun // -? Samurai Shodown (ATAR?) - Yap?m A?amas?nda
? 2011-03-01 / Oyun // -? Deneme oyun 3
? 2011-02-17 / Oyun // -? Deneme oyun 4
? 2011-02-17 / Oyun // -? Deneme oyun 5
Kulland???m eklentiyi san?r?m kaan bey yazm?? ve kodlar? ise bunlar
newpagesbypath.php
Kod:
<?PHP
/* ====================
Land Down Under - Website engine
Copyright Kaan
http://www.ntka.org
/* ============ MASKS FOR THE HTML OUTPUTS =========== */
$cfg['plu_mask_newpagesbypath'] = "? %3\$s"." ".$cfg['separator']." "."%1\$s // -?"." %2\$s <br />";
// %1\$s = Link to the category
// %2\$s = Link to the page
// %3\$s = Date
$plu_empty = $L['None']."<br />";
function sed_get_newpagesbypath($c, $limit, $mask)
{
global $L, $db_pages, $usr, $cfg, $sed_cat, $sed_catacc, $plu_empty;
@reset($sed_cat);
while (list($i,$x) = each($sed_cat) )
{
if (substr($x['path'],0,$mtchlen)==$mtch)
{
$catsub[] = $i;
}
}
$sql = sed_sql_query("SELECT page_id,page_cat,page_title,page_date,page_alias FROM $db_pages
WHERE page_state=0
AND page_cat NOT LIKE 'system'
AND page_cat IN ('".implode("','", $catsub)."')
ORDER by page_date DESC LIMIT $limit");
Ben bu NEWPAGESBYPATH pluginindeki olusturdu?um kategorileri ana sayfada g?sterirken, Son forum konular?ndaki gibi, ?ok ??k bi ?ekilde tablo i?erisine almak istiyorum
Yani ayn? son forum konular?nda oldu?u gibi
Konu - Mesajlar - Okunma - G?nderen - Tarih, ?eklinde yap?p tablo i?erisinde g?r?nmesini sa?lamak istiyorum