The admin of this site helped me with integration code a couple of years ago but I noticed today it doesn't work anymore. I use CBox for a chat box on my website and you guys helped me set it up so the username links to the member's profile from inside the chat box.
So when you hover over a name in the chat box it shows "http://www.rockitpro.com/sf-forum/profile/jc229/" but when clicked it takes you to your own profile because it should show the member's id number instead of his actual screen name. Here is the code:
<?php global $user_ID, $user_identity, $user_login; sp_forum_api_support(); $profile_url = sp_url('profile').$user_login; $avatar = sp_UserAvatar('get=1&context=user', $user_ID); $avatar_url = $avatar->url; ?> <!-- BEGIN CBOX - www.cbox.ws - v001 --> <div id="cboxdiv" style="text-align:center; line-height:0"> <ul><li> <iframe frameborder="0" width="321" height="225" src="http://www5.cbox.ws/box/?boxid=377963&boxtag=6685&sec=main" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 0px solid;" id="cboxmain"></iframe> <iframe frameborder="0" width="321" height="75" src="http://www5.cbox.ws/box/?boxid=377963&boxtag=6685&sec=form&nme=<?php echo urlencode($user_identity)?>&nmekey=<?php echo md5('126lmb67a389eiio'.$user_identity)?>&pic=<?php echo urlencode($avatar_url)?>&lnk=<?php echo urlencode($profile_url)?>&ekey=<?php echo md5("126lmb67a389eiio"."\t".$avatar_url."\t".$profile_url)?>" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 0px solid;border-top:0px" id="cboxform"></iframe> </li></ul> </div></div> <!-- END CBOX -->