MyBB Community Forums

Full Version: My Whos Online Broke?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry that i am back again in the support section i hope that me asking a lot of questions and needing assistance isn't an issue to you guys. I really hate wasting peoples time, i like to find the solution to my issues my self so i can learn but this is far beyond my knowledge.

I am having an issue with the whos online appearing on my theme, i went to add the variable for the plugin:
[Image: C_IVxcfWRkWX5DOKsYbNUA.png] and i think i accidentally broke the whos online feature the default one that comes with mybb.

here is my index > boardstats code. i tried reinstalling the theme and i still have the same issue. 
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead-alt{$collapsedthead['boardstats']}" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.png" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
	<div><strong><a href="stats.php">{$lang->boardstats}</a></strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$online_today}{$grouplegend}
{$birthdays}
{$forumstats}
<tr>
	<td class="tfoot" style="text-align: right" colspan="2">
		<span class="smalltext">
			{$logoutlink}
			<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
			<a href="showteam.php">{$lang->forumteam}</a>
			{$statspage}
		</span>
	</td>
</tr>
</tbody>
</table>
<br />

and here is the code for the who's online bit which is the part i edited but i didnt remove/delete anything neither did i move anything around all i simply did was add the {$online_today} variable next to the {$whosonline} variable and then it went down hill from there.

<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="trow1" align="center">
		<i class="fa fa-history stats-icon"></i>
	</td>
	<td class="trow1">
		<span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span>
	</td>
</tr>

it was working perfectly fine until i placed the {$online_today} variable next to the {$onlinemembers} variable like so:

<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="trow1" align="center">
		<i class="fa fa-history stats-icon"></i>
	</td>
	<td class="trow1">
		<span class="smalltext">{$lang->online_note}<br />{$onlinemembers}{$online_today}</span>
	</td>
</tr>

after doing so and noticing that my whole boardstats area dissapeared i removed the {$online_today} variable but i never got the boardstats area to appear again, its as if i broke something in the background maybe a task or something? 


My site: https://sourcesentry.net/index.php



The issue here is i dont have the whos online footer anymore like i did before, even my board stats completely dissapeared. I honestly have no clue what broke on my end. 


[Image: 2ja4FMPsSWCLQKd3t0rPZA.png]

once again thanks for the help, I'm still familiarazing my self with HTML & CSS and also with the mybb forum software, so this is something i would like to learn to fix just in case someone has the same issue i can assist them.

After doing some research it turns out i accidentally and somehow deleted the {$boardstats} variable from the index template.......



I will leave this thread here even though its highly embarrassing, but just in case someone makes the same stupid mistake that i did you can use this as a reference to make sure that you didn't accidentally remove the board stats variable lol.