News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

SMF 2.0 RC5 and Prochatrooms Integration Help

Started by MoeZ, March 02, 2011, 12:55:51 PM

Previous topic - Next topic

MoeZ

Hello, I tried to integrate prochatrooms 4.0.2 and SMF 2.0 RC5 to login the smf users only ( setting prochatrooms custom cms value to 1 ). Although it was work while I was using RC4. But now while while using RC5, it does not work at all.

While I did all the instrucitions and checked all the code lines. It had no error and work well.

I also did the same way at RC5. But, always show this error massage.

Members Only. Please login via the website.


Is it because of SSI.php or updated security patch?

Please someone kindly help me how  to integrate RC5 with prochatrooms because its absolutely need for my site.

Thank you all.

Kindred

???   Well, is there a bridge for "prochatrooms" If so, who provides it? URL?

I'd suggest checking with the author of the bridge.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MoeZ

#2
Hello, It does not support bridge. However it has manual configuration about integration with smf 2.0.

I tried all the instructions included in this topic.

http://www.simplemachines.org/community/index.php?topic=309057.0

Unfortunately, still having a problem with smf 2.0 RC5.

Kindred

and, after upgrading to RC5, did you re-apply ALL the edits?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MoeZ

yes..., I did.

I also tried by uninstalling and reinstalling prochatrooms including its databae. But, still having that problem.

:(


MoeZ

#5
Here is my prochatrooms cms.php and

<?php
#############################################
# Author: Pro Chatrooms
# Software: Pro Chatrooms
# Url: http://www.prochatrooms.com
# Support: [email protected]
# Copyright 2007-2009 All Rights Reserved
include("globals.php");
require_once(
'/*******/*******/public_html/SSI.php');
#############################################


// INTEGRATION NOTES FOR CUSTOM DEVELOPERS

// You can insert your existing CMS user Global values into the
// login procedure. Simply replace the values $_FOO['username']
// and $_FOO['userid'] with your SESSION, COOKIE or MySQL results.

// Example:

// define('C_CUSTOM_USERNAME',$_FOO['username']); // username
// define('C_CUSTOM_USERID',$_FOO['userid']); // userid

// You will be able to link directly to the chat room by adding
// an <a href> link to your web pages like shown below and only
// registered users will be able to auto-login to your chat room.

// <a href="http://yoursite.com/prochatrooms">Chat Room</a>


## CUSTOM INTEGRATION SETTINGS ##############


// Enable custom login details

define('C_CUSTOM_LOGIN','0'); // 0 OFF, 1 ON


// Enter your CMS Global values below

define('C_CUSTOM_USERNAME',$_user_info['name']); // username
define('C_CUSTOM_USERID',$_user_info['id']); // userid


## DO NOT EDIT BELOW THIS LINE ##############


// if remote login via CMS

if($remotely_hosted){

// check username isset
if(!isset($_COOKIE["uname"])){

header("Location: error.php");
die;

}

// if userid is null, assign userid
if(!isset($_COOKIE["uid"])){

$uid='-1';

}else{

$uid=$_COOKIE["uid"];

}

}

// if custom login

if(C_CUSTOM_LOGIN){

// assign username
$uname = C_CUSTOM_USERNAME;

if(!C_CUSTOM_USERID){

// userid empty
$uid = '-1';

}else{

// assign userid
$uid = C_CUSTOM_USERID;

}

}

// if default login

if(!$remotely_hosted && !C_CUSTOM_LOGIN){

?>

<SCRIPT LANGUAGE="JavaScript1.2">
<!--
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
  endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
    return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return null;
}
if(GetCookie("login") == null){
window.location="error.php";
}
// -->
</SCRIPT>

<?php }?>



Here is config.php

