1 webadmin Mar 19, 2009 00:30
3 webadmin Mar 23, 2009 21:38
I've ended up with a type of kludge, since I didn't find out about a variable to use. Here's what I used:
if(isset($_SERVER['QUERY_STRING']) && ($_SERVER['QUERY_STRING'] != ''))
{
parse_str($_SERVER['QUERY_STRING'], $strings);
}
if ($strings['m']) {
$thedate=$strings['m'];
$theyear=substr($thedate, 0,4);
$themonth=substr($thedate, 4,2);
$themonth=$month[zeroise($themonth,2)];
}
<?php
if ($themonth !='') {
echo '<p class="index-title">Archives for '.$themonth.' '.$theyear.'</p>';
}
?>
If anyone can think of something better, please let me know. Otherwise, maybe this will help someone else.
4 sam2kb Mar 24, 2009 02:47
global $m, $month, $month_abbrev;
if( !empty($m) )
{ // Archives mode only
$m_num = substr($m, 4, 2);
$year = substr($m, 0, 4);
$cur_month = $month[zeroise($m_num, 2)]; // September
$cur_month_abbrev = $month_abbrev[zeroise($m_num, 2)]; // Sep
// Archives for September 2009
echo '<p class="index-title">Archives for '.$cur_month.' '.$year.'</p>';
}
Not tested
5 webadmin Mar 24, 2009 21:12
Great, thanks! Works great, and much less of a kludge.
P.S. I'm really looking for the equivalent in the older version(s) of B2evolution of single_month_title() -- I want to be able to have on the archive pages something like Press Releases from April 2008. I'm using stub pages with a custom skin if this helps. Thanks again.