| Author |
Message |
Mamasita Client

Joined: May 10, 2003 Posts: 40
|
Posted:
Wed Dec 03, 2003 10:21 am |
|
Hello to all,
I'm having a problem creating a module for a chat. this is the code.
| Code: | <?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo"<script type=\\\"text/javascript\\\" language=\\\"JavaScript\\\"src=\\\"http://irc.everywherechat.com:8000/Java/e.js?room=2gether_chat&width=520&height=500&roomstab=false¶mfilename=embedded.prm\\\"></script>";
CloseTable();
include("footer.php");
?> |
When I do click on the module it gives me a blank page. Please, someone tell me what I did wrong.
thanks, Lyly  |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Dec 03, 2003 11:52 am |
|
Try this | Code: | <?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
$index = 0;
OpenTable();
echo "<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://irc.everywherechat.com:8000/Java/e.js?room=2gether_chat&width=520&height=500&roomstab=false¶mfilename=embedded.prm\"></script>";
CloseTable();
include("footer.php");
?> |
|
|
|
|
 |
Mamasita Client

Joined: May 10, 2003 Posts: 40
|
Posted:
Wed Dec 03, 2003 12:23 pm |
|
Thansk, Raven it's working fine now. But the code for the block to display how many users are chatting is not showing...this is the code.
| Code: | <?php
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<script type=\\\"text/javascript\\\" language=\\\"JavaScript\\\"src=\\\"http://www.everywherechat.com/members.asp?room=2gether_chat\\\"></script> ";
?> |
Thanks so much, Lyly  |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Dec 03, 2003 12:29 pm |
|
You have too many \ and some of your text is run together as in the last one. Try this | Code: | | $content = "<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://www.everywherechat.com/members.asp?room=2gether_chat\"></script>"; |
|
|
|
|
 |
Mamasita Client

Joined: May 10, 2003 Posts: 40
|
Posted:
Wed Dec 03, 2003 12:55 pm |
|
Raven, it's not working
The block is empty after I upload it and activate it in the admin. Please, help..thanks
| Code: | <?php
if (eregi("block-Chat.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://www.everywherechat.com/members.asp?room=2gether_chat\"></script>";
?>
|
|
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Dec 03, 2003 1:16 pm |
|
The address does not work stand alone. In other words type this in your browser url
Nothing happens. I can only help you with the syntax and the syntax is correct. Check your url and/or contact the author of the chat. |
|
|
|
 |
|
|
|
|