<?php
###########################################
# Author: Pro Chatrooms
# Software: Pro Chatrooms
# Url: http://www.prochatrooms.com
# Support: [email protected]
# Copyright 2007-2009 All Rights Reserved
#
# Pro Chat Rooms and all of its source code/files are protected by Copyright Laws.
# The license for Pro Chat Rooms permits you to install this software on a single domain only (.com, .co.uk, .org, .net, etc.).
# Each additional installation requires an additional software licence, please contact us for more information.
# You may NOT remove the copyright information and credits for Pro Chat Rooms unless you have purchased the 'Remove Branding' plugin.
# Pro Chat Rooms is NOT free software - For more details http://www.prochatrooms.com/software_licence.php
###########################################

#### PRO CHATROOMS CONFIGURATION ##########

#
## Domain Name
#

// the url of your website

$domain_name = "http://itfriendships.org";

#
## Chat Room Name
#

// the name of your chat room

$chatroom_name = "iT Friends' Chat";

#
## Chat Room Url
#

// the url to your chat room

$chatroom_url = "http://www.itfriendships.org/chat/";

#
## Enable/Disable Chat Room
#

// allows the admin to close the chat room
// during maintenance down time. Your users
// will not be able to login when set to closed.

$chatroom_maintenance = '1'; // 0 Closed, 1 Open

#
## Chat Room Logo
#

// appears on login/register/lost password pages
// Upload your images to 'prochatrooms/images' or
// use an url: http://yoursite.com/your_logo.jpg

$chatroom_logo = "images/your_logo.jpg";

#
## Chat Room Languages
#

// allows the choice of multiple languages
// to translate the language files open the
// file 'languages/blank.php' with your text
// editor, translate the text inside then
// save the file as 'german.php'and enter
// the text "german", below "english",

$default_lang = 'english';

$chatroom_languages=array(
"english", // do not edit
);

#
## Chat Room Genders
#

// allows the user to choose their gender
// on the chat room login page. this appears
// as their default icon next to their messages
// if no gender is choosen, default icon will be displayed

// enable/disable feature

$enable_login_genders = '1'; // 0 No, 1 Yes

$chatroom_gender=array(
"Select", // do not edit
"Male",
"Female",
"Couple",
);

#
## Admin Email Address
#

// administration email address

$chatroom_email = "[email protected]";

#
## Webcam Module (if installed)
#

// enable webcam module

$enable_webcams = "0";

// sets max cams users can view

$max_cams = "10";

// assigns who is able to view/use the webcams

$webcam_access = "0"; // 0 Guests & Members, 1 Members Only

// to help secure webcam streams
// enter a unique word or phrase

$secure_stream = "abc123";

#
## eCredits Module
#

// When enabled, every time a user opens a private chat window,
// the users eCredits will be deducted until they reach zero.
// When a user has no eCredits remaining and tries to private
// chat with another user, the user will be re-directed to a custom
// purchase page to buy more credits. Users are limited to one
// private chat window at any time. Admins, Moderators and Speakers
// do not require any eCredits to private chat with other users.

// enable eCredits module

$eCredits = '0';  // 1 Enable, 0 Disable

// award free eCredits on login (for guests)

$eCredits_bonus = '5'; // 1 eCredit = 1 minute

// award free eCredits on signup (for new members)

$eCredits_signup = '30'; // 1 eCredit = 1 minute

// your paypal email address
// for accepting users eCredit payments

$eCredits_paypal = '[email protected]';

// paypal currency

$eCredits_currency = 'USD';

// currency character

$eCredits_char = '$';

// sell eCredits package
// units per single cost

$eCredits_package = '10';

// url to your eCredits payment/checkout page
// default template can be found in the folder,
// 'prochatrooms/templates/template.credits.php'

$eCredits_page = 'credits.php';

#
## 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 = "0"; // 0 No, 1 Yes

// enter your content system

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

#
## Virtual Credits (if installed)
#

// allows chat room users to earn virtual
// credits when logged into the chat room

$enable_virtual_credits = '0'; // 0 No, 1 Yes

#
## Login Gallery (if installed)
#

// shows current members photos on login page

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

#
## Image Share Module (if installed)
#

// allows users to upload and share images
// to all users in room or privately

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

#
## Games Module (if installed)
#

