Previous Thread
Next Thread
Print Thread
Hop To
#200300 10/31/2007 7:40 AM
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
I've created a forum for events.
It's not publicly viewable.

I've created a Post Island (New Topics Only) to display just the headline so people can then choose the event they want to view.

As the event post gets old the event vanishes (I think this is the reason).

The problem is, some events may be six months away - how can I keep them in the post island?

Joined: Aug 2006
Posts: 1,360
Likes: 2
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,360
Likes: 2
I just checked cache_builders/post_island.php

I didn't do a deep dive, but there is this peace of code:

PHP Code
$one_month = $html->get_date() - (86400 *30); 

If you would replace that with:

PHP Code
$one_month = $html->get_date() - (86400 *1000); 

That would make it a thousand days instead of 30.

As said, untested.


[Linked Image from siemons.org]
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Works a treat - thanks mate laugh


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 233 guests, and 188 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)