(2013-04-06, 09:33 PM)xomp Wrote: Can you make it so the links to forums/threads that are unread are stylized instead of using the on/off images?
Example would be a new post in the News section would turn the link to that forum into bold font weight. Read forums/threads will be stylized to non-bold.
Thanks
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,