PDA

View Full Version : Any way to access "Status Icons" from the Navbar template?


BirdOPrey5
08-06-2010, 12:17 AM
In the template forumhome_forumbit_level1_nopost this is the code that loads the status icon for each forum:
<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" />

Now I'm trying to figure out how to call these from the navbar template. I was hoping I'd see some way of passing it a forumid and getting the right icon back- basically I need it to return the 'right' icon, such as the forum has new posts and is open, has no new posts and is open, has new posts but is locked (closed), or has no new posts and is locked.

Each of my forums has a custom status icon that is specified by the [imageprefix]...

But off hand I'm not seeing anyway of getting this data into the navbar... any ideas?

Basically I currently have a secondary navbar with an icon for every forum... right now it's hard coded to use the 'forum open, no new posts' icon for each but I really want to display the correct status icon for each so users can see immediately if there are new posts or not without actually visiting the forum.

Lynne
08-06-2010, 02:09 AM
There's a bunch of code that goes into figuring out what statusicon is shown. Take a look in the functions_forumlist.php file and you should find it. You would need to grab some of this code in order to display the statusicon.

BirdOPrey5
08-06-2010, 11:27 AM
Thanks, I'll see what I can make of it.