Jump to content
MakeWebGames

Help with Chat mod


william7neace

Recommended Posts

Ok guys i am having problems for some reason with a chat mod that i have...

Have everything set up, but when i click my chat button i get this

How can i fix this??

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/darkshad/public_html/mysql.php on line 2

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/mysql.php on line 3

e

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/chatrooms.php on line 12

Access denied for user 'root'@'localhost' (using password: YES)

Link to comment
Share on other sites

Is your chat mod a V1 Mod ?

does it have this at the top of it :

require "global_func.php";

if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }

$userid=$_SESSION['userid'];

require "header.php";

$h = new headers;

$h->startheaders();

include "mysql.php";

global $c;

$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());

$ir=mysql_fetch_array($is);

check_level();

$fm=money_formatter($ir['money']);

$lv=date('F j, Y, g:i a',$ir['laston']);

$h->userdata($ir,$lv,$fm);

$h->menuarea();

if it does replace all that with :

include "globals.php";

 

If not post the code so we can have a look..

Link to comment
Share on other sites

I did what you said and it fixed it... but i got this

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/darkshad/public_html/chatrooms.php on line 12

Then when i try to start a new Chatroom it says this

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/darkshad/public_html/mysql.php on line 2

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/mysql.php on line 3

e

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/startroom.php on line 12

Access denied for user 'root'@'localhost' (using password: YES)

Link to comment
Share on other sites

Ok i got this code from the wsIrc website you were talking about Jordan

<IFRAME SRC=http://www.wsirc.com/?username=wsirc_******&server=binary.ipocalypse.net%3A6667&channel=Dark%20Shadows&autojoin=false&color=%23000000&dark=true STYLE='width: 100%; height: 900;' WIDTH=100% HEIGHT=900 FRAMEBORDER=0 BORDER=0 SCROLLING=NO SCROLLBAR=NO></IFRAME>

Now what do i put it in to???

Link to comment
Share on other sites

Ok i got this code from the wsIrc website you were talking about Jordan

<IFRAME SRC=http://www.wsirc.com/?username=wsirc_******&server=binary.ipocalypse.net%3A6667&channel=Dark%20Shadows&autojoin=false&color=%23000000&dark=true STYLE='width: 100%; height: 900;' WIDTH=100% HEIGHT=900 FRAMEBORDER=0 BORDER=0 SCROLLING=NO SCROLLBAR=NO></IFRAME>

Now what do i put it in to???

Well where you want wsirc to show...

Being an irc I would suggest its own page so people can keep it open in a tab.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...