1 the_corona Jun 12, 2008 08:22
3 yabba Jun 12, 2008 08:41
Crack open your /index.php and meander down to the bottom where you'll find a section of code like this :
# Here you can set a limit before which posts will be ignored
# You can use a unix timestamp value or 'now' which will hide all posts in the past
$timestamp_min = '';
Set that to time() - #days * 24 * 60 * 60 ;)
¥
*edit*
Damn, guess I need to open files faster :p
4 the_corona Jun 12, 2008 09:08
Hi,
Thank you both for the prompt reply.
If I understand correctly, this will completely ignore all posts older than timestamp_min, even when searching, or browsing by category (we would like to retain this possibility, only when calling the page by default should nothing appear)? Trying to understand what I'm modifying also ;-)
5 yabba Jun 12, 2008 09:23
Ok, that'd be a smidge tougher to achieve. This may or may not work
if( empty( $_GET ) || ( sizeof( $_GET ) == 1 && isset( $_GET['blog'] ) ) )
{
$timestamp_min = nn; // change nn as pre previous posts
}
¥
6 the_corona Jun 12, 2008 16:53
Thnx for the tipp, we didn't get around to trying it yet, but I will make sure to report back if we suceeded or failed :-)
Welcome to the forums.
You can set $timestamp_min in blog's stub file and I think this is exactly what you need.
Try the following, I don't know if it actually works ;)