vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Any way to access "Status Icons" from the Navbar template? (https://vborg.vbsupport.ru/showthread.php?t=248074)

BirdOPrey5 08-06-2010 12:17 AM

Any way to access "Status Icons" from the Navbar template?
 
In the template forumhome_forumbit_level1_nopost this is the code that loads the status icon for each forum:
Code:

<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.


All times are GMT. The time now is 12:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01135 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete