chatroll as a boonex lobby chat??

i was looking for a small chatbox that would intergrate into the front page of my boonex site,, something small that linked to profiles on my site, kinda like ning chat.. and i looked into chatroll and they have a php code,, now my question is can this code be edited to pull profile info from my users on my site?

 

<?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 . 'ph4ktuf1awkd03gn');
$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/thegettogether?id=LMn8Wq__mwa&platform=php<?= $ssoParams ?>&w=$0' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' allowtransparency='true'></iframe>

 

it looks like it could easly,, i just am not sure where to start

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 26 Nov 2011

here is the rest of the instructions 

 

Copy (Ctrl-C) the following PHP template code:
<?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 . 'ph4ktuf1awkd03gn'); $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/thegettogether?id=LMn8Wq__mwa&platform=php<?= $ssoParams ?>&w=$0' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' allowtransparency='true'></iframe>

Paste (Ctrl-V) the code where you want Chatroll to appear in your PHP template.
2.
To make the Module bigger or smaller:

Change the 'width' and 'height' values of the Chatroll <iframe> tag.

3. 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.

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 26 Nov 2011

have you tried the shoutbox of dolphin?

so much to do....
Quote · 26 Nov 2011

 

have you tried the shoutbox of dolphin?

 yes i have,, we dont like it do to it does not show who is online,, or link back the the users profiles

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 26 Nov 2011

than i guess you have to create a php block and add the varibles in it.

so much to do....
Quote · 26 Nov 2011

 yes!!.. but i need to know what variables to put in and where

than i guess you have to create a php block and add the varibles in it.

 

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 26 Nov 2011

 

 yes!!.. but i need to know what variables to put in and where

than i guess you have to create a php block and add the varibles in it.

 

 

You do know this doesn't belong here?. 
"Tips, Tricks and Sharing"
It's not a place to asking questions.

Quote · 26 Nov 2011

well i didnt see the place for "asking questions"..   it would be a "tip" and a "share" once we get it to work.

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 26 Nov 2011

Looks like someone else moved it.  I'll move it back once everything is working.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 26 Nov 2011

 ty sir,, im still new to these forums, ill get the hang of them and how you guys run things soon.

Looks like someone else moved it.  I'll move it back once everything is working.

 

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 26 Nov 2011

This chatroll doesn't pull data actually it doesn't show anything if you put the value in $uname =

anything for example john. It will not show john. You can put anything but it will show "me" its default value.

Its a crap and its not worth investing money, Its server are down many times a day.

If anyone else want to try than go ahead and try to get it to work.

so much to do....
Quote · 27 Nov 2011

it will work and does,, you have to go in settings and set the single sign on,, and i got it to pull some data,, so i know it will work,, far as the servers being down,, that was just today and i feel it is a fluke

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 27 Nov 2011

I have tried the SSO settings but it not seem to work for me can you show me any example where it is pulling some values?

so much to do....
Quote · 27 Nov 2011

Hi! I am replying after a long time, but i thought i should share this with you all.

This chatroll worked when i tried it yesterday. I don't know why it didn't worked before, i don't even remember what i had done before. So, here it is.

put this in a php block

 

$iID = getLoggedId();

$uid = $iID;

$uname = getNickName($iID);

$ulink = getProfileLink($iID);

$upic = get_member_thumbnail($iID, 'none');

$ismod = 0;

$sig = md5($uid . $uname . $ismod . 'ii2fu1lw4uo1elk1');

$ssoParams = '&uid=' . $uid . "&uname=" . urlencode($uname) . "&ulink=" . urlencode($ulink) . "&upic=" . urlencode($upic) . "&ismod=" . $ismod . "&sig=" . $sig;

echo '<div align="center"><iframe width="450" height="350" src="http://chatroll.com/embed/chat/yoursite?id=yourid&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></div>';

You need to signup at chatroll and generate your own code with your id and put that in above code. Its little tricky but you need to do this. Remember to use this code only the code chatroll provide will not work.

Good luck :)

 

so much to do....
Quote · 10 Feb 2012

IT WORKS NOW!!!.. I JUST BOUGHT THE 50 MEMBERS PACKAGE AND IT INTEGRATES!!

 

working on getting ti to pull members pics still, someone should move this to the tips section now

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 11 Feb 2012

This doesn't work, because there is no valid php block that works.

Quote · 21 Apr 2012

You need to install deanos tools and then create a php block with it.

so much to do....
Quote · 21 Apr 2012

I have tried the following:

 

$iID = getLoggedId();

$uid = $iID;

$uname = getNickName($iID);

