Jump to content

Chatroll Php Chat

Recommended Posts

Hello Im using chatroll chat in iframe tags and it works as well.

Chatroll also has php application but i cant figure out howto make it work in my website. The code of Php Application

// Chatroll Single Sign-On (SSO) Parameters
$uid = 1;				   // Current user id
$uname = 'test';		    // Current user name
$ulink = 'http://example.com/profile/test';   // Current user profile URL (leave blank for none)
$upic = '';				 // Current user profile picture URL (leave blank for none)
$ismod = 0;				 // Is current user a moderator?
$sig = md5($uid . $uname . $ismod . 'dwcbbkhmrlldo28m');
$ssoParams = '&uid=' . $uid . "&uname=" . urlencode($uname) . "&ulink=" . urlencode($ulink) . "&upic=" . urlencode($upic) . "&ismod=" . $ismod . "&sig=" . $sig;
<iframe width='450' height='350' src='http://chatroll.com/embed/chat/thy-crew?id=B0mMF3LTJ7V&platform=php<?= $ssoParams ?>&w=$0' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' allowtransparency='true'></iframe>

I just could not figure out what is the variables of $uname $ulink $upic

In the chatroll website they say:

To enable Single Sign-On (SSO) and integrate with your PHP application's user profile system:

(a) Assign correct values for the uid, uname, ulink and upic variables.

(B) Enable the Single Sign-On (SSO) feature from your Chatroll's settings page.

I could not get more support from them.

Best Regards

Share this post

Link to post
Share on other sites

Hi i hope i didnt saw it to late :)

I created a module for you so you can use it with phpvms

you can download it for here http://www.baggelis.com/chatroll.zip

step 1

edit chatroll.tpl and replace my html with yours at

<iframe width='450' height='350' src='http://chatroll.com/embed/chat/eglc?id=6NhhxB113LP&platform=php<?= $ssoParams ?>&w=$0' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' allowtransparency='true'></iframe>
<div style='font-size:0.9em;text-align:center;'><a href="http://chatroll.com/solutions/live-chat-software">PHP Live Chat Software</a></div>

step 2

save and just copy the chatroll folder into your modules folder and the tpl file into the templates folder that is located in /core/templates and make a link to http://www.yoursite....ex.php/chatroll and thats all

if you still need it tell me so i can add the functionality whoever is admin to be a moderator as well or if you need any help

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now