| Author |
Message |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Tue Apr 14, 2009 8:09 pm |
|
Hi all and thanks for looking at this code, I'm trying to add this to a php block so people can see who is in my chat room here is the code I was given.
<script type="text/javascript" src="http://videocallroom.oovoo.com/oovoomelink/codelib/oovoorooms.js"></script>
<script src='http://java.com/js/deployJava.js'></script>
<script type='text/javascript'>
roomProps.roomID = '62AAF8B4E7AD4915E04400144F7E8E22';
roomProps.width = '536';
roomProps.height = '445';
roomProps.backgroundColor = '#666666';
roomProps.captionColor = '#FFFFFF';
roomProps.captionText = 'Enter your caption here';
var myRoom=CreateRoom();
</script>
Thanks for taking a look at it. |
|
|
|
 |
Palbin Site Admin

Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
|
Posted:
Tue Apr 14, 2009 8:58 pm |
|
Put the first two script tags in the header and then put the third in your block. |
|
|
|
 |
NeapolitanWorld Involved


Joined: Nov 06, 2005 Posts: 318 Location: Los Angeles, USA
|
Posted:
Wed Apr 15, 2009 12:21 am |
|
Which chat module are you using? |
|
|
|
 |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Wed Apr 15, 2009 3:31 am |
|
It's a chat module used by OOVOO video conferencing company oovoo.com they tell you to paste the code into your html website which I have php nuke. thanks
Hmm is there any way you can write the code of for the php nuke box every thing I tried comes out in error's thanks. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
Posted:
Wed Apr 15, 2009 10:07 am |
|
You try creating a file in the blocks folder named block-Chat.php and put this in it.
| Code: |
<?php
if (stristr($_SERVER['SCRIPT_NAME'], "block-Chat.php"))
{
Header("Location: ../../index.php");
die();
}
$content = '<center>';
$chatbox ="<script type=\"text/javascript\" src=\"http://videocallroom.oovoo.com/oovoomelink/codelib/oovoorooms.js\"></script>\n";
$chatbox .= "<script src='http://java.com/js/deployJava.js'></script>\n";
$chatbox .= "<script type='text/javascript'>\n";
$chatbox .= "roomProps.roomID = '62AAF8B4E7AD4915E04400144F7E8E22';\n";
$chatbox .= "roomProps.width = '536';\n";
$chatbox .= "roomProps.height = '445';\n";
$chatbox .= "roomProps.backgroundColor = '#666666';\n";
$chatbox .= "roomProps.captionColor = '#FFFFFF';\n";
$chatbox .= "roomProps.captionText = 'Enter your caption here';\n";
$chatbox .= "var myRoom=CreateRoom();\n";
$chatbox .= "</script> \n";
$content .= $chatbox;
$content .= '</center>';
?>
|
Than go into the ACP and activate the Chat block and put it in the center position.
Where it says Enter your caption here, change that to what ever you want to. |
|
|
|
 |
washbucket Hangin' Around

Joined: Jul 17, 2007 Posts: 39 Location: colorado
|
Posted:
Wed Apr 15, 2009 10:09 am |
|
|
|
 |
|
|
|
|