// allows users to play 1 player games
// inside the chat room

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

#
## Moderated Chat Module (if installed)
#

// sets moderated chat function
// allows moderators/admins to approve messages
// before they are displayed in the chat window

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

// enables moderated chat in any
// of the chat rooms listed below
// note: use lowercase characters only

$enable_modchat=array(
"theroomname",
"theroomname",
"theroomname",
"",
"",
);

#
## Invisible Admin Module (if installed)
#

// sets invisible admin mode
// invisible admins will not appear
// in userlist or room number count.
// admins can type messages, ban users
// and whisper whilst logged in as invisible

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

#
## Chat Room Events Module (if installed)
#

// sets open/close time of chat room
// allows admins to set multiple day/times

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

$event_start = "0"; // start time hour (0-24 hour)
$event_stop = "24"; // stop time hour (0-24 hour)

$event_day=array(
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
);

#
## Advertising Module 1 (if installed)
#

// enables auto rotation of adverts
// to the left of the main chat screen

$enable_adverts = "0"; // 0 No, 1 Yes
$refresh_adverts = "3600"; // seconds

#
## Advertising Module 2 (adbot)
#

// enables text link advertising in chat windows
// these can be set in the admin control panel

$enable_adverts = "0"; // 0 No, 1 Yes
$show_adverts = "900"; // every XXX seconds (900 = 15 minutes)

#
## Chatroom Admins
#

// set users as chatroom admins
// admins can access the admin control panel
// admins can ban moderators and users
// NOTE: use lowercase characters only
// example: john (NOT John)

$chatroom_admins=array(
"admin",
"admin2",
"admin3",
);

#
## Chat Room Admin Area Password
#

// sets the admin login password for the
// Pro Chat Rooms admin area. Only admins
// can login to the chat room admin area.

$admin_password = "*********"; // password

#
## Chat Room Admin Symbol
#

// displays the admin symbol next to
// admins name in chat room userlist

$admin_symbol = "(A)";

// sets a color for the username which
// shows in the chat rooms userlist

$admin_color="red"; // red, blue, green, etc

#
## Chat Room Moderators
#

// set users as chatroom moderators
// moderators can ban chat room users
// moderators cannot ban admin users
// NOTE: use lowercase characters only
// example: john (NOT John)

$chatroom_moderators=array(
"mod1",
"mod2",
"mod3",
);

#
## Chat Room Moderator Symbol
#

// displays the moderator symbol next to
// moderators name in chat room userlist

$moderator_symbol = "(M)";

// sets a color for the username which
// shows in the chat rooms userlist

$moderator_color="orange"; // red, blue, green, etc

#
## Chat Room Speakers
#

// auto approves all speakers messages
// for any chat room usernames below
// NOTE: use lowercase characters only
// example: john (NOT John)

$chatroom_speakers=array(
"speaker1",
"speaker2",
"speaker3",
);

#
## Chat Room Speakers Symbol
#

// displays the speakers symbol next to
// speakers name in chat room userlist

$speakers_symbol = "(S)";

// sets a color for the username which
// shows in the chat rooms userlist

$speaker_color="green"; // red, blue, green, etc

#
## Allow Guest Access
#

// allow guests to login to your chat room?
// this option appears on the chat login page

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

#
## Guest Access Features
#

// allow guests to IM other users
$enable_guest_im = "1";  // 0 No, 1 Yes

// allow guests to send messages in chat room
$enable_guest_send_messages = "1";  // 0 No, 1 Yes

// allow guests to share files
$enable_guest_share_files = "1";  // 0 No, 1 Yes

// allow guests to whisper
$enable_guest_whisper = "1";  // 0 No, 1 Yes

// allow guests to ring the support bell
$enable_guest_ringbell = "1";  // 0 No, 1 Yes

// display a customisable welcome message informing guests that some
// chat room features may not be available until they have registered

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

#
## Chat Room Integration (for CMS only)
#

// if the chat room is integrated with
// a content management system, enter 1
// if the chat room has been installed as a
// stand alone unit, enter 0

