MyBB Community Forums

Full Version: Forum Contains New Posts - Forum Contains No New Posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to use my own images for "Forum Contains New Posts" and "Forum Contains No New Posts". I see myBB is using a sprite sheet for this, but I'd rather just use my two png images which I already have uploaded to the forum. I figure the template is forumbit_depth2_forum, but how do I change the code to be able to use my png images instead of a sprite sheet?
In the forumbit_depth2_forum,

search (or similar code):

<td class="{$bgcolor}" align="center" valign="top" width="1"><span class="forum_status forum_{$lightbulb['folder']} ajax_mark_read" title="{$lightbulb['altonoff']}" id="mark_read_{$forum['fid']}"></span></td>

replace with:

<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>

Put in the images folder of the template where you want to apply the changes, the icon for the forum contains new posts renamed on.gif, and the icon for the forum contains no new posts, renamed off.gif

Also, include two other images in the images folder of the template:
  • offlock.gif: for the forum closed
  • offlink.gif: for the forum that redirects to an external link
Thanks! Will try it!