vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Statistics Modifications - Fake User Online v2 (https://vborg.vbsupport.ru/showthread.php?t=252753)

Tivar 10-27-2010 10:00 PM

Fake User Online v2
 
1 Attachment(s)
Products to Install: 1
Plugins Included: 1
Setting Group : 1
Settings : 9
Phrases : 19


This Mod is just a little modified Version from Atakan KOC's Fake User vb36x.

It adds members and visitors to your count in forum home.

But be carefull! It can display more registerd users online than are really registered :erm:


Installation

- Download the product file below and import it into your vBulletin via the product manager.

Add Counts, Records, Names

- Admin Control Panel > Fake Users Online

***** Update v2

Now you can edit all Numbers and the Namelist displayed in Who is Online on forum home.

Users Online = Guests + Registered
Guests Online = Real + What you want
Registeres Online = Real + What you want

Namelist = Real Registered Online (clickable) + Fakenames (non-clickable)

Record-Numbers= Usercount, Date, Time what you want or real

Kraxell 10-28-2010 10:00 AM

what will happen, when a real user click on a fake user?

JAFRI 10-29-2010 04:12 AM

now work vb4.2 just show There are currently 521 users online. 12 members and 509 guests

.....

raiderlax 10-29-2010 04:30 AM

It won't actually display the names of the members online though. It just shows the number.

Can you make it show members?

alencete 10-29-2010 05:30 AM

Is possible for an individual user what was found was the

Tivar 10-29-2010 08:19 AM

Updated :)

You have to add the Fakenames in Adminpanel. Just the Realnames are clickable.

raiderlax 10-29-2010 08:24 AM

Thank you so much for the update :)

One little thing that would make this mod amazing is if you could have it so we can add the usernames of real members so that when they are displayed they will be clickable links...

Thanks again

synseal 10-29-2010 10:59 AM

What would make this perfect is if it could pull random members from your already registered users of given usergroups like the other one https://vborg.vbsupport.ru/showthrea...ight=fake+user

Thanks *insalled.

abdobasha2004 10-29-2010 01:06 PM

also possible through increasing cache lifespan
and both ways uses server load with no benefit 1

★Slap 10-29-2010 08:26 PM

Fake Names

a legacy reborn, akia, Alec W, ASSami, AzhriaLilu, baghdad4ever, beishe8, bf777, BWJ, CAAC, cbiweb, ceho, cellarius, cmeinck, CrystalStarLight, cykelmyggen, dawges, Deathjam, Deriel, Desibabu19, diplome, drichard12, echo419, Edwin, Elitek550, empact, ge66, giorgino, GL2814, Grimsqueaker, IanW-GC8, IJeffers, iRO Wiki, Jasper, jluerken, jrh369, JVCode, jörgk, Kendsl, kentaurus, King Kovifor, KingsFan, kootta, KW802, Mac Write, magz, Mario.D, marshal, masterneme, mikeylikesitz, MsJacquiiC, nakedanvil, nerobdms, ngscaos, nmp, pablo, petertdavis, Phalynx, PitchouneN64ngc, pjaco, psalzmann, Ramsesx, RedFoxy, Reeve of Shinra, Rixcz, rughis, Ryan Ashbrook, S!p, saroook, satlazone, SCH, slinky, South Fork, Spooky_Eye, TbChampions, testii, The Vegan Forum, TheSonic, The_Hawk, The_Rascal, Tomorrow, trocobob, zelnik, zweeper

M@rc 10-30-2010 06:27 PM

Thanks for the useful mod. It'll be great for new forums to get more members to join.

I'm going to download, install and test it out now.

concepts 10-30-2010 07:57 PM

I would suggest making the fake names click-able only to guest that will lead to a registration page.

Then once logged in, the fake names are no longer clickable :D

HUSSEINDAWOOD 10-31-2010 02:50 AM

Thax nice mod

Bergler 10-31-2010 07:17 PM

Can this be edited so it will work with this, https://vborg.vbsupport.ru/showthread.php?t=233965

Tivar 10-31-2010 10:31 PM

Quote:

Originally Posted by Bergler (Post 2116493)
Can this be edited so it will work with this, https://vborg.vbsupport.ru/showthread.php?t=233965

Hi Bergler,

please try this:

PHP Code:

