PDA

View Full Version : Administrative and Maintenance Tools - Mass User Creation and Auto Posting


alexgeek
01-01-2008, 10:00 PM
What this is.
This script will allow you to create mass users with just a few customizations (or you can just use the defaults which are pretty good).
You may want to use this to make your forum seem more popular, for testing purposes or any other need.
The username, password and email of each user created will be outputted to your page once created. I recommend you save this for access to the accounts (unless you have the CYB login to user mod).
The username is created by taking a random base name out an array and appending it with numbers.
The password is completely random - alphanumeric.
The email is based on the username with a few more digits added and a random domain selected.

howto install

Upload file to your forum root
Open yourdomain.com/forum/(usergenerate.php / usergenv2.php)
Follow instructions and customize the users to be created.
Press submit.


You provide from the following when mass creating users:

Amount - Only input required. I recommend no more than 50 per time.
Usergroup - which usergroup all users will be put into.
Usertitle - the usertitle the users will have.
Password - If not set a random password will be generated else the same password will be used for all users created.
Email - If not set an email will be created based on the username else all users will have the same email address (Automatically allows this, no vbulletin option editing required).
Username generating - How to generate the usernames (default list, your own file or online list).
Auto posting - Whether or not to post a thread by each user, if selected you can choose whether the post and title come from the default list, your own file or online.

With this info you can either generate the users straightaway or preview the results in a table.
I will add more customizations if requested, but only to those that mark as installed!

I recommend you rename this file as anybody can access it at present.

There may be a few bugs, so please post any you find.

ToDo:

added!Add an option so that the users will automatically post an introduction.
added!Add more user names to array.
added! Add username and email checks so that no duplicate entry errors occur (Unlikely that they will though).
Add security (Everyone can access this script at the moment).
added! Style generated results with CSS.
added! Add javascript functions for ease of use.


You can help by posting arrays of generic usernames.
E.G.

$user = array('spice', 'magicman', 'badger');

If you would like to add to the username array so that the usernames do not seem repetitive please post an array like above with at least 20 usernames in.

alexgeek
01-02-2008, 02:41 AM
V2 now out!
Auto posting available.

alexgeek
01-02-2008, 03:14 AM
Screenshots!

SEOvB
01-02-2008, 04:20 AM
Just tested and isntalled, works like a beatuy on 3.7b3 :D

Also, just upload it to your admincp folder and access it from there, You'll have to have admin privledges to run then.

Great hack thanks

Hornstar
01-02-2008, 07:29 AM
I want to create about 50 accounts on one of my new sites, to be RSS feeds posters. This would save lots of time then having to create an account one at a time. However I would prefer if the email field was blank, and that the option of displaying email address be set to no.

If this is doable, then let me know ^^

Thanks.

alexgeek
01-02-2008, 07:46 AM
I want to create about 50 accounts on one of my new sites, to be RSS feeds posters. This would save lots of time then having to create an account one at a time. However I would prefer if the email field was blank, and that the option of displaying email address be set to no.

If this is doable, then let me know ^^

Thanks.

an email is required and cannot be a duplicate (more than one user with the same email).
Let me know if you want something else though.
Such as all the RSS Feed posters have the email rssnumber@example.com

MiahBeSmokin420
01-02-2008, 10:34 AM
im compleatly against making fake users for a site

but i test almost every new mod/hack just to see what its about

and ill give you props thats the easiest way to make fake members i ever seen

i just may make a new user group to put some fake people in just to see how many i can do before people catch on then prune them fakes out

lol i hate fake users but good work

alexgeek
01-02-2008, 02:18 PM
I agree this isn't the best way but some people may be desperate or have other reasons.

ZomgStuff
01-02-2008, 02:57 PM
an email is required and cannot be a duplicate (more than one user with the same email).


That is a setting in vBOptions. If you change it you don't need a unique e-mail.

Derek Chai
01-02-2008, 03:17 PM
Very nice!

alexgeek
01-02-2008, 04:23 PM
That is a setting in vBOptions. If you change it you don't need a unique e-mail.
Okay, I will add an option to either base the email on the username or use one provided.

alexgeek
01-02-2008, 05:39 PM
New version!

iogames
01-02-2008, 07:25 PM
fake is always fake :(
Trying to run a nice-decent site :P
is my 2 cents

intrigue
01-02-2008, 09:41 PM
fake is always fake :(
Trying to run a nice-decent site :P
is my 2 cents

granted but a lot of people walk away with a site that has very few members. I have added some and posted as myself and talked to myself, it may be sad but it has helped increase forum activity.

matt

alexgeek
01-02-2008, 10:26 PM
I agree, and to make this seem less fake.. V2!
This version will automatically post a thread in the forum of your choice.

legion!
01-02-2008, 10:42 PM
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/i/n/s/inspectahverbz/html/usergenv2.php on line 215


here is the error im gettin

gizabo
01-02-2008, 10:43 PM
check this out... i installed it... but look

http://www.gizabo.com/forum/usergenv2.php

legion!
01-02-2008, 10:43 PM
by the way this would be an incredible hack!

legion!
01-02-2008, 10:44 PM
Gizabo is havin the same problem as me too lol

gizabo
01-02-2008, 10:49 PM
lol legion... we are both idiots... lol..... so can sombody help?

legion!
01-02-2008, 10:52 PM
hahah i know that is how im feelin right now...cause there is no shame in my game ill use this hack to make the forum seem better this will actually bring in real people

johnrizz
01-02-2008, 10:54 PM
Opps! that makes three... hahaha! same error.....

gizabo
01-02-2008, 10:55 PM
The 3 stooges lol.... Can sombody Please Help us! We are clueless.....

gizabo
01-02-2008, 10:57 PM
do u think it might b a hosting error? What kinda hosting do u guys have... i got Godaddy


Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/g/i/z/gizabo2007/html/forum/usergenv2.php on line 215

legion!
01-02-2008, 10:58 PM
i got go daddy aswell

gizabo
01-02-2008, 10:59 PM
k... Stone what about u?

gizabo
01-02-2008, 11:01 PM
OoOoO i think i know what the hell is up... Go daddy supply's a very old PHP (i think 4.3x)

maybe this can only support something different...

johnrizz
01-02-2008, 11:02 PM
Nah, I'm using HostForWeb.com

gizabo
01-02-2008, 11:02 PM
I do know u can change the PHP to a 5.x.... But will that affect the forums?

SEOvB
01-02-2008, 11:02 PM
To fix the security of anyone accessing it, simply place in the adminCP

gizabo
01-02-2008, 11:05 PM
thats not the problem

alexgeek
01-02-2008, 11:13 PM
Sorry, at the moment this works for PHP5+
I will see if I can get it to work for PHP4 tomorrow.

legion!
01-02-2008, 11:14 PM
darn :(

gizabo
01-02-2008, 11:15 PM
its fine man! Im on the phone with godady now! Im upgrading! lolz

MiahBeSmokin420
01-02-2008, 11:17 PM
ya see i got my own server the newest php and the newest mysql

like i said before i hate fake users but i had to take it on a test run

made a user group just for fake users

and holly shit the games got fun

made 3000 members in less the 1 minute lol omg it was awsome

but i deleted them but ya man the shit works good

alexgeek
01-02-2008, 11:18 PM
its fine man! Im on the phone with godady now! Im upgrading! lolz
That's great :)

ya see i got my own server the newest php and the newest mysql

like i said before i hate fake users but i had to take it on a test run

made a user group just for fake users

and holly shit the games got fun

made 3000 members in less the 1 minute lol omg it was awsome

but i deleted them but ya man the shit works good

Yeah, to delete users just go to prune users and select 0 days and less than 1 posts then hit go.

gizabo
01-02-2008, 11:19 PM
K i just got off the phone! I just updated... they said it will take up to 24 hours! w00t!!!!!!!!!

gizabo
01-02-2008, 11:21 PM
Legion... To update go to

Godaddy.com>Hosting & Servers (NavBar)> Manage my Hosting> Click open (on the site u want to edit)>Content>Laugages> And ur done!

legion!
01-02-2008, 11:25 PM
how much does it cost lol

alexgeek
01-02-2008, 11:31 PM
By the way if people want to help here are some things to do:
1. Translate it into other languages (mainly French, German and Spanish I guess).
2. Convert the autoposter to work with PHP4.
3. I need username lists (http://www.alexgeek.co.uk/vb/usernames.php) (each username line separated)
4. Likewise with username lists I need post title lists (http://www.alexgeek.co.uk/vb/titles.php) and post lists (http://www.alexgeek.co.uk/vb/intros.php) for the autoposter.

MiahBeSmokin420
01-02-2008, 11:31 PM
That's great :)



Yeah, to delete users just go to prune users and select 0 days and less than 1 posts then hit go.



acually if you make a fake users user group then you can just prune all users in that user group seeing as how they are fake

but what ever works for you

alexgeek
01-02-2008, 11:32 PM
Yes either all. But the default is to put the users in the "registered users" group so that's how to delete the fake users if you didn't make a special group :)

gizabo
01-02-2008, 11:36 PM
Free------

legion!
01-02-2008, 11:51 PM
im on to that now :) thanxs this is gonna be a bombhack!

ZomgStuff
01-03-2008, 12:07 AM
do u think it might b a hosting error? What kinda hosting do u guys have... i got Godaddy


Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/g/i/z/gizabo2007/html/forum/usergenv2.php on line 215

Rofl that isn't a hosting problem. You got a f'd up in a string, whether not using the ' or " properly, or perhaps forgetting to put a semi colon at the end of a line.

alexgeek
01-03-2008, 12:09 AM
im on to that now :) thanxs this is gonna be a bombhack!

Glad you think so, I've spent quite a few hours making this!

alexgeek
01-03-2008, 12:11 AM
Rofl that isn't a hosting problem. You got a f'd up in a string, whether not using the ' or " properly, or perhaps forgetting to put a semi colon at the end of a line.

Nah mate, PHP4 has crappy OO support.

alexgeek
01-03-2008, 12:46 AM
Can someone try out the PHP4 version I uploaded?
I think it should work.

legion!
01-03-2008, 01:01 AM
works like a champ...all but when you click on the first post its a page full of code

alexgeek
01-03-2008, 02:06 AM
Could you link/copy and paste the code it produces? Thanks!

Mixibiza
01-03-2008, 02:15 AM
Good one... Installed :)

gizabo
01-03-2008, 03:08 AM
legion it works 4 u? not 4 me yet

gizabo
01-03-2008, 03:25 AM
ITs working now! But where do i find out my forum ID?

Zaiaku
01-03-2008, 03:27 AM
I never liked the whole ake posting and users, Never seen one that worked anyway that actually looked like real people posting.

Where is it pulling the post/threads from?

SEOvB
01-03-2008, 07:06 AM
Mine will only do this

DONE!Total users created: 0 & Skipped: 3

No matter what options i enter

alexgeek
01-03-2008, 10:05 AM
ITs working now! But where do i find out my forum ID?
Got to the forum you want them to post in, look at the URL.
It should be /forumdisplay.php?f=NUMBER, whatever number is, that is the ID.

I never liked the whole ake posting and users, Never seen one that worked anyway that actually looked like real people posting.

Where is it pulling the post/threads from?
A random list that is hardcoded, from a custom file or the internet.
You get to choose :)

Mine will only do this

DONE!Total users created: 0 & Skipped: 3

No matter what options i enter
There's a bug at the moment that if it hits an error (e.g. username taken) then all of them fail. Just keep refreshing.. you should get some made eventually.
Sorry for that, will fix it soon.

iogames
01-03-2008, 01:07 PM
Free------

Free?!?! I migrated my site 7 days ago from PHP4 to 5 and some paid scripts went wrong, so I have to paid for customization again, and good work Mr AlexGeek [although won't install]

gizabo
01-03-2008, 10:21 PM
Well godaddy lets u upgrade free... The reason it wasnt working b4 was because i forgot to press submit!

It took 5 min to upgrade! Great hu?

Alex u know what u should do? Make it so when the fake users posts, it counts as a real post.... Cuz it isnt now...

Xandar
01-04-2008, 03:57 PM
Couple of quick suggestions:

-- Post introductions should allow formatting and such that are also randomized. This'd give a better feel for it not being faked out.

-- Registration times / post times etc should be randomized somwhat. The system makes EVERY post at the same time, so it looks very very odd when everyone (I tried it on my forums) posts at 11:51 AM and there's 20 new people...

The idea behind the system is great. Love it.. don't know I'll keep the users long, but .. :)

-- Philippe
Call Center Blog: http://blog.c3oc.com/
Call Center Forums: http://forums.c3oc.com/

alexgeek
01-04-2008, 09:12 PM
Couple of quick suggestions:

-- Post introductions should allow formatting and such that are also randomized. This'd give a better feel for it not being faked out.

Want to do a few yourself? I can add them to the online list.


-- Registration times / post times etc should be randomized somwhat. The system makes EVERY post at the same time, so it looks very very odd when everyone (I tried it on my forums) posts at 11:51 AM and there's 20 new people...

Brilliant idea, will release that in the next version.
it will be something like:

$time = time();
$rand = rand( -50, 50 );
$time += $rand;


That way the time is jumbled about but won't be like 5 years ago or 3 years in front ;)

inteller2k7
01-05-2008, 12:59 AM
Great script, nice work. Question though, if i create 50 users for example, only the first one posts. Any ideas please.

johnrizz
01-05-2008, 03:25 PM
It loads fine, its just when I try to create new user. This is what I get when I run the script...
Fatal error: Existing data passed is not an array
Called set_existing in /home/jeepmcom/public_html/includes/functions_databuild.php on line 200
Called build_forum_counters in /home/jeepmcom/public_html/usergenv2forphp4.php on line 432 in /includes/class_dm.php on line 235

Ryaku
01-06-2008, 02:57 AM
I found a bug. when the fake users post the intro, their post count stays on 0 which makes it look like they are fake =/ if this can be fixed then this hack would be the best one ever!!

Btw, good job man. love your hack so far but the 0 post should be fixed soon hehe. cheers ^_^

inteller2k7
01-06-2008, 10:59 AM
It loads fine, its just when I try to create new user. This is what I get when I run the script...
Fatal error: Existing data passed is not an array
Called set_existing in /home/jeepmcom/public_html/includes/functions_databuild.php on line 200
Called build_forum_counters in /home/jeepmcom/public_html/usergenv2forphp4.php on line 432 in /includes/class_dm.php on line 235

I had a similar problem, try the other php page(usergenv2.php).

Xandar
01-07-2008, 01:26 PM
Want to do a few yourself? I can add them to the online list.


Sure. Give me a way to put the intro in terms of formatting randomizations and such and I'll be glad to.

alexgeek
01-11-2008, 10:34 PM
Great script, nice work. Question though, if i create 50 users for example, only the first one posts. Any ideas please.

I've only had this problem when running it on vbulletin 3.7
Worked on 3.6
I really don't know why that happens but I will find out!

alexgeek
01-11-2008, 10:35 PM
Sure. Give me a way to put the intro in terms of formatting randomizations and such and I'll be glad to.

Just write some intros and put in some bbcode if you would please.

alexgeek
01-11-2008, 10:37 PM
I found a bug. when the fake users post the intro, their post count stays on 0 which makes it look like they are fake =/ if this can be fixed then this hack would be the best one ever!!

Btw, good job man. love your hack so far but the 0 post should be fixed soon hehe. cheers ^_^

Try to update the counters from the admincp.
This shouldn't happen unless you disable post counts for that particular forum.

TCE Killa
01-12-2008, 01:37 PM
Great mod, where do you upload the usernamelist.txt file though? I've made a list of usernames but don't where to upload that file to, thanks.

johnrizz
01-12-2008, 08:01 PM
I had a similar problem, try the other php page(usergenv2.php).

this is what i get when using (usergenv2.php)...

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/**********/public_html/usergenv2.php on line 215

alexgeek
01-14-2008, 06:36 PM
Great mod, where do you upload the usernamelist.txt file though? I've made a list of usernames but don't where to upload that file to, thanks.

Same directory as the PHP file :)

alexgeek
01-14-2008, 06:37 PM
this is what i get when using (usergenv2.php)...

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/**********/public_html/usergenv2.php on line 215

Please post lines 213 -> 217 :)

GamrChat
01-15-2008, 05:53 AM
thanks for posting this hack... If I get really desperate in a few months then maybe I'll check it out ;) ;) ;)

johnrizz
01-15-2008, 09:00 AM
Please post lines 213 -> 217 :)

