Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: eja8170 on September 15, 2016, 12:32:54 AM

Title: cbox integration
Post by: eja8170 on September 15, 2016, 12:32:54 AM
I know that I've seen there's an issue with cbox integration with membership login features. I heard that you can actually use their method for inserting the html of a cbox and modifying slightly. The only issue is there is a field for specifying where "a name as retrieved from your userbase" in that method. needs to be placed. I was wondering if anyone knew what this would be? This may work as a way around the trouble people experience?
Title: Re: cbox integration
Post by: Kindred on September 15, 2016, 12:47:24 PM
what, exactly, is cbox?
Title: Re: cbox integration
Post by: Dhayzon on September 15, 2016, 12:57:47 PM
include('SSI.php');

global  $memberContext, $user_info, $context;
$userID = $user_info['id'];
loadMemberData($userID);
loadMemberContext($userID);//
$avatarimg = $memberContext[$userID]['avatar']['href'];
$user_url = $memberContext[$userID]['href'];
$username_1 = $context['user']['name'];  //$username = $user_info['name']; //mod 1




md5 = xxxxxxxxxxxxxxxxxx;
cboxiD = yyyyyyyyyyyyyyyyy;

echo'

          <iframe frameborder="0"   height="330" width="100%" src="http://www7.cbox.ws/box/?boxid=yyyyyyyy&amp;boxtag=5nd9p8&amp;sec=main" marginheight="0" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain7-yyyyyyyy"  id="cboxmain7-yyyyyyyyyyyyyy">
          </iframe><iframe class="chat-height" frameborder="0"   height="80px" width="100%" src="http://www7.cbox.ws/box/?boxid=yyyyyyyyyyyyy&amp;boxtag=5nd9p8&amp;sec=form&nme='.urlencode($username).'&nmekey='.md5('xxxxxxxxx'.$username).'&pic='.urlencode($avtar_pic).'&lnk='.urlencode($user_url).'&ekey='.md5("xxxxxxxxxxx".chr(9).$avtar_pic.chr(9).$user_url).'" marginheight="2" marginwidth="0" scrolling="no" allowtransparency="yes" name="cboxform7-yyyyyyyyyyy"  id="cboxform7-yyyyyyyyyyyy">
          </iframe>
         ';


work 
http://dhayzon.com/

Title: Re: cbox integration
Post by: Kindred on September 15, 2016, 01:02:06 PM
oh...  it's a chat box.
Title: Re: cbox integration
Post by: eja8170 on September 15, 2016, 06:47:03 PM
I copied the code into my site on a SimplePortal page and specified the XXXXX and YYYY that were specified in the code above but am getting a code saying : "You do not have permission to post on this Cbox. The Cbox may be misconfigured."
Title: Re: cbox integration
Post by: eja8170 on September 19, 2016, 11:07:31 PM
Anyone know anything that works??