PDA

View Full Version : Highlighting new post in side menu


PtP
11-13-2004, 06:27 PM
Let me explain firstly, I have a menu on the side (pic below) that are columns, basicly hidden forums only accessable via that menu.

My problem basicly is because they are hidden so there is no way of people knowing there are new posts in there without going into that particular forum so I wish to have an icon that flashes or changes colour when there are new posts in that column (forum) or without an icon with no posts or with an icon if new posts exist, either way I dont mind just some way of highlighting that name if new posts exist.

Please any advice to steer me in the right direction would be helpfull.

Thank you.

memobug
11-14-2004, 01:54 AM
The code you want is in includes/functions_forumlist.php, which is a procedure that supports index.php (the procedure that prints forumhome)

Here is the header of the procedure that returns the flag for the lightbulb

// ###################### Start getforumlightbulb #######################
// returns 'on' or 'off' depending on last post info for a forum
function fetch_forum_lightbulb(&$forumid, &$lastpostinfo, &$foruminfo)

That is the right direction, at least.

Regards,

Matt