Hi Everyone,

I have built my own forums and currently they are displayed in the order of newest posted (id DESC). What I want to do is keep this order however, if there was a topic which was created months ago that is not on the first page for example, I want that topic to become the first topic to be displayed when someone has replied to it like most forum boards such as IPB and vBulletin.

Thank you.

It seems that the easy way would be to have a "date of last activity" and use that to sort them.

Thanks, dude, really appreciate it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.