Bumping a users post or comment?

So I am getting the hang of this php stuff. One thing I always wanted to know how to do is code how to bump a users news post or comment post to the top of the list. Is their a tutorial for this anywhere or do you know what im talking about? This is really popular on forums for gamers and trading websites via steam. I am not sure if it uses the update command for mysql and not really sure how to code it either. Of someone could show me an example maybe I can figure it out.

Thanks,
ZiG

Everyone does it a little different, but most of the time every post or comment is tagged with an “Update Date” in the database. Then people use a SQL Statement with an order by Update Date, to arrange it so it shows on the top of the forum.

A lot of forums are open source code, so you can just download the forum and look at the code to see how they flag it and how they sort it it with SQL showing it to the user.

True, I am use to phpbb I may take a look into their code see how they did it. Thanks for the info.

Sponsor our Newsletter | Privacy Policy | Terms of Service