MyBB Community Forums

Full Version: Who's Online issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

I have a problem with the who's online page.

Have a look:

[Image: problemw.png]

Looks like it just copied and pasted that part from the language file...lol

Any idea what's going on?

Thanks!
That row isn't default so you must have a plugin for it, make sure all the files for it are uploaded.
Hmm, I have the Online 24 by labrocca but it's disabled. Nothing else..Hmmm...All files are up anyway. Any other idea where can that be coming from?
Not really, it's something non default so I can't say for sure what it is. Check the online template and see if there's any variables near the bottom that are loading it.
OK, I went to the template and found out that the line below is what's causing trouble. I removed it and it's gone. But any idea where that language file came from or why is this line there anyway?

<td align="center" class="trow1"><span class="smalltext">{$lang->online_count}</span></td>

Kinda confusing..Can't be because of the theme itself, can it?

Thanks.
It seems that language string is actually used on the portal, there's nothing to load the values to make it work on ./online.php so it just shows {1}, {2} etc etc... could be the theme, do you know where you got it??
The theme is from mybbdesign.com. Anyway, never mind, I removed it.
Admin CP > Templates & Style > Templates > DarkOrange Templates => Who's Online Templates > online

Template to change..
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->users_online}</title>
{$headerinclude}
{$refresh}
</head>
<body>
{$header}
<table cellpadding="0" cellspacing="0" width="100%"><tr>
<td><img src="{$theme['imgdir']}/thead_l.png" alt="" /></td>
<td class="thead" style="white-space:nowrap"><div>{$lang->users_online}</div>
</td>
<td><img src="{$theme['imgdir']}/thead2.png" alt="" /></td>
<td class="thead2"></td>
<td><img src="{$theme['imgdir']}/thead_r.png" alt="" /></td>
</tr>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<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" align="center" 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>
<table cellpadding="0" cellspacing="0" width="100%"><tr>
<td><img src="{$theme['imgdir']}/tfoot_l.png" alt="" /></td>
<td class="tfoot2"></td>
<td><img src="{$theme['imgdir']}/tfoot_r.png" alt="" /></td>
</tr>
</table>
{$footer}
</body>
</html>