MyBB Community Forums

Full Version: Template coding question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I feel like a real raisin for making this thread because I feel like I'm trying to find something that's right under my nose. I need to find the code that is responsible for showing the small post notification images that say "Forum Contains New Posts", ".. No New Posts". (AKA "on.gif", "off.gif", and "offlocked.gif")

I already found the code that is used in the forum post notification legend (below the board statistics table), and that code is located in Index Page Templates > index > and they're about 3/4 down. Like I said, that is where the post notification legend's code is, NOT the actual post notification images when they're being used.

Any insight into where the code is contained? I'm assuming it's not even in the ACP Templates and that it's just in a .php file and is secluded code, but I could be wrong. It's just that everywhere I've looked (which is everything in the Templates through the ACP) I haven't been able to find it.

Any help would be appreciated,
Thank you in advance
Hey


in forumbit_depth2_forum and such you can find

<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" />

the function that creates $lightbulb can be found in ./inc/functions_forumlist.php it is called get_forum_lightbulb

regards