213 #### CLASS ####
214 class autothread {
215 public $titles = array('Hello from [user]', 'Hi Im [user]', 'Sup!', 'Hi', 'Hey', 'Hello', 'Hia', 'Heelloooo', 'Just found this place', 'Hi everyone', 'Sup guys?', 'Greetings from [user]', 'Hi am [user]', 'Hey all!', 'I\'m here!', 'My intro..', 'I\'m new');
216 public $msgs = array('Hi guys, I\'m [user] from Surrey. Love the forums so far!', 'Hey guys!', 'Hi, I found these forums googling about, looks cool here', 'Hey, my friend told me about these forums, looking cool so far. [user]', "Woooooh! These forums look cool. Hi! \n\n [user]", "Hi I'm from the USA, this place looks nice. Looking forward to posting! \n\n\n\n [user]", 'Hi! I thoguht I should introduce myself, I\'m [user]. Nice to meet you all!');
217 function set($userid, $defaults = 'defaults') {


Alex, here you go...

alexgeek
01-15-2008, 03:59 PM
PHP4?
I did upload a version for PHP4, but all it requires you to do is replace "public" for "var" on 215 and 216. Should work!

johnrizz
01-15-2008, 06:46 PM
ok thanks alex

johnrizz
01-15-2008, 07:02 PM
That worked like a charm.. haha!

alexgeek
01-15-2008, 08:15 PM
Great :D

Xandar
01-15-2008, 10:52 PM
Hey. Threw some additional intros together for you. (I think some might already be in your list since I compiled from your existing one).

[Place] should be replaced by a long list of places that your code can generate randomly from.

Another suggestion would be that when you're creating users, not everyone should post an intro.. so if you have 100 users created, you should let the person running the script say that only 20 or so post intros. That'll make it more reasonable as well.

Looking forward to the time management system before I run this on my forum again.

- X

alexgeek
01-16-2008, 04:47 PM
Great suggestions and thanks for the list!
Will be a few days!

wolfe
01-16-2008, 10:04 PM
m8 only one of the created users is posting a new thread how do i set all of them to post new threads ? thx in advance

crippon
01-17-2008, 02:15 AM
Can this make users reply to threads? cause I don't want just a bunch of threads with 0 replies

mastertek2000
01-18-2008, 11:04 AM
Can this make users reply to threads? cause I don't want just a bunch of threads with 0 replies

i also would like to see if this is possible

alexgeek
01-18-2008, 11:24 PM
m8 only one of the created users is posting a new thread how do i set all of them to post new threads ? thx in advance

I do not know why, but I will look into it.
What VB version are you on?

Can this make users reply to threads? cause I don't want just a bunch of threads with 0 replies
I will need lists of replies for automated resonses.

bxbigt
02-05-2008, 02:06 PM
fake is always fake :(
Trying to run a nice-decent site :P
is my 2 cents

You allready said what i was going to say...:D

dutchbb
02-09-2008, 07:46 PM
You need to make the birthday random and have the year added. It showed in memberlist the last 10 reg. users all born in November 30, not good.

And another issue: the 'Find' button is added in memberlist, when it normally only shows if the user actually has posts. Another giveaway.

An option to write a list of custom topics+titles for the fake users to post in admincp would be great.

venon
05-08-2008, 02:23 AM
would be greate to have a way to make this to run in cron and to add bdays

dutchbb
05-08-2008, 10:46 AM
Well hopefully the coder will update and release this hack again for vb 3.7, i'm sure it is wanted by many.

dtv100
05-10-2008, 10:27 AM
it work with 3.7

TheJackal56
05-13-2008, 05:26 PM
I needed a way to generate users for load and addon testing and this hit the spot.
Worked fine for 3.7

dug320
09-22-2008, 07:27 PM
Fantastic Hack !!!!!

renk2
10-08-2008, 03:50 AM
When I run this to create fake users it only creates 2 at a time no mater what amount I put in. I can preview the generated list and the amount of fake users are correct there but when I go to add the fake users it only registers 2 at a time :(

chennairam
10-28-2008, 04:13 AM
This is Works on Vb3.7.2

hobbybox
10-31-2008, 12:19 PM
Im confused on this hack - if you use it - it will generate the list of users - Do I then need to add the users myself, or is this hack supposed to register them automaticly?

Medtech
11-02-2008, 02:12 AM
tried it on 3.8.1, getting white page in Firefox when i go to the file

LG Alex
11-24-2008, 07:28 PM
Wow thanks a bunch man. Exactly what I was looking for!

LG Alex
11-25-2008, 12:20 AM
Hey, I am using your hack and loving it, but is there a way you can make it so that new accounts don't have random numbers after them? Its obvious that they are fake with a name like spaceman34654.... lol

I have a usernamelist.txt created with a lot of regualr usernames, but it automatically adds a dumb number to the end. Any way to stop this?

Thanks a bunch!

dailyjabber
05-07-2009, 09:13 AM
where the heck does it show up after files are uploaded to admincp folder...
i've looked all over the cp and can't see it...can someone give me a screen shot..thanks.

MrRem
06-30-2009, 10:27 AM
where the heck does it show up after files are uploaded to admincp folder...
i've looked all over the cp and can't see it...can someone give me a screen shot..thanks.

It doesnt.
Navigate to it manually.

EG:
http://YOURSITE.com/forums/admincp/usergenv2.php

staticrebelle
01-02-2010, 08:09 PM
This could be really useful for me.

Is there a way to specify the e-mail rather than the username and then have the username created based off the e-mail by truncating the domain name?

webmastersitesi
10-08-2010, 02:55 AM
Do this work with vbulletin 4x?

adblaze
01-24-2011, 04:02 AM
Any options available for vb4?

bskr84
03-10-2015, 05:34 AM
this mod for 3.8 show "DONE!Total users created: 0 & Skipped: 100" help?