MyBB Community Forums

Full Version: Clear Forum Contains New Posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my theme:

http://www.awesomestyles.com/mybb-themes/view/redysh

Whenever I want to clear a forum with a new post, nothing happens until I refresh the page. So only if I refresh the icon goes back to normal.

What could be the problem?
Could we get a link to your forum please?
May i know what is "clear a forum with a new post"?
[Image: qGsOi.png]
I believe he is talking about the JavaScript that allows you to mark a specific forum as read by clicking the on and off buttons.

Can you post your forum's URL please?
I guess it's Javascript.
Hmm, this happens here too. Does it work if you switch to the default theme?
Yeah, then it works normal. Must be a theme issue then?
1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Forum Bit Templates.

2. Post the contents of the forumbit_depth2_cat, forumbit_depth2_forum and forumbit_depth3_statusicon.
forumbit_depth2_cat

<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']}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

forumbit_depth2_forum

<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" 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>
</td>
<td class="{$bgcolor}" width="100" valign="center" align="center" style="white-space: nowrap">Threads: {$threads}{$unapproved['unapproved_threads']}<br />Posts:{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" width="200" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

forumbit_depth3_statusicon

<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="subforumicon ajax_mark_read" id="mark_read_{$forum['fid']}" />

Did you see this bro?