Firefox PHP

YALTPH

Posted by Martin West 
YALTPH
February 17, 2002 06:25PM
Yet Another Latest Ten Posts Hack

This is clone of a couple of hacks. It will list the latest 5 posts for all forums contained in folders at the root level. It is designed to run as a complete web page. I have linked mine into the index page in the navigation bar ...
<td <?php echo bgcolor($nav_color); ?> valign="TOP" nowrap><?php echo $TopNav; ?>
<!-- yaltph -->
<a href="recent_posts.php">recent</a>
</td>

I plan to add more intelligence, like not showing the users posts, and posts already viewed.
Attachments:
open | download - recent_posts.php (8.7 KB)
Re: YALTPH
February 20, 2002 08:42AM

The script assumes a structure of top level folders under which are forums. If there are no folders the script will flip to the first folder it finds. Will fix later today.
Re: YALTPH
February 21, 2002 04:20PM
No handles folderless structure. Thanks to Jesper for testing.
Attachments:
open | download - recent_posts.php (9.4 KB)
Fix for problem if no appends in folder/forum combination.
Attachments:
open | download - recent_posts.php (9.6 KB)
Re: YALTPH
May 02, 2002 09:07AM
does it work with 3.3.2 ? or only with 3.2.11 ?
thanks
marco
Sorry, you do not have permission to post/reply in this forum.