
:: PROCHATROOMS - ONE2ONE CMS CHAT (SOCIAL ENGINE)


1) Upload the 'one2one' folder to your 'prochatrooms' root folder (eg. prochatrooms/one2one)


2) Open the Social Engine file 'header.php' and scroll down to line 88 which looks like, 


  // USER IS LOGGED IN
  if($user->user_exists != 0) {

  // SET TIMEZONE IF USER IS LOGGED IN
  $global_timezone = $user->user_info[user_timezone];


3) Directly underneath, add the following code, 


  // PRO CHAT ROOMS - One2One CMS Chat
  setcookie("prochatrooms_init", $user->user_info[user_username], 0, "/");


4) Open your Social Engine template file 'header.tpl' and below the <body> tag, add the code below.


{* PROCHATROOMS *}
{if $user->user_exists != 0}
<iframe id="one2one" name="one2one" style="width:0px; height:0px; border: 0px" src="prochatrooms/one2one/?request_chat={$user->user_info.user_username}"></iframe>
{/if}


5) Open your Social Engine template file 'profile.tpl' and scroll down ti lines 133-135 where it says,


  {* SHOW BUTTONS IF LOGGED IN AND VIEWING SOMEONE ELSE *}
  {if $owner->user_info.user_username != $user->user_info.user_username}
    <table class='profile_menu' cellpadding='0' cellspacing='0' width='100%'>


6) Directly underneath, add the code below.


    {* SHOW PROCHATROOMS - One2One CMS Chat *}
	{if $is_online == 1}
	<script language="JavaScript">
	<!--
	var proM = "{$user->user_info.user_username}";
	var proU = "{$owner->user_info.user_username}";
	var proID = "{$owner->user_info.user_id}";
	// -->
	</script>
	<script language="JavaScript" type="text/javascript" src="prochatrooms/one2one/init.js"></script>

      <tr>
      <td class='profile_menu1'><a href="javascript:privChat();"><img src='./images/icons/browsefriends16.gif' class='icon' border='0'>Chat To Me!</a></td>
      </tr>
	{/if}


7) Edit the 'prochatrooms' config.php file as shown below, 


## One2One Module (if installed)

// allows CMS users to contact each other via their profile pages
// with unlimited chat windows for multiple private conversations
// If you have the flash webcam module installed, the chat windows 
// will include audio/visual flash webcams too.

$enable_one2one = "1"; // 0 No, 1 Yes

// enter your content system

$one2one_CMS = "4"; // 0 Default (none), 1 phpFOX, 2 Joovili, 3 osDate, 4 Social Engine, 5 Custom


