MyBB Community Forums

Full Version: Mark All Forums As Read goes to a blank page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When using the 'Mark All Forums As Read' option the users see a a blank page ... how can I fix this problem ?

Edit: not seen faviouz's response Smile
__________________________________________________
forum URL please...
you may have to append my_post_key = "{$mybb->post_code}" for the mark read links
What are the contents of your index_boardstats template?
(2011-07-23, 01:29 PM)faviouz Wrote: [ -> ]What are the contents of your index_boardstats template?

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$viewgroups}
{$forumstats}
<tr>
	<td class="tfoot" style="text-align: right">
		<span class="smalltext">
			{$logoutlink}
			<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
			<a href="showteam.php">{$lang->forumteam}</a> |
			<a href="stats.php">{$lang->forumstats}</a>
		</span>
	</td>
</tr>
</tbody>
</table>
<br />

url : http://malwaretips.com
Try replacing it with this:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$viewgroups}
{$forumstats}
<tr>
    <td class="tfoot" style="text-align: right">
        <span class="smalltext">
            {$logoutlink}
            <a href="misc.php?action=markread&my_post_key={$mybb->post_code}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a> |
            <a href="stats.php">{$lang->forumstats}</a>
        </span>
    </td>
</tr>
</tbody>
</table>
<br />
(2011-07-23, 01:34 PM)faviouz Wrote: [ -> ]Try replacing it with this:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$viewgroups}
{$forumstats}
<tr>
    <td class="tfoot" style="text-align: right">
        <span class="smalltext">
            {$logoutlink}
            <a href="misc.php?action=markread&my_post_key={$mybb->post_code}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a> |
            <a href="stats.php">{$lang->forumstats}</a>
        </span>
    </td>
</tr>
</tbody>
</table>
<br />

Same problem. Smile
1. Open the ./inc/init.php file in a text editor.

2. Find:

define("TIME_NOW", time());

3. Add afterwards:

define("NO_PLUGINS", 1);

Does the issue persist? If not, that means a plugin is causing this and you should deactivate them one by one until it works.
Ok.Now it's redirecting me back to the index...So I suppose that now it works?.... (Not big fan of this feature).
Can I leave it like that ? or should I find out what plugin is causing this problem and disable it ?
Obviously, no, you can't leave it like that. Otherwise none of your plugins will work.

Like I said, you should deactivate plugins one by one and find out which one is the culprit.
Ok.Thank you for your great help!! I'll report back once I know which plugin is responsible!