Ok so I am trying to integrate Prochatrooms with community builder and having a rough time. I am posting the contents of their integration file and all the info they have given me and hopefully someone can help with what I need to fill in and where....
Their instructions are as follows...
_______________________________________________________________
» Integration Instructions For Pro Chat Rooms - JOOMLA 1.5
1) Download the integration file, unzip and upload to your Joomla root folder (eg.
yoursite.com/prochatrooms.php
)
2) Open the file 'prochatrooms/db.php' and replace,
session_start();
With this,
session_name('prochat');
session_start();
3) Open the file 'prochatrooms/cms.php' and edit the settings as shown below,
## CUSTOM INTEGRATION SETTINGS ##############
// Enable custom login details
define('C_CUSTOM_LOGIN','1'); // 0 OFF, 1 ON
// Enter your CMS Global values below
define('C_CUSTOM_USERNAME',$_SESSION); // username
define('C_CUSTOM_USERID',$_SESSION); // userid
4) Login to your Joomla admin area and follow the steps below to create the chat room login link.
a) Click the image 'Menu Manager'.
b) Decide which menu will display your chat room link and click the 'Edit Menu Items' link.
c) Now click the 'New' link in the top right hand corner of the web page.
d) Under the sub heading 'External Link'.
e) For the Title and Alias value, enter 'Chat Room',
f) For the Link value, enter 'prochatrooms.php'
g) Set 'Display in' to 'User Menu',
h) Set 'Parent Item' to 'Top',
i) Set 'Published' to 'Yes',
j) Set 'Access Level' to 'Registered',
k) Set 'On Click, Open in' to 'Parent Window With Browser',
l) Then click the link 'Save'.
________________________________________________________________________________
The integration file they mention is a zip containing prochatrooms.php and the contents of that file are....
_______________________________________________________
<?php
###########################################
# PRO CHAT ROOMS #
#
www.prochatrooms.com
#
# Joomla CMS Integration #
# FILE: prochatrooms.php #
###########################################
// Set flag that this is a parent file
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$user = JFactory::getUser();
$username = $user->username;
$id = $user->id;
$session = JFactory::getSession();
$session->close();
ini_set("session.save_handler", "files");
session_name('prochat');
session_start();
session_register('username');
session_register('userid');
$_SESSION = $username;
$_SESSION = $id;
header('Cache-Control: public');
header('Location: prochatrooms/');
?>
____________________________________________________________________
The part I am having the biggest issue with is ...
// Enter your CMS Global values below
define('C_CUSTOM_USERNAME',$_SESSION); // username
define('C_CUSTOM_USERID',$_SESSION); // userid
How would I fill out these two lines for community builder/joomla 1.5?