PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Mamasita
Client


Joined: May 10, 2003
Posts: 40

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Mamasita
Client


Joined: May 10, 2003
Posts: 40

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

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


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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>";
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Mamasita
Client


Joined: May 10, 2003
Posts: 40

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

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>";
?>
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 to the forums!

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum