df0b2 Friday 12th February 2016, 23:23:51
else if(isGET('archive') && strlen($_GET['archive']) === 4)
{
$archivedPosts = array();
$posts = listEntry('post');
sort($posts);
foreach($posts as $post)
{
if($_GET['archive'] === substr($post, 0, 4))
{
$month = substr($post, 5, 2);
$archivedPosts[$month][] = $post;
}
}
if(!$archivedPosts)
{
exit;
}
$out['subtitle'] = $_GET['archive'];
foreach($archivedPosts as $monthPosts)
{
$out['content'] .= '<b>' .toDate($monthPosts[0], 'M'). '</b>
<ul>';
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:18
A 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.Fred#f8768 Sunday 14th February 2016, 23:39:46
Try with a [.htaccess and rewrite rules](https://httpd.apache.org/docs/trunk/en/rewrite/intro.html).Suggested Topics | View / Reply | Forum |
---|---|---|
Fred#f8768 started FlatBoard v0.8.3 | 1.3K / 2 | Announcements |
billy@d587756e started Everybody tests | 638 / 0 | Open Bar |
Kat#b0d39 started solved Time stamp translation to French | 1.4K / 5 | General Questions |
333b98 started Problem with topics updating on topic view (most recent populates first) | 939 / 1 | Bug reports |