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
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
<?php
// 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;
?>
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.
( Enable the Single Sign-On (SSO) feature from your Chatroll’s settings page.
I could not get more support from them.
Best Regards
Hi everyone.
I integrated the following code with the related changes (code) and apparently the chat works.
If I click on the driver’s profile, I am sent back to the chat site https://chatroll.com/ and not to the driver’s profile.
Thanks for a possible reply
<? // Chatroll Single Sign-On (SSO) Parameters
$userinfo= Auth::$userinfo;
$uid = $userinfo->pilotid; // Current user id
$uname = Auth::$userinfo->firstname.’ ‘.Auth::$userinfo->lastname; // Current user name
$ulink = url(’/profile/view/'.$userinfo->pilotid); // Current user profile URL (leave blank for none)
$upic = PilotData::getPilotAvatar($pilotid); // Current user profile picture URL (leave blank for none)
if (Auth::$userinfo->pilotid==1) // Is current user a moderator?
{ $ismod = 1; }
else
{ $ismod = 0; }
$sig = md5($uid . $uname . $ismod . ‘0m9lz2hd44k2duyh’);
$ssoParams = ‘&uid=’ . $uid . “&uname=” . urlencode($uname) . “&ulink=” . urlencode($ulink) . “&upic=” . urlencode($upic) . “&ismod=” . $ismod . “&sig=” . $sig;
?>