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 |
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 |
have you tried the shoutbox of dolphin? so much to do.... |
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 |
than i guess you have to create a php block and add the varibles in it. so much to do.... |
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 |
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.
|
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 |
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 |
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 |
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.... |
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 |
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.... |
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.... |
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 |
This doesn't work, because there is no valid php block that works. |
You need to install deanos tools and then create a php block with it. so much to do.... |
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?
|
|
So everything is running smooth, tussery how did u pull the members pics through, what did you change in your code please?
|
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 |
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
|
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.... |
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.
|
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.... |
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.
|
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.... |
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.... |
Thank you for taking the time to show me this, much appreciated, +rep |
yeah i pasted the wrong thing,,,, oops
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 |
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 |
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 |