Integrate SMF 2.0.2 CBOX premium

Started by Mototaxi Peru, September 17, 2012, 01:28:19 PM

Previous topic - Next topic

Mototaxi Peru

Hello dear friends I have reviewed all the community trying to find a way to integrate a PREMIUM CBOX chat to SMF but I failed, but I have had some progress that I would like to help me culmimar integration

I want my cbox chat then appears in the index of my forum and not on the issues

The code I put in the index is:

<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="565" height="493" src="xxxxxxxxxxxxxxxxxx/?boxid=2301954&amp;boxtag=15v5wk&amp;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain2-2301954" style="border:#ababab 1px solid;" id="cboxmain2-2301954"></iframe></div>
<div><iframe frameborder="0" width="565" height="107" src="xxxxxxxxxxxxxxxxx/?boxid=2301954&amp;boxtag=15v5wk&amp;sec=form&amp;nme=<?=urlencode($user_info['username'])?>&amp;nmekey=<?=md5('17f59e913k70ee04'.$user_info['username'])?>
" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform2-2301954" style="border:#ababab 1px solid;border-top:0px" id="cboxform2-2301954"></iframe></div>
</div>


I have put this code in index.template.php forum and spoils me, so put me in Boardindex.template.php and also failure forum.

I would appreciate someone to help me place this code in the index of my forum and not in scrambled topics.

Facts website:

SMF Version: 2.0.2

mashby

Issue has to be here:
<iframe frameborder="0" width="565" height="107" src="xxxxxxxxxxxxxxxxx/?boxid=2301954&amp;boxtag=15v5wk&amp;sec=form&amp;nme=<?=urlencode($user_info['username'])?>&amp;nmekey=<?=md5('17f59e913k70ee04'.$user_info['username'])?>I'm assuming you're already in an echo statement with that code. I have a feeling this won't work either, but it seems to be a little bit more inline with what you're trying to do:
<iframe frameborder="0" width="565" height="107" src="xxxxxxxxxxxxxxxxx/?boxid=2301954&amp;boxtag=15v5wk&amp;sec=form&amp;nme='.urlencode($user_info['username']).'&amp;nmekey='.md5('17f59e913k70ee04'.$user_info['username']).'"I'm not entirely sure what this bit here means:
md5('17f59e913k70ee04'.$user_info['username'])

I'm thinking someone will come along and set us both straight. :)
Always be a little kinder than necessary.
- James M. Barrie

Mototaxi Peru

Quote from: mashby on September 17, 2012, 08:53:25 PM
Issue has to be here:
<iframe frameborder="0" width="565" height="107" src="xxxxxxxxxxxxxxxxx/?boxid=2301954&amp;boxtag=15v5wk&amp;sec=form&amp;nme=<?=urlencode($user_info['username'])?>&amp;nmekey=<?=md5('17f59e913k70ee04'.$user_info['username'])?>I'm assuming you're already in an echo statement with that code. I have a feeling this won't work either, but it seems to be a little bit more inline with what you're trying to do:
<iframe frameborder="0" width="565" height="107" src="xxxxxxxxxxxxxxxxx/?boxid=2301954&amp;boxtag=15v5wk&amp;sec=form&amp;nme='.urlencode($user_info['username']).'&amp;nmekey='.md5('17f59e913k70ee04'.$user_info['username']).'"I'm not entirely sure what this bit here means:
md5('17f59e913k70ee04'.$user_info['username'])

I'm thinking someone will come along and set us both straight. :)



URL of my forum is: hxxp: www.videmax.com / forum [nonactive]

As for the code that will integrate chat is not a simple chatcito, this chat is integrated to SMF to grip the start of session of my users can use the forum and chat with your nick already registered in my database.

Also I will mention that I have tried to put this code chat with mod mod PORTAL and Head and Footer but the issue is that it does not integrate well because if I do that the chat if it appears on my forum but does not detect registered users the database, I have some knowledge of php and the code can not be added directly into the index.template.php by generating a conflito.

Now the problem with this code is that the index error for this line appears:

amp;sec=form&amp;nme=<?=urlencode($user_info['username'])?>&amp;nmekey=<?=md5('17f59e913k70ee04'.$user_info['username'])?>

So what I try to do is create something like a variable (I hope is the right word) in this way:

$cbws_user = $user_info['username'];
$cbws_key = '17f59e913k70ee04'.$user_info['username'];

echo '
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="1075" height="493" src="http://www2.cbox.ws/box/?boxid=2301954&amp;boxtag=15v5wk&#38;sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain2-2301954" style="border:#ababab 1px solid;" id="cboxmain2-2301954"></iframe></div>
<div><iframe frameborder="0" width="1075" height="107" src="http://www2.cbox.ws/box/?boxid=2301954&amp;boxtag=15v5wk&amp;sec=form&amp;nme=<?=urlencode($cbws_user)?>&amp;nmekey=<?=md5( $cbws_key)?> " marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform2-2301954" style="border:#ababab 1px solid;border-top:0px" id="cboxform2-2301954"></iframe></div>
</div>';


Now to put this code in the index of my forum and I get no error in the template or anything but grab the start of session of my forum users.

Those who know PHP will know what I am putting enteder here, I hope your help thanks to all

Additional data'm placing this code in the BoardIndex.template.php

Advertisement: