> 1 <
Etiketler: newpagesbypath eklentisinde kategorileri gizlemek
| Author | Message |
BlackqaN
79 posts |
#22263 2008-04-06 10:23 GMT |
Bunları anasayfada nasıl gizlerim.? |
|
Maddium Coder
113 posts |
#22267 2008-04-06 10:42 GMT |
|
newpagesbypath.php Eskisini BunLa değiştir Sorunun Düzelecektir.
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'] = "%1\$s"." ".$cfg['separator']." "."%2\$s"." (%3\$s)<br />"; // %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; $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'] )); ?> |
|
|
Madserver İnternet Hizmetleri
250 mb Alan 5 GB Trafik Güvenlik Hız Kalite Sınırsız özellikler 40 YTL [email]Admin@netCrew.uS[/email] |
|
BlackqaN
79 posts |
#22298 2008-04-06 18:15 GMT |
|
İşe yaramadı.Ayrıca hata verdi. |
|
The_PcDelisi
239 posts |
#22300 2008-04-06 18:49 GMT |
|
Bunu dene
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'] = "".$cfg['sepa1rator']." "."%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; $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'] )); ?> |
|
|
TeknoPaylasim.NET Biraz özenti oldu ama idare edin :)
5 Gün Deneme Hosting Veriyoruz Memnun kalırsanız Alıyorsunuz( Linux Windows ) Morelim Bozuk :( Pr 3 den/1e Düştü Lanet olsun bu içimdeki insan sevgisi |
|
Dvdbil
2,237 posts |
#22383 2008-04-07 05:21 GMT |
|
Ayrıca, daha önce bir kaç kere cevaplanmıştı.
Benzer konularada bakabilirsin. |
|
|
Sitelerinize profesyonel anlamda hizmet verilir;
- Performans optimizasyonu, - Üst düzey güvenlik yamaları, - İsteğe bağlı eklentiler, - Her çeşit bot (program, video, resim, arsiv, haber), - Profesyonel görsel skin. Tüm tasarım, kodlamalar ve optimizasyon Neocrome referansı ile tarafımca hazırlanmakta. *************************İSTATİSTİKLER************************* Müşterim olan danışmanlığını yaptığım toplam kişi sayısı: 23 Sadece Eklenti hazırladığım kişi sayısı: 21 Uygulama yaptığım toplam site sayısı: 38 ------------------------------------------------- Müşterinin isteği doğrultusunda hazırladığım; - eklenti sayısı: 44 - skin sayısı: 8 - bot sayısı: 15 - özel güvenlik yamaları: 21 - Sql performans optimizasyonu: 13 (yüksek hitli siteler için) - Portal genel cache ve materyal optimizasyonu: 15 *************************************************************** |
> 1 <
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| NEWPAGESBYPATH eklentisinde sorun | 3 | mustanq | 292 Gün |
| newpagesbypath eklentisinde gösterim sorunu | 2 | Aolkantin.com | 98 Gün |
| newpagesbypath eklentisinde açılan konuları..... | 3 | hayalet | 20 Saat 38 Dakika |
| newpagesbypath eklentisinde gösterdiğim dosya ve döküman sayısı | 2 | serhat36 | 64 Gün |
| List.php Kategorileri ayırma | 4 | MUST! | 28 Gün |





