vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   A phpMyChat integration Hack (https://vborg.vbsupport.ru/showthread.php?t=21329)

Gholsie 02-05-2002 03:00 AM

One of my users keeps getting this error. It's kind of odd because only one person has this issue. Can someone help me figure this out? Here's his error: (2ManyZ's is his username)

Database error: Invalid SQL: SELECT room FROM c_users WHERE username='2ManyZ's' LIMIT1

MY SQL error: 1064 ( You have an error in your SQL suntax near "s" LIMIT 1' at line 1) Session halted.

UPDATE: I was just thinking about this, could this be a result of an apostrophe (') in his username?

Bally 02-05-2002 12:32 PM

Look at the USer name!

It´s: 2ManyZ's

rename the user to 2ManyZs and it will work fine!

Best regards!

Gholsie 02-05-2002 03:57 PM

Thanks....

saab340 02-07-2002 11:14 PM

I got the chat running, but now I need to know how to integrate the Who's chatting to show next to my who's online...

How do I do that?

Gholsie 02-08-2002 01:58 AM

I'd even like to add a block to my phpportals front page that shows who is in the chat room. Anyone know how to do this?

Stasik 02-08-2002 06:09 AM

there is a script coming with phpmychat...

KevinG 02-08-2002 02:43 PM

Quote:

Originally posted by Stasik
there is a script coming with phpmychat...
What do you mean by that?
Are you saying a new phpmychat is coming out now?

Stasik 02-09-2002 09:58 AM

there is a script in phpmychat zip which allows you to see users chatting at the moment

Gholsie 02-09-2002 04:34 PM

Yep, you're right. The file is called chat_activity.php3. It's included with the distribution of phpMyChat. The file is NOT inside your chat directory, but, one back.

It's a cool little program. But, I want to make it work with my phpportals mod in a block. Maybe I'll try to take the code and copy it to a block.

-- Mike
:stoned:

MomofThree 02-14-2002 11:44 AM

I hope someone can help me and hope you have some patience too, because I have only tried to do simple hacks and having problems with this one.

I did exactly what the instructions said and I am getting this error:

Parse error: parse error in /lib/index.lib.php3 on line 741

Fatal error: Call to undefined function: send_headers() in /home/www/theparentclub/tpcchat/index.php3 on line 20


http://www.theparentclub.com/tpcchat/index.php3

Now here's my other question. How do I exactly make the chat show up within my boards? How do I integreate it seemlessly?

Hope someone can help guide me on how to do this.

Thank you so much.

Stasik 02-14-2002 11:47 AM

i see smth like this:

Code:

Warning: ChDir: No such file or directory (errno 2) in /lib/index.lib.php3 on line 91

Fatal error: Failed opening required './global.php' (include_path='') in /lib/index.lib.php3 on line 92


MomofThree 02-14-2002 05:45 PM

Yes I am seeing this as well now. What am I doing wrong?

MomofThree 02-14-2002 06:02 PM

After reading some of the posts here I figured out that I did not put in the correct path. Once I did this, now the chat comes up like it did....is it supposed to do this or is there supposed to be a link. Also you can't get into the chat at all now, not even with a password.

How do I integrate the chat into my boards.

I really need help. :(

MomofThree 02-15-2002 11:18 AM

Ok... I have it working somewhat. When you go to my chat http://www.theparentclub.com/tpcchat/index.php3 , the message appears when you are not registered, but I'd like to provide a link to register after that message. I do not know php at all and when I try to put html code into it, I get an error. So it's obvious that I don't know what to do and reall need help on this last step. I'm anxious to make this available to my members.

Please help.

Thanks.

Stasik 02-15-2002 11:22 AM

find that
Code:

if ($bbuserid == 0)
{
print "no"; //Message if the user has no cookie
exit;
}

replace it with
Code:

if ($bbuserid == 0)
{
?>
Html Code
<?
exit;
}

So you can use HTML now

MomofThree 02-15-2002 11:36 AM

THANK YOU...THANK YOU....THANK YOU!

:)

You've made my day!

Stasik 02-15-2002 11:37 AM

give my hack a good rating ;)

mem 02-17-2002 11:04 PM

Can you make a Hack...
In Forum Home can see who in chat room now
thx....

RobAC 02-18-2002 02:48 PM

Has anyone else had a problem with phpmychat crashing MS IE 6.0?

NitroSimSev 02-20-2002 11:58 AM

Has any one got this to work on a PHP4 server? I have made the necessary changes but get a internal error of 500 when I try to run the setup.php3. Something tells me my server doesnt support PHP3.

Stasik 02-20-2002 01:20 PM

try to rename php3 in php, something tells me that php3 is comaptible with php4

christina 02-23-2002 03:26 AM

I'm not having much like getting it to work. The chat page at least used to display before the hack, now I just get a blank page at beta.errantlands.com/chat/:

Any ideas? I do have the chdir statements pointing to the correct places...

Christina

Stasik 02-23-2002 08:31 AM

i see just error 404-nor found

christina 02-23-2002 11:43 AM

Any ideas wha would cause them now? The page used to load...
The /chat directory has a .index.php in it, which really is just a link to phpMyChat.php3 in its directory...


Quote:

Originally posted by Stasik
i see just error 404-nor found

christina 02-26-2002 03:01 AM

Bump :)

Stasik 02-26-2002 10:41 AM

ping - pong

still gettin' errorz?

christina 02-26-2002 04:09 PM

Well, I can't figure out why I'd get a page not found error now. If I remove the hack (I backed up the original files), it works as it did before...

Stasik 02-26-2002 05:27 PM

<a href="http://beta.errantlands.com/chat/index.php3" target="_blank">http://beta.errantlands.com/chat/index.php3</a>

yahh... i`m still gettin 404 :cry:

u need to use it as a link.... phpchat can check refferer before startin'

christina 02-26-2002 06:24 PM

There is no index.php3 in that directory... There is just a .index.php which is a like to phpMyChat.php3. In the /chat/chat directory there is a index.php3, though.

Stasik 02-26-2002 06:27 PM

<a href="http://beta.errantlands.com/chat/chat/index.php3" target="_blank">http://beta.errantlands.com/chat/chat/index.php3</a>

i see "no" that meanz i`m not logged in, hack works

christina 02-28-2002 02:15 AM

Odd, you are right. lol. I must have an error somewhere else though, if I try to logoff of the chat, it gives me another 'page cannot be displayed'. Maybe the default directory structure is weird for the installed phpMyChat on VO?

Stasik 02-28-2002 12:27 PM

log of the chat means u re clicking exit link in the chat frame?

christina 02-28-2002 12:34 PM

Yes, the exit link on the top right side. When I do it, it sits for a while and then a "Page Cannot be Displayed" message is shown by the browser. It is trying to use this link:

http://beta.errantlands.com/chat/cha...E=Default&EN=1

Thanks, btw, you've been quite helpful.

Stasik 02-28-2002 12:35 PM

u got to look into hack :)

Code:

$exiturl = "http://www.blabla.com"; // the url the user will be redirected exiting the chat

christina 02-28-2002 12:38 PM

Oh, sheesh. Don't tell me I missed that, I hate missing details like this, it is so embarassing! Thanks, as always!

Stasik 02-28-2002 12:39 PM

:D:D:D:D

christina 02-28-2002 12:44 PM

Yep, that was the problem, thanks so much. Now I just have to edit their UI screen and put some of my headers and footers on it and it's all set! Thanks.

Stasik 02-28-2002 12:47 PM

do u have a dedicated server? i`m seraching smbd to host smth

christina 02-28-2002 01:03 PM

No, unfortunately. I have a shared one at VO. I might move things back to my DSL line though, its slower than it was when I ran it on a server at home. LOL.

Stasik 02-28-2002 01:04 PM

:D lol i know that ****


All times are GMT. The time now is 03:55 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.01519 seconds
  • Memory Usage 1,793KB
  • 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
  • (4)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)post_thanks_navbar_search
  • (1)printthread
  • (40)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