User Integration with Cbox Chat
<!-- BEGIN CBOX - www.cbox.ws - v001 --> <div id="cboxdiv" style="text-align: center; line-height: 0"> <div><iframe frameborder="0" width="500" height="133" src="http://www7.cbox.ws/box/?boxid=XXXXXX&boxtag=XXXXXX&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform7-XXXXXX" style="border:#DBE2ED 1px solid;border-bottom:0px" id="cboxform7-XXXXXX"></iframe></div> <div><iframe frameborder="0" width="500" height="867" src="http://www7.cbox.ws/box/?boxid=XXXXXX&boxtag=XXXXXX&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain7-XXXXXX" style="border:#DBE2ED 1px solid;" id="cboxmain7-XXXXXX"></iframe></div> </div> <!-- END CBOX -->
Where I have omitted the the box id and tag with XXXXXX
I proceed to enable the cbox user integration option within my cbox account, and add the segment of integration code to the HTML block, after, $amp;sec=form [code inserted here] "
where I have omitted my private key with XXXXXXXXXXXXX and assume the variable $username grabs the username of the individual logged into my site, and adds it to my registered cbox users.
If anyone has experience integrating concrete5 users with cbox, your advice would be gratefully received because their is virtually no guides out their on the web. Thank you!
I have run into the exact same issue. I have the PHP database variables but cannot get the Chatbox to accept an input for username.
The database is structured this way:
<table name="Users"> <field name="uID" type="I" size="10"> <KEY/> <AUTOINCREMENT/> <UNSIGNED/> </field> <field name="uName" type="C" size="64"> <NOTNULL/> </field>
And Cbox requires that you add this bit of code to their HTML:
I cannot figure out the variable call to replace "$username" in order to make it work. I've tried:
I've also tried all those with both double quotes and `
No matter what I use, when I try to post in the Cbox it tells me that I don't have privileges to do so.
I'm fairly new to PHP but I'm experienced with many other languages so I should be able to understand anything that you suggest.