Jump to content
MakeWebGames

Recommended Posts

Posted

To integrate miniBB with EzRPG, just follow these steps.

1) Download the latest version of miniBB here - http://www.minibb.com/download.html

2) Make a folder called /forum/ in the root of your website.

3) FTP the miniBB to the /forum/ folder.

4) Edit setup_options.php and replace the following with your details

 

$DBhost='localhost';

$DBname='DATABASENAMEHERE'; MUST BE THE SAME AS EZRPG DATABASE!

$DBusr='USERHERE'; MUST BE THE SAME AS EZRPG DATABSE

$DBpwd='PASSWORDHERE'; MUST BE THE SAME AS EZRPG DATABSE

$admin_usr='USERHERE'; Make it the same username as your ezRPG account

$admin_pwd='PASSHERE'; MUST BE THE SAME AS Your EZRPG account's password

$admin_email='EMAILHERE'; Put your EMAIL HERE

5) Once you have filled them in. Go to http://yourwebsite.com/forum/_install.php to install it.

6) Go to your EzRPG folder then /modules/register/ and open up index.php

Find -

$insert['username'] = $_POST['username'];
           $insert['email'] = $_POST['email'];
           $insert['secret_key'] = createKey(16);
           $insert['password'] = sha1($insert['secret_key'] . $_POST['password'] . SECRET_KEY);
           $insert['registered'] = time();

           global $hooks;
           //Run register hook
           $insert = $hooks->run_hooks('register', $insert);

           $new_player = $this->db->insert('<ezrpg>players', $insert);

 

and replace with -

         $insert['username'] = strtolower($_POST['username']);
           $insert2['username'] = strtolower($_POST['username']);
           $insert['email'] = strtolower($_POST['email']);
           $insert2['user_email'] = strtolower($_POST['email']);
           $insert['secret_key'] = createKey(16);
           $insert['password'] = sha1($insert['secret_key'] . $_POST['password'] . SECRET_KEY);
           $insert2['user_password'] = md5($_POST['password']);
           $insert['registered'] = time();
           $insert2['user_regdate'] = time();

           global $hooks;
           //Run register hook
           $insert = $hooks->run_hooks('register', $insert);

           $new_player = $this->db->insert('<ezrpg>players', $insert);
           $new_player2 = $this->db->insert('minibbtable_users', $insert2);

 

7) Download the attached files and put them into the correct folders.

8 ) Now place in your main menu (header.tpl) or your city,

[url="index.php?mod=Forum"]Forum[/url]

or

[url="/forum/"]Forum[/url]

 

9) And done! Just go to the forum and login with your details.

 

This tutorial was rushed so I may of missed some parts out.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...