df0b2 Friday 12th February 2016, 23:23:51
else if(isGET('archive') && strlen($_GET['archive']) === 4)
$archivedPosts = array();
$posts = listEntry('post');
foreach($posts as $post)
if($_GET['archive'] === substr($post, 0, 4))
$month = substr($post, 5, 2);
$archivedPosts[$month] = $post;
$out['subtitle'] = $_GET['archive'];
foreach($archivedPosts as $monthPosts)
$out['content'] .= '<b>' .toDate($monthPosts, 'M'). '</b>
foreach($monthPosts as $post)
$postEntry = readEntry('post', $post);
$out['content'] .= '<li>' .toDate($post, 'jS'). ' - ' .managePost($post). '<a href="view.php/post/' .$post. '">' .$postEntry['title']. '</a></li>';
$out['content'] .= '</ul>';
Fred#f8768 Sunday 14th February 2016, 10:40:18A plugin will arrive very soon to meet your needs, you can [try it here](view.php/plugin/archives) and tell me if it suits you.
89a5a Sunday 14th February 2016, 21:53:21Fred#f8768 looks good, can you make all years on the same page?
Fred#f8768 Sunday 14th February 2016, 22:14:1589a5a Just display a full year it takes a lot of server resources, then with all the years ...
1a9a7 Sunday 14th February 2016, 23:26:51Fred#f8768 well it looks good, great job.
Fred#f8768 Sunday 14th February 2016, 23:39:461a9a7 Try with a [.htaccess and rewrite rules](https://httpd.apache.org/docs/trunk/en/rewrite/intro.html).
|Suggested Topics||View / Reply||Forum|
|c1e6b started Flatboard no running in windows||185 / 6||General Questions|
|http://cmstips.com/ started dns errror||102 / 1||General Questions|
|Fan#17562 started solved < and > signs in code||106 / 3||General Questions|
|0d488 started Fix timedates||94 / 1||Feature Requests|