> 1 <
Etiketler: newpagesbypath sorunu çözemiyorum
| Author | Message |
remo
84 posts |
#27972 2008-05-25 17:41 GMT |
|
merhaba arkadaslar ben newpagesbypath kurdum index.tpl çalışıyor ama header.tpl calışmıyor bunun sebebi ne olabilir ? burda neden calışmıyor anlamıs değilim Code: <?PHP
/* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/newpagesbypath/newpagesbypath.php Version=100 Updated=2006-jan-24 Type=Plugin Author=Neocrome Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=newpagesbypath Part=main File=newpagesbypath Hooks=index.tags Tags=index.tpl:{PLUGIN_NEWPAGESBYPATH.categorycodehere} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } /* ============ MASKS FOR THE HTML OUTPUTS =========== */ $cfg['plu_mask_newpagesbypath'] = "<img src=\"skins/$skin/img/system/arrow-follow.gif\" alt=\"\" /> %2\$s <br>"; // %2\$s = Link to the page $plu_empty = $L['None']."<br />"; function sed_get_newpagesbypath($c, $limit, $mask) { global $L, $db_pages, $usr, $cfg, $sed_cat, $sed_catacc, $plu_empty; $mtch = $sed_cat[$c]['path']."."; $mtchlen = strlen($mtch); $catsub = array(); $catsub[] = $c; @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"); while ($row = sed_sql_fetcharray($sql)) { $row['page_urlpar'] = (empty($row['page_alias'])) ? "id=".$row['page_id'] : "al=".$row['page_alias']; $res .= (sed_auth('page', $row['page_cat'], 'R')) ? sprintf($mask, "<a href=\"list.php?c=".$row['page_cat']."\">".$sed_cat[$row['page_cat']]['title']."</a>", "<a href=\"page.php?".$row['page_urlpar']."\">".sed_cc(sed_cutstring(stripslashes($row['page_title']),36))."</a>", date($cfg['formatyearmonthday'], $row['page_date'] + $usr['timezone'] * 3600) ) : ''; } $res = (empty($res)) ? $plu_empty : $res; return($res); } if ($cfg['plugin']['newpagesbypath']['maxpages']>0 && !empty($cfg['plugin']['newpagesbypath']['categories'])) { $cats = explode(',', $cfg['plugin']['newpagesbypath']['categories']); foreach($cats as $k => $i) { $i = trim($i); $newpagesbypath[$i] = sed_get_newpagesbypath( $i, $cfg['plugin']['newpagesbypath']['maxpages'], $cfg['plu_mask_newpagesbypath']); } } $t-> assign(array( "PLUGIN_NEWPAGESBYPATH" => $newpagesbypath, "PLUGIN_NEWPAGESBYPATH_MAXLINES" => $cfg['plugin']['newpagesbypath']['maxpages'] )); ?> |
|
|
Seditio Destek Yeriii
|
|
Kaan
2,082 posts |
#27974 2008-05-25 18:00 GMT |
|
çalışmaz header de kodlar çakışıyor.
|
|
remo
84 posts |
#27976 2008-05-25 18:04 GMT |
|
peki nasıl yapacam cakısmaması için ? |
|
|
Seditio Destek Yeriii
|
|
emremix
483 posts |
#27981 2008-05-25 18:16 GMT |
|
Code: Hooks=index.tags Tags=index.tpl:{PLUGIN_NEWPAGESBYPATH.categorycodehere} Bu kısmı değiştir böle olucak. Code: Hooks=header.tags
Tags=header.tpl:{PLUGIN_NEWPAGESBYPATH.categorycodehere} |
|
|
Sudo apt-get Alcohol
Forever Ubuntu :) |
|
remo
84 posts |
#27982 2008-05-25 18:22 GMT |
|
peki bu iki taraftada calısacak mı?
iki tarafta calısması için ne yapmalıyım.. şimdiden teseüükler. |
|
|
Seditio Destek Yeriii
|
|
Xiao
868 posts |
#27983 2008-05-25 18:23 GMT |
|
hem index hem header da çalıştırmak istiyorsan newpagesbypath eklentisini kopyala.Kopyaladığın dosyanın adını newpagesbypath.header.php olarak değiştir ve emremix in gösterdiği değişikliği bu dosyada uygula.
|
|
|
Haziran 2008 Seditio Site Yar??mas? >> http://www.seditione.com
|
> 1 <
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| NEWPAGESBYPATH sorunu | 14 | Dvdbil | 526 Gün |
| newpagesbypath ta tarih sorunu | 4 | Dvdbil | 330 Gün |
| newpagesbypath sorunu gibi bişi | 4 | core1 | 224 Gün |
| newpagesbypath eklentisinde gösterim sorunu | 2 | Aolkantin.com | 100 Gün |
| newpagesbypath ? | 4 | U?ur | 186 Gün |




