MyBB Community Forums

Full Version: Forum Showing Who's Online 2 Times
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My Forum Is Showing Who's Online 2 Times:

[Image: screenhunter_01%20oct.%2011%2015.4007.jpg]

Website Url: http://www.dotmrt.co.cc/forum/

Please Tell How To Fix This (:
I think it is a templates issue.
the code of who's online may be duplicated.

So,
check ACP -> Templates & Style -> Templates -> ** Template Name** -> Who's Online Templates -> Online **

and replace its content with this fresh one
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->users_online}</title>
{$headerinclude}
{$refresh}
</head>
<body>
	{$header}
	{$multipage}
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
		<tr>
			<td class="thead" colspan="3"><strong>{$lang->users_online}</strong></td>
		</tr>
		<tr>
			<td class="tcat" align="center"><a href="online.php?sortby=username"><span class="smalltext"><strong>{$lang->on_username}</strong></span></a></td>
			<td class="tcat" align="center"><a href="online.php?sortby=time"><span class="smalltext"><strong>{$lang->time}</strong></span></a></td>
			<td class="tcat" width="50%"><a href="online.php?sortby=location"><span class="smalltext"><strong>{$lang->location}</strong></span></a></td>
		</tr>
		{$online_rows}
		<tr>
			<td class="tfoot" colspan="3" align="right"><span class="smalltext"><strong><a href="online.php?action=today">{$lang->online_today}</a> | <a href="online.php">{$lang->refresh_page}</a></strong></span></td>
		</tr>
	</table>
	<br />
	{$multipage}
	{$footer}
</body>
</html>
That's the template for the full ./online.php list.

Make sure your index_boardstats template only has one occurrence of {$whosonline}
Thats Odd...
When i remove: {$whosonline} from index_boardstats, it fixes the problem Confused
but {$whosonline} is written 1 time only Confused

Here is my template:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"><thead><tr><td class="thead" colspan="2"><div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div><div><strong>Board Stats</strong></div></td></tr></thead><tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">{$whosonline}{$birthdays}{$forumstats}<tr>	<td class="tcat" colspan="2" style="text-align: right">		<span class="smalltext">			{$logoutlink}			<a href="misc.php?action=markread">{$lang->markread}</a> |			<a href="showteam.php">{$lang->forumteam}</a> |			<a href="stats.php">{$lang->forumstats}</a>		</span>	</td></tr></tbody></table><br />
Can you paste your index_whosonline template here?? Maybe that's doubled up instead.
Here it is (index_whosonline) :
<tr><td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td></tr><tr><td class="trow2" width="7%"><img src="images/Transparent/whosonline.png" alt=""></img></td><td class="trow1" width="93%"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td></tr>

Though today when i visited my forum the whoz online think was not showing up... i added the {$whosonline} back to index_boardstats template! And now its working properly again (SHOWING WHOZ ONLINE 1 TIME ONLY)
Forget this post, sorry!
Thats just cruel!
If you don't have anything useful to post then please do not disturb other peoples support threads by posting your useless remarks!
(2009-10-12, 03:41 PM)DotMRT Wrote: [ -> ]Thats just cruel!
If you don't have anything useful to post then please do not disturb other peoples support threads by posting your useless remarks!

Chill out he probably posted in the wrong thread.
If thats true then i am very sorry Sad
Crap Its showing it again Sad