|
phpBB v3.x Integration
Posted by Anthony B. on 03 January 2012 10:32 AM
|
|
|
These instructions assist you with the integration of the AddonChat software into the polular phpBB forum software. phpBB can be downloaded from www.phpbb.com/downloads.php AddonChat can be downloaded from www.addonchat.com/products.html
1. Open up Wordpad or a similar text editing piece of software 2. Copy and paste the following code in Wordpad or similar: <?php define('IN_PHPBB', true); $phpbb_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup(); page_header('The Chat Room'); if (!$user->data['is_registered']) { trigger_error('You are not allowed to enter the chat-room.'); } $naam = $user->data['username']; $template->set_filenames(array( 'body' => 'chat.html', )); $template->assign_vars(array( 'NAAM' => $naam)); page_footer(); ?> 3. Save the file as chat.txt 4. Change the extension of the file to chat.php 5. Upload the file to your server ensuring that it is placed in the same directory where the phpBB index.php file is located 6. Create a new file in Wordpad or similar and paste the following code ensuring that XXXXX is replaced with your room number and the blue servername is identical with that of your own which you may lookup from the Home -> Chat Room Link Code section of your AddonChat control panel. <!-- INCLUDE overall_header.html --> <script type="text/javascript">/*<