Jump to content

Archived

This topic is now archived and is closed to further replies.

ntohky14

Forum New Post Bolding

Recommended Posts

How would you make it so when there is a new topic it is bold for the users then once they view it, it isn't bold anymore?

Share this post


Link to post
Share on other sites
you need a "last active" value for you user in the database along with their username password etc..

then you need to have the topic or post have a date and time associated with it.

So you basically do a check

if (time of post > last time user was active) {
bold your topic }else{
dont bold your topic}

that should be the basic theory behind it, also, you need to make sure that whenever the user switches pages, that it updates their database information as being active again.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.