vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Currently active users has gone (https://vborg.vbsupport.ru/showthread.php?t=260481)

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

Currently active users has gone
 
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

Quote:

Originally Posted by nick-harper (Post 2174052)
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

PHP Code:

define('DISABLE_HOOKS'true); 


Mv.c9 04-30-2011 12:44 AM

Quote:

Originally Posted by Boofo (Post 2190017)
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:

PHP Code:

<vb:if condition="$activeusers">
                    <
ol class="commalist" id="wgo_onlineusers_list">
                        <
vb:each from="activeusers" value="loggedin">
                            <
li> {vb:stylevar dirmark}<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 [DATE]1304170037[/DATE] at [TIME]1304170037[/TIME] ---------------

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

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 :)


All times are GMT. The time now is 06:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03879 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete