MyBB Community Forums

Full Version: Cbox integrating
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I really need some help integrating my cbox.
Here is the full cbox code
<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="200" height="305" src="http://www6.cbox.ws/box/?boxid=651298&amp;boxtag=kbbxve&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain6-651298" style="border:#7C7C7C 1px solid;" id="cboxmain6-651298"></iframe></div>
<div><iframe frameborder="0" width="200" height="75" src="http://www6.cbox.ws/box/?boxid=651298&amp;boxtag=kbbxve&amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform6-651298" style="border:#7C7C7C 1px solid;border-top:0px" id="cboxform6-651298"></iframe></div>
</div>
<!-- END CBOX -->

I need some help putting this code in, I don't know where to put it and the user variables it needs.
&amp;sec=form&amp;nme=<?=urlencode($name)?>&amp;nmekey=<?=md5('1gk8h80gmcnha6g4'.$name)?>&amp;pic=<?=urlencode($avatar_url)?>&amp;lnk=<?=urlencode($profile_url)?>&amp;ekey=<?=md5("1gk8h80gmcnha6g4"."\t".$avatar_url."\t".$profile_url)?>
Bump it's been awhile...
What page is this supposed to show up on? And in your second code box what is the full link supposed to do? It seems you only pasted half the link.
(2011-12-28, 12:16 AM)Dennis Tsang Wrote: [ -> ]What page is this supposed to show up on? And in your second code box what is the full link supposed to do? It seems you only pasted half the link.


The code in my second code box is an edit I have to make for my cbox to be integrated and the first one is the current cbox code.

Here's an image of what cbox is saying I should do, but I don't know where to get the variables or where to add the code.
[Image: cbox_by_otakucyrus-d4kgd5c.png]

bump this is very urgent.
In global.php, find:
$plugins->run_hooks("global_end");
After it, add:
$cbox_nme = (!empty($mybb->user['username'])) ? $mybb->user['username'] : 'Guest';
$cbox_nmekey = md5('1gk8h80gmcnha6g4'.$cbox_nme);

And the code you put in your MyBB template (header, footer, index, wherever you want...) is:

<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="200" height="305" src="http://www6.cbox.ws/box/?boxid=651298&amp;boxtag=kbbxve&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain6-651298" style="border:#7C7C7C 1px solid;" id="cboxmain6-651298"></iframe></div>
<div><iframe frameborder="0" width="200" height="75" src="http://www6.cbox.ws/box/?boxid=651298&amp;boxtag=kbbxve&amp;sec=form&amp;nme={$cbox_nme}&amp;nmekey={$cbox_nmekey}" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform6-651298" style="border:#7C7C7C 1px solid;border-top:0px" id="cboxform6-651298"></iframe></div>
</div>
<!-- END CBOX --> 
I actually have a nearly finished plugin for cbox integration. In fact, it already works for everything except username colorization based on groups.
(2011-12-29, 04:53 AM)Dennis Tsang Wrote: [ -> ]In global.php, find:
$plugins->run_hooks("global_end");
After it, add:
$cbox_nme = (!empty($mybb->user['username'])) ? $mybb->user['username'] : 'Guest';
$cbox_nmekey = md5('1gk8h80gmcnha6g4'.$cbox_nme);

And the code you put in your MyBB template (header, footer, index, wherever you want...) is:

<!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="200" height="305" src="http://www6.cbox.ws/box/?boxid=651298&amp;boxtag=kbbxve&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain6-651298" style="border:#7C7C7C 1px solid;" id="cboxmain6-651298"></iframe></div>
<div><iframe frameborder="0" width="200" height="75" src="http://www6.cbox.ws/box/?boxid=651298&amp;boxtag=kbbxve&amp;sec=form&amp;nme={$cbox_nme}&amp;nmekey={$cbox_nmekey}" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform6-651298" style="border:#7C7C7C 1px solid;border-top:0px" id="cboxform6-651298"></iframe></div>
</div>
<!-- END CBOX --> 

I've tried your codes, and I've played with them, and did a lot of stuff, but nothing is working.

I'll release the plugin for this in the next couple days.
Ok, this is the initial Beta release.
http://mods.mybb.com/view/dymy-cbox-chat

Upload the contents of the zip file to your MyBB forum root. Then your cbox_chat.php file will be in your forum root. So if you go to www.yourforumurl.com/index.php and get MyBB's index page, then your chat will be at www.yourforumurl.com/cbox_chat.php and you'll need to add appropriate links into your MyBB templates wherever you should so choose.