$ulink = getProfileLink($iID);

$upic = get_member_thumbnail($iID, 'none');

$ismod = 0;

$sig = md5($uid . $uname . $ismod . 'ii2fu1lw4uo1elk1');

$ssoParams = '&uid=' . $uid . "&uname=" . urlencode($uname) . "&ulink=" . urlencode($ulink) . "&upic=" . urlencode($upic) . "&ismod=" . $ismod . "&sig=" . $sig;

echo '<div align="center"><iframe width="450" height="350" src="http://chatroll.com/embed/chat/yoursite?id=electriccupid?id=Kde3Bl4ELwM=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></div>';

 

using my own information from the site and this comes up with an error, can someone check this please?

 

I changed the sig info, site id and username and still comes up with an error?

Quote · 21 Apr 2012

All good worked it out.

Quote · 21 Apr 2012

So everything is running smooth, how did u pull the members pics through, what did you change in your code please?

Quote · 5 May 2012

add     $upic = get_member_pic($iID);     line to /inc/design.inc.php

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 May 2012

Where abouts in the inc file do I add it? Thanks for the reply.

 

 

Also which line do you've for the pic:

 

$upic = get_member_thumbnail($iID, 'none');

or

$upic = get_member_icon($iID);

 

Thanks

Quote · 6 May 2012

Don't you remember the code i gave you this code will go in chat roll php block. There is a function i gave you to include in design.inc.php name "get_member_pic". Please gave that one to him because i don't remember the code now.

add     $upic = get_member_pic($iID);     line to /inc/design.inc.php

 

so much to do....
Quote · 6 May 2012

When I insert that code I get an error in admin, im just not sure how to add it exactly or to that matter where exactly in the page too add it. Everything else on the chat works fine, just wants to get the members pics loading.

So am I too understand that I should use :

 

$upic = get_member_thumbnail($iID, 'none'); In the top half of the script and in the design inc file use

$upic = get_member_pic($iID); - Just need to know how and where to add.

Thank you to both of your help.

Quote · 6 May 2012

These will not work.

tussery will give you the code you have to put in your design.inc.php file.

When I insert that code I get an error in admin, im just not sure how to add it exactly or to that matter where exactly in the page too add it. Everything else on the chat works fine, just wants to get the members pics loading.

So am I too understand that I should use :

 

$upic = get_member_thumbnail($iID, 'none'); In the top half of the script and in the design inc file use

$upic = get_member_pic($iID); - Just need to know how and where to add.

Thank you to both of your help.

 

so much to do....
Quote · 6 May 2012

This code here: $upic = get_member_pic($iID);


I don't know how to add that piece of code to the design.inc.php file.

Quote · 6 May 2012

 lol you don't have to add that code there. Wait i will get you the code and will explain you how to do it.

This code here: $upic = get_member_pic($iID);


I don't know how to add that piece of code to the design.inc.php file.

 

so much to do....
Quote · 6 May 2012

okay here it goes. add this to your design.inc.php file at line 210 after this get_member_icon

function get_member_pic( $ID ) {

    return $GLOBALS['oFunctions']->getMemberAvatar( $iId, $sType = 'small' );

}

and put this in the chatroll php code

$upic = get_member_pic($iID);

replacing

$upic = get_member_thumbnail($iID, 'none');

so much to do....
Quote · 6 May 2012

Thank you for taking the time to show me this, much appreciated, +rep

Quote · 6 May 2012

 yeah i pasted the wrong thing,,,, oops Innocent

Don't you remember the code i gave you this code will go in chat roll php block. There is a function i gave you to include in design.inc.php name "get_member_pic". Please gave that one to him because i don't remember the code now.

add     $upic = get_member_pic($iID);     line to /inc/design.inc.php

 

 

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 6 May 2012

this has been working fine for YEARS now. Then today all of a sudden anyone who joins, or changes their avatar does not have a functioning avatar in the chat. something in the way the site started saving the avatars as of yesterday has broke it. But I made NO CHANGES to the site at all. that is what i do not get, and people who have not changed their avatars are still working fine,,, any help or ideas maybe??

anyone know where prashank is lately?  I could sure use his help with this.

MY SITES http://viptopia.net general social networking | http://www.rangerschat.com/ niche site
Quote · 7 Nov 2014

Check out the module I got made from modzzz it shows who is online, there a legend, its liked to 3 groups that was tweeked with a cronjob, it shows youre friends with the yellow star, the red nick are the admins and moderators...members really like

than i guess you have to create a php block and add the varibles in it.

 

Mike
Quote · 9 Nov 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.