// NOTE: if the chat room is integrated with a CMS
// guests will not be allowed to login (see above).

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

#
## Chat Room Profile Integration (optional)
#

// the Pro Chat Room auto generates a mini user profile
// for all users (even when integrated with existing CMS)

// settings for default profile system
// to edit the header/footer design for the default profiles
// open the file 'profiles/header.php' and 'profiles/footer.php'

$min_age = "16"; // sets the min age for profile
$max_age = "100"; // sets the max age for profile
$max_image_size = "100000"; // sets the max image size for uploading images

// edit settings for the profile url, accepts 2 formats
// example: http://www.yoursite.com/profile.php?user=John
// example: http://www.yoursite.com/profile.php?user=0123

$profiles_enabled = "1"; // 0 No, 1 Yes
$profile_url = "profiles/?gud=";
$profile_id = "0"; // 0 Usernames (eg. John), 1 ID"s (eg. 0123)

#
## Badword Filter
#

// replaces badwords with alternative text
// NOTE: words are CaSe Sensitive

$badword_filter=array(
"******",
"******",
"wank",
"******",
);

$badword_replacement = "@!#%";

#
## Chat Room Bans
#

// Ban users by userIP or Username

$ban_method = "1"; // 0 userIP, 1 Username

#
## Chat Screen Text Fonts
#

// displays font style options

$cff=array(
"Arial",
"Arial Black",
"Comic Sans MS",
"Courier New",
"Georgia",
"Impact",
"Tahoma",
"Times New Roman",
"Verdana",
);

#
## Chat Screen Text Size
#

// displays font size options

$cfs=array(
"12",
"14",
"16",
"18",
"20",
"22",
);

#
## Show Last Messages
#

// display previous chat room messages

$show_last_messages = '0'; // 0 No, 1 Yes

// define how many messages to show

$last_messages = '10';

#
## Hide Userlist
#

// prevents the userlist being shown in the chat room
// displays only the main chat window (with all options)

$disable_userlist = '0'; // 0 No, 1 Yes

#
## Hide 'Disconnect' button
#

// hides the disconnect button

$disable_disconnect = '0'; // 0 No, 1 Yes

#
## Allow Users To Create Rooms
#

// allows your users to create
// their own public chat rooms

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

// set the expiry time (in seconds) for
// all user created rooms when empty

$delete_custom_rooms = "60"; // seconds

// set the maximum number of rooms any user
// can create (prevents room creation spamming)

$max_rooms = '100';

#
## Enable Select Room
#

// Allows a user to login to a chat room of their choice
// on the Pro Chat Rooms login page. If disabled, the
// user will login into the default Lobby room.

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

#
## Force Login
#

// To force users to login to a specific chat room add the
// following code to the end of the Pro Chat Rooms url.
// ?room=ROOMNAME
// EG. http://www.yoursite.com/prochatrooms/?room=Lounge

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

#
## Single Room
#

// Allows the chat room to be used as single room

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

#
## Enable Audio Sounds
#

// Enables audio alerts when
// user enter/exits chat room

$enable_audio = "1"; // 0 Off, 1 ON

#
## Enable Entry/Exit Sounds
#

// enables the doorbell and door close SFX
// when a user enters or leaves the room

$enable_ee_sfx = "1"; // 0 Off, 1 ON

#
## Enable Beep On New Messages
#

// Enables beep audio effect for
// every new message in chat room

$enable_beep = "1"; // 0 Off, 1 ON

#
## Enable Support Bell
#

// Allows users to alert others
// by ringing a support bell
// Audio must be enabled above

$enable_bell = "1"; // 0 Off, 1 ON

#
## Enable Sound Effects
#

// Allows users to play sound
// effects in the chat room

$enable_SFX = "1"; // 0 Off, 1 ON

#
## Disable Chat Transcripts
#

// Prevents users from viewing chat transcripts
// Only admins can view transcripts via the admin area.

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

#
## Disable the Help file
#

// prevents users from viewing
// the chat room help file

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

#
## Private Chat
#

// enables/disables private chat options

$private_chat = "1"; // 0 Off, 1 ON

#
## Private Chat - Permitted Users
#

// restricts private chat access
// to selected users only

$restrict_PM = '0'; // 0 No, 1 Yes

// enter approved usernames below
// NOTE: use lowercase characters only
// example: john (NOT John)

$pm_users=array(
"admin",
"admin2",
"admin3",
);

#
## Private Whispers
#

// enables/disables private whisper options

$private_whispers = "1"; // 0 Off, 1 ON

#
## define default font color
#

// sets the default color for the user text
// use color formatting '#000000' etc

$def_fontColor = "#000000";

#
## Chat Room Background Colour
#

// sets the background colour for the chat window
// use color formatting '#FFFFFF' etc

$background_color = "#FFFFFF";

#
## Maximum Chat Room Users
#

// sets the maximum number of chat room
// users that are allowed to login at any
// one time. Displays 'chat room full' message
// when maximum chat room users number is exceeded.

$max_users = "99999";

#
## Maximum Message Length
#

// sets the maximum length of any message
// that a chat user is allowed to post

$max_length = "250"; // characters

#
## Flood Filter
#

// prevents users flooding the chat rooms
// with messages, requires users to wait
// XXX number of seconds between posts

$flood_filter = "1"; // seconds

#
## Shout Filter
#

// prevents users typing messages in capitals.
// eg. 'HELLO' becomes 'hello'

$shout_filter = "0"; // 0 Off, 1 ON

#
## Capital Letters
#

// converts each message to start with a capital letter
// works for a-z (non-english characters are not supported)

$message_capitals = "0"; // 0 Off, 1 ON

#
## Menu Posistion
#

// sets the posistion of the user menu
// to appear left of the chat window or
// above the messagebar

// 0 - Left of the chat screen
// 1 - Above the messagebar

$menu_position = "1";

#
## Refresh Chat Screen
#

// this setting controls bandwidth & performance
// set low for fast performance, higher bandwidth (eg. 1000)
// set high for slower performance, lower bandwidth (eg. 5000)

// sets speed for refreshing chat room messages
// example: every 1 seconds = 1000 milliseconds
// example: every 5 seconds = 5000 milliseconds

$refresh_chat_screen = "1000"; // milliseconds

#
## Refresh User List
#

// sets speed for refreshing user list
// example: every 5 seconds = 5000 milliseconds

$refresh_userlist = "5000"; // milliseconds

#
## User Login/Logout Update
#

// auto checks users login/logout status
// min 90 seconds - max unlimited

$usr_update = "90"; // seconds

#
## Silence User
#

// sets the 'silenced' duration for
// users until they can send messages

$silence_user = '30'; // seconds

#
## Idle Status
#

// user status will be set to idle if last
// message sent is longer than this time

$set_idle_time = '300'; // seconds (300 = 5 min)

#
## Auto Logout
#

// if users status is idle, they will be auto logged
// out after the auto logout period has expired

$set_auto_logout_time = '600'; // seconds (600 = 10 mins)

#
## Max Messages
#

// sets the total messages to display
// low numbers help improve performance
// min 20 messages - max unlimited

$max_messages = '20'; // messages

#
## Server Time
#

// time sync for your MYSQL database.

$server_time = "+0"; // +12/-12 hours

#
## Browser Charset
#

// browser character set.

$brower_char = "UTF-8"; // UTF-8, iso-8859-1

#
## Remote Hosted Chat Room
#

// enable this option if you are
// remotely hosting the chat room
// on a Pro Chat Rooms web server

$remotely_hosted = '0'; // 0 No, 1 Yes

#
## Chat Room Version
#

// do not edit below

include("version.php");

###########################################

?>

Kindred

define('C_CUSTOM_LOGIN','0'); // 0 OFF, 1 ON


maybe?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MoeZ

no sir,  :(

I tried both 1 and 0 .

Is it because of SSI.php?

Advertisement: