| Author | Message |
Redbul
39 posts |
#27364 2008-05-20 10:17 GMT |
|
arkadaşlar arşiv eklentisini footer.tpl de gösterdim yanlız tarih olarak görünüyor ben bunu 1-2-3 diye nasıl gösterebilirim kod Code: <?PHP
/* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/archives/archives.footer.php Version=121 Updated=2008-apr-08 Type=Plugin Author=Neocrome Description= [END_SED] [BEGIN_SED_EXTPLUGIN] Code=archives Part=footer File=archives.footer Hooks=footer.tags Tags=footer.tpl:{PLUGIN_ARCHIVES} Minlevel=0 Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } /* ============ MASK FOR THE HTML OUTPUT =========== */ $cfg['plu_mask_archives'] = " %1\$s </li>"; // %1\$s = Link to month/year // %2\$s = Pages per year function sed_get_archives($mask) { global $L, $db_pages, $usr, $cfg, $plu_empty; $current_year = sed_mktime(0, 0, 0, 1, 1, date(Y)); $sql = sed_sql_query("SELECT page_date FROM $db_pages WHERE page_state=0 AND page_cat NOT LIKE 'system' AND page_date>'$current_year' ORDER BY page_date DESC"); $arc = array(); while ($row = mysql_fetch_array($sql)) { $now = $row['page_date'] + $usr['timezone'] * 3600; $now = date('F|m|Y', $now); $arc[] = $now; } $arc = array_count_values($arc); while (list($key, $val) = each ($arc)) { $arc_string = explode("|", $key); $res .= sprintf($mask, "<a href=\"plug.php?e=archives&year=".$arc_string[2]."&month=".$arc_string[1]."\">".ereg_replace($arc_string[0], $L[$arc_string[0]], $arc_string[0])." ".$arc_string[2]."</a>", $val ); } $res = (empty($res)) ? $plu_empty : $res; return($res); } $archives = sed_get_archives($cfg['plu_mask_archives']); sed_cache_store('archives', $archives, $cfg['plugin']['archives']['arc_cache']); $t->assign(array( "PLUGIN_ARCHIVES" => $archives )); ?> |
|
Kaan
2,081 posts |
#27367 2008-05-20 10:37 GMT |
|
bunu gösteremessin malesef yeniden yazılması gerekiyor eklentinin.
|
|
Redbul
39 posts |
#27368 2008-05-20 10:38 GMT |
|
saol |
|
> 1 <
Benzer konular (Similar topics) #BETA
| Konular | Mesajlar | Son Yazar | Güncelleme |
| arşiv eklentisi | 3 | core1 | 170 Gün |
| arşiv eklentisi | 4 | emremix | 158 Gün |
| Arşiv eklentisi yardım | 8 | samba | 197 Gün |
| Ücretsiz Seditio Arşiv Eklentisi [Kendi Yaptığım] | 13 | Aragorn-pc | 60 Gün |
| Yöneticiler Eklentisi Hakkında | 5 | sixfeetunder | 444 Gün |