<?php
if ($vbulletin->options['namesonoff']>0)
{
$buffer $vbulletin->options['names'];
eval(
'$activeusers .= ", ' $buffer '";');
}
else
{
$activeusers '';
}
if ((
vB::$vbulletin->options['displayloggedin'] == OR vB::$vbulletin->options['displayloggedin'] == OR (vB::$vbulletin->options['displayloggedin'] > AND vB::$vbulletin->userinfo['userid'])) AND !$show['search_engine'])
{
    
$datecut TIMENOW vB::$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 vB::$db->query_read_slave("
        SELECT
            user.username, (user.options & " 
vB::$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(vB::$vbulletin->options['displayloggedin'] == OR vB::$vbulletin->options['displayloggedin'] == 3"ORDER BY username ASC") . "
    "
);

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

    while (
$loggedin vB::$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 (!
vB::$vbulletin->userinfo['userid'] AND $numberguest == 0)
    {
        
$numberguest++;
    }

    foreach (
$userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != vB::$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();
            
vB_Template::preRegister('block_users_online', array('activeusers' => $activeusers)); 
        }
    }

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

    
vB::$db->free_result($forumusers);

    
$numberguest $numberguest $vbulletin->options['guest'];
    
$numberregistered $numberregistered $vbulletin->options['registered'];
    
$totalonline $numberregistered $numberguest;
    
$numberinvisible $numberregistered $numbervisible;
    
    
vB::$vbulletin->datastore->fetch(array('maxloggedin'));
    if (
vB::$vbulletin->maxloggedin === NULL)
    {
        
vB::$vbulletin->maxloggedin = array();
    }
    if (
intval(vB::$vbulletin->maxloggedin['maxonline']) <= $totalonline)
    {
        
vB::$vbulletin->maxloggedin['maxonline'] = $totalonline;
        
vB::$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
        
build_datastore('maxloggedin'serialize(vB::$vbulletin->maxloggedin), 1);
    }
    if (
$vbulletin->options['recordonoff']>0)
    {
    
$recordusers $vbulletin->options['recordusers'];
    
$recorddate $vbulletin->options['recorddate'];
    
$recordtime $vbulletin->options['recordtime'];
    }
    else
    {
    
$recordusers vb_number_format(vB::$vbulletin->maxloggedin['maxonline']);
    
$recorddate vbdate(vB::$vbulletin->options['dateformat'], vB::$vbulletin->maxloggedin['maxonlinedate'], true);
    
$recordtime vbdate(vB::$vbulletin->options['timeformat'], vB::$vbulletin->maxloggedin['maxonlinedate']);
    }
    
$show['loggedinusers'] = true;
    
    
$statsarray = array('onlinestats' => $onlinestats,
    
'totalonline' => $totalonline,
    
'numberregistered' => $numberregistered,
    
'numberguest' => $numberguest,
    
'show'    => $show,
    
'recordusers'  => $recordusers,
    
'recorddate'  => $recorddate,
    
'recordtime'  => $recordtime,
    
'activeusers'    => $activeusers,
    );
    
    return 
$statsarray;

?>


Bergler 11-01-2010 03:53 PM

Quote:

Originally Posted by Tivar (Post 2116557)
Hi Bergler,

please try this:

PHP Code:

<?php
if ($vbulletin->options['namesonoff']>0)
{
$buffer $vbulletin->options['names'];
eval(
'$activeusers .= ", ' $buffer '";');
}
else
{
$activeusers '';
}
if ((
vB::$vbulletin->options['displayloggedin'] == OR vB::$vbulletin->options['displayloggedin'] == OR (vB::$vbulletin->options['displayloggedin'] > AND vB::$vbulletin->userinfo['userid'])) AND !$show['search_engine'])
{
    
$datecut TIMENOW vB::$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 vB::$db->query_read_slave("
        SELECT
            user.username, (user.options & " 
vB::$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(vB::$vbulletin->options['displayloggedin'] == OR vB::$vbulletin->options['displayloggedin'] == 3"ORDER BY username ASC") . "
    "
);

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

    while (
$loggedin vB::$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 (!
vB::$vbulletin->userinfo['userid'] AND $numberguest == 0)
    {
        
$numberguest++;
    }

    foreach (
$userinfos AS $userid => $loggedin)
    {
        
$numberregistered++;
        if (
$userid != vB::$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();
            
vB_Template::preRegister('block_users_online', array('activeusers' => $activeusers)); 
        }
    }

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

    
vB::$db->free_result($forumusers);

    
$numberguest $numberguest $vbulletin->options['guest'];
    
$numberregistered $numberregistered $vbulletin->options['registered'];
    
$totalonline $numberregistered $numberguest;
    
$numberinvisible $numberregistered $numbervisible;
    
    
vB::$vbulletin->datastore->fetch(array('maxloggedin'));
    if (
vB::$vbulletin->maxloggedin === NULL)
    {
        
vB::$vbulletin->maxloggedin = array();
    }
    if (
intval(vB::$vbulletin->maxloggedin['maxonline']) <= $totalonline)
    {
        
vB::$vbulletin->maxloggedin['maxonline'] = $totalonline;
        
vB::$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
        
build_datastore('maxloggedin'serialize(vB::$vbulletin->maxloggedin), 1);
    }
    if (
$vbulletin->options['recordonoff']>0)
    {
    
$recordusers $vbulletin->options['recordusers'];
    
$recorddate $vbulletin->options['recorddate'];
    
$recordtime $vbulletin->options['recordtime'];
    }
    else
    {
    
$recordusers vb_number_format(vB::$vbulletin->maxloggedin['maxonline']);
    
$recorddate vbdate(vB::$vbulletin->options['dateformat'], vB::$vbulletin->maxloggedin['maxonlinedate'], true);
    
$recordtime vbdate(vB::$vbulletin->options['timeformat'], vB::$vbulletin->maxloggedin['maxonlinedate']);
    }
    
$show['loggedinusers'] = true;
    
    
$statsarray = array('onlinestats' => $onlinestats,
    
'totalonline' => $totalonline,
    
'numberregistered' => $numberregistered,
    
'numberguest' => $numberguest,
    
'show'    => $show,
    
'recordusers'  => $recordusers,
    
'recorddate'  => $recorddate,
    
'recordtime'  => $recordtime,
    
'activeusers'    => $activeusers,
    );
    
    return 
$statsarray;

?>


Im sorry, where do I put this? :)

Bergler 11-02-2010 09:38 PM

Anyone? Sorry if its such a stupid question but I really dont know where I would put this?

Tivar 11-02-2010 11:48 PM

Hi Bergler, thats not a stupid question.

This is just a modfied code from the install instructions on Block - Users Online. But I think it doesn't work.

Please ask Lynn, the developer from Block - Users Online.

W!cKeD 11-03-2010 11:42 PM

Can you make the Fakename Clickable? I find this better..

raiderlax 11-04-2010 03:12 AM

Quote:

Originally Posted by W!cKeD (Post 2117691)
Can you make the Fakename Clickable? I find this better..

Yes I would like to see this too please.

strudinox 11-04-2010 05:20 PM

Nice mod! But what would be even more useful is to select the userID of the user you want permanently online, instead of adding fake names. This way you can create a whole bunch of fake users and mark them online constantly.

Bergler 11-05-2010 01:03 AM

Quote:

Originally Posted by Tivar (Post 2117293)
Hi Bergler, thats not a stupid question.

This is just a modfied code from the install instructions on Block - Users Online. But I think it doesn't work.

Please ask Lynn, the developer from Block - Users Online.

I asked here and this is what she said, https://vborg.vbsupport.ru/showpost....&postcount=256

numberguy 11-05-2010 02:15 AM

Quote:

Originally Posted by strudinox (Post 2117967)
Nice mod! But what would be even more useful is to select the userID of the user you want permanently online, instead of adding fake names. This way you can create a whole bunch of fake users and mark them online constantly.

This.

raiderlax 11-16-2010 01:26 AM

Any update for this mod?

Randomm 11-26-2010 06:51 AM

thanks :)

rose123 12-04-2010 10:25 PM

I love this mod. But I dont want to show names of online users. I wnat to show number of users online. How do I do this.
Thanks in advance.

ErnestA 01-31-2011 03:27 AM

Does anyone know if it works with vB 4.1.1?

YankForum 02-02-2011 07:16 PM

it works , and it would be nice to add a random function to display random usernames so nobody can find out it's fake
also it would be nice to have the usernames clickable

Brew 02-03-2011 05:37 PM

This seems to only show the number of online people, not their names.

And it doesn't show anything in Who's Online:

Quote:

There are currently 75 users online. 21 members and 54 guests, with 3 spiders
Is there a way to actually show the names in What's Going On and Who's Online?

WreckRman2 02-04-2011 12:12 AM

lame

Luerssen 03-01-2011 10:10 AM

What about update for working in 4.1.2?

decon8x 03-02-2011 05:17 AM

It conflict with this mod, fake user display as user legend bar
Usergroup Color Bar Legend
https://vborg.vbsupport.ru/showthread.php?t=228607

Dennis Kaczor 03-02-2011 04:38 PM

Hope there is going to be an update for this. Just found that this is causing issues for me with the On-Line users in vb 4.1.2. Would love to get this one in operation again.

Dennis Kaczor 03-02-2011 04:44 PM

Quote:

Originally Posted by rose123 (Post 2129391)
I love this mod. But I dont want to show names of online users. I wnat to show number of users online. How do I do this.
Thanks in advance.

Yes in that version, but not in version 4.1.2

Wordplay 03-11-2011 08:09 AM

this would be great if it showed actual users not just made up names, plus in 4.1.2 if fake names is enabled then it doesn't show any names at all (not even the actual people online).

plus it is only helpful if you have who's online unviewable by registered user / guests, because the numbers there don't add up.

sorry had to click uninstall.

CrosseyedGamer 03-31-2011 10:08 PM

Doesn't seem to work as mentioned in the update notes. Not finding where to add real names and have them show up as links. Fake names added show up as text only.

Namelist = Real Registered Online (clickable) + Fakenames (non-clickable)

mountainlife 04-10-2011 10:20 PM

Not working for 4.2.1 , Not adding to registered member count Could you please update this? Thanks!!

mountainlife 04-10-2011 10:22 PM

Does this hack not add fake registered members, only online members?

It should add registered members

C0D3D 04-13-2011 12:31 PM

Can you make it so that we can use fake members that we added on our own and make it possible to click on that fake member that you created instead of fake names? Also it doesn't show the names on v4.1.2+

Ramsesx 04-13-2011 01:18 PM

And please make it that the fake members are writing many useful posts.
(joking)
I'll give it a try. Thanks.


All times are GMT. The time now is 05:50 PM.

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.01781 seconds
  • Memory Usage 2,008KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete