Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does You Has?
#1
Do you still have the MyBB connector thing for TheHostingTool that you used on LvL8?
#2
It wasn't really a tool just some crude code hacks that created MyBB accounts with TheHostingTool. I don't know if it's still valid for the current version but I'll post what I have.
-KuJoe
#3
Sounds great!
#4
In /includes/ajax.php:
Make public function create() look like the following:
PHP Code:
    public function create() { 
        global 
$main;
        global 
$server;
        
$server->signup();
        
$server->createForumuser();
    } 


In /includes/class_server.php:
Find:
PHP Code:
}
?>

Add above:
PHP Code:
    public function createForumuser() {
        global 
$db$main$type$email;
        
$query $db->query("SELECT * FROM `<PRE>users` WHERE `user` = '{$main->getvar['username']}'");
            if(
$db->num_rows($query) != 0) {
                
define("IN_MYBB"1);
                global 
$main$mybb$lang$query$db$cache$plugins$displaygroupfields$errormessage;
                require_once 
"../bb/global.php";
                require_once 
"../bb/inc/functions_user.php";
                require_once 
"../bb/inc/datahandlers/user.php";
            
                
$userhandler = new UserDataHandler("insert");

                
$user = array(
                    
"username" => $main->getvar['username'],
                    
"password" => $main->getvar['password'],
                    
"usergroup" => "2",
                    
"email" => $main->getvar['email'],
                    
"regip" => $_SERVER['REMOTE_ADDR']
                );
                
                
$userhandler->set_data($user);
                if(
$userhandler->validate_user()) {
                        
$user_info $userhandler->insert_user();
                        die();
                }
            }
            else {
                die();
            }
    } 
Edit the file locations and usergroup based on your setup. Don't forget to disable registration on your MyBB forum or the script may break.

I think there are more code edits but to be honest I don't have time to go through all of the files to find them right now. If you get any errors let me know and it should tell me what edits I'm forgetting.
-KuJoe
#5
Thank you!

Also, do you, by any chance, have the ESTK theme?




Users browsing this thread: 2 Guest(s)