PDA

View Full Version : Currently active users has gone


nick-harper
03-16-2011, 01:27 PM
Hi,

When I recently upgraded to the latest vb version the list of active users has gone.

I have looked around and it says about a spiders plugin to disable but I dont currently have this plugin.

Has anybody else had this happen?

Thanks

Boofo
03-16-2011, 02:13 PM
I would check again as it sounds like the older spider display mod is still installed somewhere. You might want to disable your products and re-enable them one by one to see when they problem starts happening again. This mod fixes the spider display issue for vb 4.1.2.

https://vborg.vbsupport.ru/showthread.php?t=243460

nick-harper
03-16-2011, 04:06 PM
I can't see a spider mod in the list of plugins to disable it :(

I tried installing the new mod and it just gave a white page!

Boofo
03-16-2011, 04:17 PM
I can't see a spider mod in the list of plugins to disable it :(

I tried installing the new mod and it just gave a white page!

What version of vb are you using?

nick-harper
03-18-2011, 08:47 AM
It is 4.1.2 now :)

Lynne
03-18-2011, 04:21 PM
I see a list of currently active users on your forum page.

nick-harper
03-18-2011, 05:29 PM
It was a problem with my outdated forum.php :)

Mv.c9
04-29-2011, 01:15 PM
ok, im having this problem, how to solve it ? i just updated to 4.1.3

Boofo
04-29-2011, 01:21 PM
Revert you forumhome template.

Mv.c9
04-29-2011, 01:27 PM
this is my site: http://gamemodscore.org/forum.php

even the default style is not showing.

btw. Thanks for answering this fast (^_^)

Boofo
04-29-2011, 01:33 PM
Did you revert the template?

Mv.c9
04-29-2011, 01:42 PM
unfortunately I cant revert it, because its not changed or in red so it wont let me click on revert.

and also if it was a template issue then the vbulletin default template should not have had changed as well right ? then why is it that i do have this issue on the default template as well ?

UPDATE:

Just deleted a template and installed it again, still the problem persists.

Boofo
04-29-2011, 03:14 PM
Then you got me. Other than re-uploading your forum.php file to the forums, I can't see anything else that could be causing it. If the vb:each code is in the template, then it should be working. Post your $activeusers code from the forumhome template here and let's see what that is showing.

Lynne
04-29-2011, 11:07 PM
Try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Mv.c9
04-30-2011, 12:44 AM
Then you got me. Other than re-uploading your forum.php file to the forums, I can't see anything else that could be causing it. If the vb:each code is in the template, then it should be working. Post your $activeusers code from the forumhome template here and let's see what that is showing.

Thanx :)
here it is:

<vb:if condition="$activeusers">
<ol class="commalist" id="wgo_onlineusers_list">
<vb:each from="activeusers" value="loggedin">
<li> {vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li>
</vb:each>

as for the config.php ill give it a look.

4l3ghi
04-30-2011, 11:42 AM
I'v this problem with vB 4.1.3! I can't view the user online, and in one skin i've the word "Array".
What is the problem?? :S

--------------- Added 1304170037 at 1304170037 ---------------

The error are in "forum.php"
I replaced the part of "LOGGED IN USERS" with the part of 4.0.7 version.

This is my new code

// ### LOGGED IN USERS #################################################
$activeusers = '';
if (($vbulletin->options['displayloggedin'] == 1 OR $vbulletin->options['displayloggedin'] == 2 OR ($vbulletin->options['displayloggedin'] > 2 AND $vbulletin->userinfo['userid'])) AND !$show['search_engine'])
{
$datecut = TIMENOW - $vbulletin->options['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;

$hook_query_fields = $hook_query_joins = $hook_query_where = '';
($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser_ query')) ? eval($hook) : false;

$forumusers = $db->query_read_slave("
SELECT
user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid, user.lastvisit,
session.userid, session.inforum, session.lastactivity, session.badlocation,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
$hook_query_fields
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
$hook_query_joins
WHERE session.lastactivity > $datecut
$hook_query_where
" . iif($vbulletin->options['displayloggedin'] == 1 OR $vbulletin->options['displayloggedin'] == 3, "ORDER BY username ASC") . "
");

if ($vbulletin->userinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$vbulletin->userinfo['joingroupid'] = iif($vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['displaygroupid'], $vbulletin->userinfo['usergroupid']);
$userinfos = array
(
$vbulletin->userinfo['userid'] => array
(
'userid' =>& $vbulletin->userinfo['userid'],
'username' =>& $vbulletin->userinfo['username'],
'invisible' =>& $vbulletin->userinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'lastvisit' =>& $vbulletin->userinfo['lastvisit'],
'usergroupid' =>& $vbulletin->userinfo['usergroupid'],
'displaygroupid' =>& $vbulletin->userinfo['displaygroupid'],
'infractiongroupid' =>& $vbulletin->userinfo['infractiongroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();

while ($loggedin = $db->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
if (!$loggedin['badlocation'])
{
$inforum["$loggedin[inforum]"]++;
}
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}

if (!$vbulletin->userinfo['userid'] AND $numberguest == 0)
{
$numberguest++;
}

$skipgroups = array(3,4);
foreach ($userinfos AS $userid => $loggedin)
{
if (in_array($loggedin['usergroupid'], $skipgroups))
{
$numberguest++;
}
else
{
$numberregistered++;
if ($userid != $vbulletin->userinfo['userid'] AND !$loggedin['badlocation'])
{
if (!isset($inforum["$loggedin[inforum]"]))
{
$inforum["$loggedin[inforum]"] = 0;
}
$inforum["$loggedin[inforum]"]++;
}
fetch_musername($loggedin);

($hook = vBulletinHook::fetch_hook('forumhome_loggedinuser' )) ? eval($hook) : false;

if (fetch_online_status($loggedin))
{
$numbervisible++;
$show['comma_leader'] = ($activeusers != '');
$templater = vB_Template::create('forumhome_loggedinuser');
$templater->register('loggedin', $loggedin);
$activeusers .= $templater->render();
}
}
}

// memory saving
unset($userinfos, $loggedin);

$db->free_result($forumusers);

$totalonline = $numberregistered + $numberguest;
$numberinvisible = $numberregistered - $numbervisible;


The user online, now, is in on :)