MyBB Community Forums

Full Version: Forum Icon Not Changing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Are you sure we're seeing the same problem??

If I click the icons on the index, it marks as read and stays unread, as it should, even when I reload the page. If I go into a forum and click 'Mark this forum read' it's marked as read and stays unread if I reload the page. The problem is when you click 'Mark All Forums Read' at the bottom, all forums get marked as unread instead of read. Are other people seeing something different here, or...??
Oh I see... Miss-read =/
I believe this is what you are looking for.

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

So, I guess there isn't a way to fix this then?
In ./inc/init.php, find:

define("TIME_NOW", time());

after, add:

define("NO_PLUGINS", 1);

Try it again, does it work OK now??
Nope. That did not work Sad
Can you see if it works on the default theme?? Doubt it's theme related but check anyway.
It's doing it to the default theme also.
Is it doing it on the default theme with the code AJS gave you?
Reupload a new copy of ./misc.php from a fresh download.
Pages: 1 2 3