MyBB Community Forums
Making numerous accounts? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Making numerous accounts? (/thread-103000.html)



Making numerous accounts? - Alternate - 2011-09-02

Hello,

I was wondering if it was possible to create numerous members yourself in seconds. I know you can access the Administration Control Panel and create a single user yourself but this is very slow, it also slows everything down. If anyone could answer this question then I'd appreciate that a lot.

Thanks, regards,
uzi.


RE: Making numerous accounts? - Radebe - 2011-09-02

As far as I'm aware, there isn't. You have to create users manually.


RE: Making numerous accounts? - Alternate - 2011-09-02

Ok, well thank you Rad for answering my question. One more thing; Is it possible for anyone viewing the website that doesn't have any Moderation, Administration powers to figure out that they are fake accounts? Thanks a lot.


RE: Making numerous accounts? - Nathan Malcolm - 2011-09-02

It's easy to generate fake accounts. I quickly wrote this for you. It's not the best way, but it works.

<?php

@set_time_limit(0);

define('IN_MYBB',1);
require_once('global.php');
require_once('inc/functions_user.php');

for($i=0; $i<10;$i++) {
	$data['username'] = random_str(8);
        //you need other table information from mybb_users such as password, email, etc... here. For example, $data['email']
	$db->insert_query("data", $data);
}

?>

This would generate 10 fake accounts.


RE: Making numerous accounts? - Alternate - 2011-09-02

Wow, thanks a lot Malcom, where do I place this coding and how do I correctly choose the usernames and everything?


RE: Making numerous accounts? - Nathan Malcolm - 2011-09-02

You have to create a new file, add that code, add what you want to the $data array, upload to your mybb directory and run it.

If you have specific usernames you want to register, you can add them to a new array and then use array_rand() to choose a random value.



RE: Making numerous accounts? - Alternate - 2011-09-02

Well thanks Malcom, this is pretty confusing for me but I'll give it a shot.