vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Flashchat: Who is chatting (https://vborg.vbsupport.ru/showthread.php?t=73042)

Paul M 07-13-2005 04:43 PM

Why have you posted this exact question in two of my threads - it has nothing to do with my hacks.

arob42 07-15-2005 04:58 PM

I've integrated flashchat with vbulletin 3.0.3 and I'm adding this hack, but after step 1 in the instructions where index.php is modified, I upload and refresh my forum page and see the following at the top of the page.
Code:

Warning: mysql_connect(): Access denied for user: 'arob42@localhost' (Using password: NO) in /chat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /chat/inc/classes/db.php on line 16

Warning: mysql_connect(): Access denied for user: 'arob42@localhost' (Using password: NO) in /chat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /chat/inc/classes/db.php on line 16

Warning: mysql_connect(): Access denied for user: 'arob42@localhost' (Using password: NO) in /chat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /chat/inc/classes/db.php on line 16

Is it trying to access my vbulletin database using arob42 as my userid? This is only part of my userid, but it has been truncated. Anyone know what might cause this? Shouldn't the userid be fetched from config.srv.php?

Also, does this even work with 3.0.3?

Thanks,
--Robert

Paul M 07-15-2005 06:42 PM

Quote:

Originally Posted by arob42
Shouldn't the userid be fetched from config.srv.php?

No, if it's integrated correctly, the userid, password and database are pulled from your vB config.php.

Those errors are from the flashchat code, not vB. What version of Flashchat are you using, and which CMS file ?

arob42 07-16-2005 02:55 AM

I'm using flashchat v4.0.12 and vbulletinCMS.php. I've modified the vbulletinCMS.php file with my license number, and I removed the 2 blank lines at the end of the file. I verified that when I'm logged into my vbulletin forum I enter straight into the chat room, and when I'm logged out I am prompted for my username/password when accessing chat. It will take my vbulletin username/pass at this point and I'm back in chat. My chat directory is located at my forum root, as per instructions, not the website root. I removed the flashchat databases and reinstalled everything but still get the same result. It's probably something stupid I'm doing but I don't see it yet.

Paul M 07-16-2005 04:21 AM

Sorry, but I would need to access your server files to see what is going on - it makes no sense at all.

wattieuk 07-16-2005 12:56 PM

<font color="SandyBrown">Deleted: solved it!</font>

Paul M 07-16-2005 08:04 PM

Quote:

Originally Posted by arob42
I'm using flashchat v4.0.12 and vbulletinCMS.php.

I don't know why 4.0.12 has caused this to happen for some people - but there is no requirement for that bit of code to actually be called, it's just a side effect of calling the flashchat common.php - I have altered the code to avoid this now anyway, new version v2.25 uploaded. :)

digidivakathy 07-25-2005 02:11 AM

Okay, Paul, I finally switched it long enough to get the error...here it is:

Warning: mysql_connect(): Access denied for user: 'kathyssi@localhost' (Using password: NO) in /flashchat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /flashchat/inc/classes/db.php on line 16

Warning: mysql_connect(): Access denied for user: 'kathyssi@localhost' (Using password: NO) in /flashchat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /flashchat/inc/classes/db.php on line 16

Warning: mysql_connect(): Access denied for user: 'kathyssi@localhost' (Using password: NO) in /flashchat/inc/classes/db.php on line 15

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /flashchat/inc/classes/db.php on line 16

I have checked, double checked and triple checked and the login info for the database is the same in the old db.php file as it is in the new one. Any idea what's going on?

Thanks!

Paul M 07-25-2005 12:11 PM

See the post above yours, replace your code with v2.25 and hopefully the problem should go away. :)

unknowngiver 07-29-2005 11:49 AM

Hey i need help
i want to add whose chatting in the header
and i added this

<center><a href="http://www.apkafuture.com/chat/flashchat.php"><img src="http://www.apkafuture.com/LIVE.gif"</a>There are $totalchatters members in the chatroom <a href="http://www.apkafuture.com/chat/flashchat.php">Join Now</a></center>

in the navbar template

it works in the INDEX PAGE but it doesnt work in the other pages
wt should i do?


All times are GMT. The time now is 06:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01644 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete