Jump to content


Forum New Post Bolding

  • Please log in to reply
1 reply to this topic

#1 ntohky14

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 19 April 2006 - 09:01 PM

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?

#2 insrtsnhere13

  • Members
  • PipPipPip
  • Advanced Member
  • 64 posts

Posted 20 April 2006 - 12:16 AM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users