MyBB Community Forums

Full Version: lightbulb (new/old) as text link?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Mhmhm i hope someone can help me. Is it possible to change the lightbulb (.gif) to a simple coloured text link?
red post count = unread posts
blue post count = read posts
[Image: 15DiS.jpeg]

Thanks

I have found what i needed.

(2013-04-07, 01:39 AM)envira Wrote: [ -> ]May be this could help you :
Actual code from MyBB Go Mobile which could be applied for what you asked for :

Before editing make a backup of your template :

add this code at bottom of your global.css
a.forum_on,
a.forum_minion {
	color: #292929;
}

a.forum_off,
a.forum_minioff {
	color: #606060;
	font-weight: normal;
}

a.forum_offlock,
a.forum_miniofflock {
	color: #a42d16;
	font-weight: normal;
}

td.forum_on {
	background: #B4ECA6;
	border-bottom: 1px solid #a9cbde;
}

Now HTML needs to be edited :
For that you navigate to your theme templates > forumbit templates > forumbit_depth2forum template.

find this code :
<tr>
<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>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>


replace with this code:
<td class="{$bgcolor} forum_{$lightbulb['folder']}" valign="middle" onclick="location.href='{$forum_url}';">
<strong><a href="{$forum_url}" class="forum_{$lightbulb['folder']}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>

Hope this helps,
regards,

http://community.mybb.com/thread-137294.html