Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Fake User vb36x Details »»
Fake User vb36x
Version: 1.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 02-13-2007 Last Update: Never Installs: 141
Uses Plugins
 
No support by the author.

Fake User

Installation
  • Download the product file below and import it into your vBulletin via the product manager.
Products to Install: 1
Plugins Included: 1
Setting Group : 1
Setting : 3
Phrases :
7
Files to Upload: 0
Files to Edit: 0
New Templates: 0
Template Edits: 0

What this hack does?
This hack adds members to your online list from your already registered users.

How will I arrange the total users?
Admin Control Panel > Fake Users > Add Member > You can increase or decrease the number.

What should I do for the Guest Number?
Admin Control Panel > Fake Users > Visitors> You can increase or decrease the number.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 01-19-2008, 01:02 PM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great, the only idea I have is to make the number change depending on the time of day, could I modify your code to do that?
Reply With Quote
  #93  
Old 02-03-2008, 05:58 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting this would explain how websites that are no where near popular get so many online every day...
Reply With Quote
  #94  
Old 02-10-2008, 04:17 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To get it working in CMPS I put the plugin code below into ./modules/online.php and it showed up. I did it like this because I have no idea how vbadvanced works, so just use it or don't.

Code:
if ($vbulletin->options['xfakeonoff']) { 
$numbervisible2 = 0;
if ($vbulletin->options['xfakemn']>0)
{
$xsayi1 = $vbulletin->options['xfakemn'];
$forumusers = $db->query("SELECT * FROM " . TABLE_PREFIX . "user WHERE usergroupid = '2' ORDER BY RAND() LIMIT $xsayi1");
while ($loggedin = $db->fetch_array($forumusers))
{
$numbervisible2++;
$loggedin[musername] = fetch_musername($loggedin); 
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
$totalonline = $totalonline + $numbervisible2;
$numberguest = $numberguest + $vbulletin->options['xfakemv'];
$numberregistered = $numberregistered + $numbervisible2;
unset($forumusers, $loggedin, $numbervisible2, $xsayi1);
$db->free_result($forumusers);
}
Reply With Quote
  #95  
Old 02-10-2008, 07:28 PM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, and if you want a random number of users online and guests online, just modify the code to pick a random number of online and guests from the number you specify in the vbulletin options

To randomise the number of online members to show between zero and the number you input in the vbulletin options -> Fake Users

Go to AdminCP -> Plugin Manager -> Fake Users (forumhome_complete) -> Edit

For number of online members:

FIND

Code:
$xsayi1 = $vbulletin->options['xfakemn'];
REPLACE WITH

Code:
$xsayi1 = rand(0, $vbulletin->options['xfakemn']);
For number of online guests:

FIND
Code:
$numberguest = $numberguest + $vbulletin->options['xfakemv'];
REPLACE WITH

Code:
$numberguest = $numberguest + rand(0, $vbulletin->options['xfakemv']);
Remember to choose a range of numbers that will look realistic.
A random number of users between 30 and 40 is more realistic than two members online one minute and a full hundred the next



Thanks for this mod, btw!
My site is just starting off, and it's the best way for it not to look dead all the time.
Reply With Quote
  #96  
Old 02-12-2008, 07:32 PM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortuantely after installing I found 2 things. First the members I added don't show in the "who's online page" thus it's obvious they aren't in the forum. The second is that I have colored usergroups for all members and the added users come up with no colors..thus also a problem. I might install it if these issues can be fixed.
Reply With Quote
  #97  
Old 02-12-2008, 08:15 PM
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Posts: 615
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is an example for putting 3 users up and put it in logged in user list box.

Code:
<a href="http://www.yourwebsite.com/forums/members/user1.html"><span style="color:red;"><b>user1</b></a></span>, <a href="http://www.yourwebsite.com/forums/members/user2.html"><span style="color:green;"><b>user2</b></a></span>, <a href="http://www.yourwebsite.com/forums/members/user3"><span style="color:orange;"><b>user3</b></a></span>
Reply With Quote
  #98  
Old 02-21-2008, 01:50 PM
blkatt blkatt is offline
 
Join Date: Dec 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ringleader View Post
To get it working in CMPS I put the plugin code below into ./modules/online.php and it showed up. I did it like this because I have no idea how vbadvanced works, so just use it or don't.

Code:
if ($vbulletin->options['xfakeonoff']) { 
$numbervisible2 = 0;
if ($vbulletin->options['xfakemn']>0)
{
$xsayi1 = $vbulletin->options['xfakemn'];
$forumusers = $db->query("SELECT * FROM " . TABLE_PREFIX . "user WHERE usergroupid = '2' ORDER BY RAND() LIMIT $xsayi1");
while ($loggedin = $db->fetch_array($forumusers))
{
$numbervisible2++;
$loggedin[musername] = fetch_musername($loggedin); 
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}
}
$totalonline = $totalonline + $numbervisible2;
$numberguest = $numberguest + $vbulletin->options['xfakemv'];
$numberregistered = $numberregistered + $numbervisible2;
unset($forumusers, $loggedin, $numbervisible2, $xsayi1);
$db->free_result($forumusers);
}
./modules/online.php You meant onlineusers.php - right?

Does it matter where you place this code. I couldn't get it to work for CMPS. Works fine with the forum.
Reply With Quote
  #99  
Old 02-22-2008, 07:17 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blkatt View Post
./modules/online.php You meant onlineusers.php - right?

Does it matter where you place this code. I couldn't get it to work for CMPS. Works fine with the forum.
I meant where your php files are stored that are used for CMPS templates to display.

Actually, the file changed between v2.2.x and v3.0 so I've no idea how it should work in 3.0
Technically you should just be able to paste that code I wrote above somewhere in the middle of the file (you'd need to know a little bit about the brackets in code to make sure you're placing it in a good place).
Reply With Quote
  #100  
Old 04-30-2008, 04:00 PM
blkatt blkatt is offline
 
Join Date: Dec 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with 3.7??
Reply With Quote
  #101  
Old 05-18-2008, 09:17 AM
RYoBiOS RYoBiOS is offline
 
Join Date: Apr 2005
Location: Italia
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blkatt View Post
Does this work with 3.7??
UP:up:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08032 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete