Firefox PHP

Latest X Posts in a templated Phorum-Page

Posted by Thomas Seifert 
All files from this thread

File Name File Size   Posted by Date  
newest10.php 3.7 KB open | download Steve Healy 08/03/2004 Read message
newest10.zip 3.1 KB open | download Thomas Seifert 08/29/2004 Read message
newest.zip 3.7 KB open | download Krang 03/11/2005 Read message
newest10.tpl 3.8 KB open | download rheo 04/06/2005 Read message
newest10.tpl 3.8 KB open | download rheo 04/25/2005 Read message
newest11.zip 2.9 KB open | download irob 05/13/2005 Read message
Latest X Posts in a templated Phorum-Page
April 08, 2004 10:13PM
Yeah yeah I know, there's latest 5 posts script but its just a snippet to be used somewhere on your page I guess.
I needed a page which I can use in the forum itself and using the templates the same way.

Have fun.

(new version in later posts, fixes a small bug)


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting




Edited 2 time(s). Last edit at 08/23/2004 11:53PM by ts77.
Re: Latest X Posts in a templated Phorum-Page
April 30, 2004 04:17AM

this seems to always give me a blank list
Re: Latest X Posts in a templated Phorum-Page
April 30, 2004 08:41AM
did you add the forum-id to the call too?
works fine here without a hitch.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Latest X Posts in a templated Phorum-Page
April 30, 2004 09:32PM
ts77 Wrote:
-------------------------------------------------------
> did you add the forum-id to the call too?
> works fine here without a hitch.


no.. i didn't.. what does it mean to add the forum-id ?

does this only work with 1 forum as opposed to all of them?




Re: Latest X Posts in a templated Phorum-Page
April 30, 2004 09:34PM
yes, only one forum, its meant to be called from a forum like in p3 ... newest10.php?1
... the 1 is the forum-id ... so like the forum-id in list.php or read.php.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Latest X Posts in a templated Phorum-Page
April 30, 2004 09:57PM

so in what way does this differ from list.php exactly? it seems pretty similar.

I guess it would be pretty easy to convert this so that it tells you all the new post across all your forums?

how hard would it be to take it the step further where it tells you all the latest posts in each forum except the ones you aren't allowed to read?

Re: Latest X Posts in a templated Phorum-Page
April 30, 2004 10:03PM
I just shows the latest posts, no threads or ordering by modifystamp or stuff. just the latest posts in descending order.

have fun while improving it.
I just needed that single-forum part ... others can do more ;).
might be simple but you also have to show from which forums they are and such.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Latest X Posts in a templated Phorum-Page
April 30, 2004 10:34PM

yes exactly.. so how would best to do that and make sure people aren't seeing posts they aren't allowed to?

ie. see 25 posts they are allowed to see as opposed to 25 posts including some they aren't allowed or even 25 posts minus the ones they aren't allowed to.
Re: Latest X Posts in a templated Phorum-Page
June 29, 2004 02:48PM
Add it to my board and works fine, except it returns all BUT the most recent post. That is it returns the 2-11th most recent post. Any suggestions?

Thanks.
Re: Latest X Posts in a templated Phorum-Page
June 29, 2004 08:01PM
Thanks for the report. Fixed in the attached version.

(newer version in later post)


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting




Edited 1 time(s). Last edit at 08/23/2004 11:53PM by ts77.
Sorry, only registered users may post in this forum.

Click here to login