MyBB Community Forums

Full Version: User always appears online in postbits!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A particular user always appears to be online ( the little icon near his name says online) although he's offline! (which can be seen in online list or his profile page)...
Is it a bug or what?
No, he has probably left his browser on or something. People do these things. It isn't a bug.
No no...it's not like that i'm 100% sure....no one can leave browser on for 2 days Toungue
As you can see that near your name it's blue meaning you are online...
Same with him but when you visit his profile or check the active users list then he's offline!
Any help?
Try to change the theme for yourself only to the MyBB default theme and see if he's still online. If not, there's an issue with your theme and then post the content of the following templates of your theme:
- postbit or postbit_classic (depending on what you are using)
- postbit_online
- postbit_offline
I had messed with my default theme Blush
And i really like My current themeWink

postbit:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tbody>
		<tr>
			<td class="tcat">
				<div class="float_left smalltext">
					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
				</div>
				{$post['posturl']}
			</td>
		</tr>

		<tr>
			<td class="trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

				<div class="post_body" id="pid_{$post['pid']}">
					{$post['msgbirth']}{$post['message']}
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
				</div>
				<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
			</td>
		</tr>
	</tbody>
</table>{$post[inline_ad]}
Postbit_online:
<a href="online.php" title="{$lang->postbit_status_online}"><img src="{$theme['imgdir']}/buddy_online.gif" border="0" alt="{$lang->postbit_status_online}" /></a>
postbit_offline:
<img src="{$theme['imgdir']}/buddy_offline.gif" title="{$lang->postbit_status_offline}" alt="{$lang->postbit_status_offline}" />


I can't find anything wrong in it Huh
Please check it Big Grin
Looks good to me, yes.

In inc/init.php, add the following on a new line after the line that says "<?php"
define("NO_PLUGINS",1);
So top looks like this:
<?php 
define("NO_PLUGINS",1);
/**

This will temporarily disable all plugins so some features will be missing from your forum but if you remove that line afterwards, everything will be fine again.

After saving and uploading the file again, check if the problem still persists.
No still there....that means my plugins didn't do it Big Grin

Oh oh...
You know what....on my forum there are 3 admin (including me)...
It's happening to the other 2 admins...
they appear online in postbit but not in user cp or online list!
I think it's a bug....happens only with admins!!

same thing exists in default theme too!!
Can anyone solve it?