1

Topic: Selecting the First Post...

Shouldn't there be a column like "topics.first_post_id"? I am trying to create a page that will display the first post of every topic in a given forum, however PunBB seems to determine the first post by selecting the lowest posts.id number. This effectively works, but it isn't exactly an elegant solution in my book. It seems to me that it would just be much better if there  was simply a "topics.first_post_id" column, so that one could simply retrieve the first post and discard the rest.

Has anyone else had this problem? What solution if any have you used to get just the first post?

Re: Selecting the First Post...

look at the punbb new mod

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Selecting the First Post...

Or Rickard's News Generator

4

Re: Selecting the First Post...

Thanks guys. I actually like the code from the punbb news mod a bit better because it uses only a single query. I appreciate the help from both of you.

Re: Selecting the First Post...

Smartys, link?

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Selecting the First Post...

http://punbb.org/download/plugins/AP_News_Generator.zip

~James
FluxBB - Less is more