Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Mamasita
Client



Joined: May 10, 2003
Posts: 40

PostPosted: Wed Dec 03, 2003 10:21 am Reply with quote

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&paramfilename=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 Very Happy
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Dec 03, 2003 11:52 am Reply with quote

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&paramfilename=embedded.prm\"></script>";
CloseTable();
include("footer.php");
?>
 
View user's profile Send private message
Mamasita







PostPosted: Wed Dec 03, 2003 12:23 pm Reply with quote

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 Smile
 
Raven







PostPosted: Wed Dec 03, 2003 12:29 pm Reply with quote

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







PostPosted: Wed Dec 03, 2003 12:55 pm Reply with quote

Raven, it's not working Sad
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







PostPosted: Wed Dec 03, 2003 1:16 pm Reply with quote

The address does not work stand alone. In other words type this in your browser url
[ Only registered users can see links on this board! Get registered or login! ]
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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©