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)

christina 02-28-2002 01:09 PM

My www site is on the DSL line and the beta site is at VO. I can't tell huge speed differences and I don't even have caching or gzip on the one on the DSL yet. I hope the beta doesn't get slower once I make it the main one.

ANYWAY, I should let us return to the topic at hand. Thanks!

eg_92901 02-28-2002 06:23 PM

Does anybody else have some sort of refresh problem? Everything works great except sometimes it repeats what you type over and over.

Seems like only I can see it and the others on the chat can't. Yet at the same time their text is repeating and I don't see it. If you refresh the chat room it goes back to normal only to do it again soon after.

???

christina 03-01-2002 06:54 PM

Dave,

I had a question on this...

Do you have to dump the tables from the phpMyChat database and then load them in to the vB forums database? Or do you just have to create some blank tables with the same names?

TIA!
Quote:

Originally posted by SneakyDave
OK, here is what I've done. I've created a separate script for phpMyChat and vBulletin integration. It includes the hacks discussed here, and should work well for more people. I've made a few small enhancements, and added a few installation notes.

Some points of interest.
1) These files are all .php extensions.
2) No chat registration exists, including administration. You can create rooms in the setup, but that's it. No private rooms, no banning, etc. That's because the setup that works for me has the "no registration" option on. So if you can handle that, this should work.
3) I can answer the questions I can, but not detailed specifics on phpMyChat or vBulletin.
4) I don't have CVS available for any fixes or changes, if I update anything, I'll post it here.
5) This is of course, an unofficial release of the phpMyChat script, but I've left all documentation intact.

Thanks to phpProbe, Tom, phpMyChat, and vBulletin for great hacks and products.

You can download the zip file here:
http://www.auctioncrotch.com/downloa...download&cid=1


Jamer 03-06-2002 12:49 PM

I love the idea of this!! but I am having a few problems with installing mychat:
Error message I receive is;

Warning: MySQL Connection Failed: Access denied for user: '*************' (Using password: YES) in ./lib/database/mysql.lib.php3 on line 26
Database error: Link_ID == false, connect failed
MySQL error: 0 ()
Session halted.

any idea's how to fix this, then I can start to use it.

Twin-x 03-13-2002 06:27 AM

Hello i have this error.
Quote:

Parse error: parse error in /home/twin-xc/public_html/synthforum/phpchat/chat/lib/index.lib.php3 on line 1

Fatal error: Call to undefined function: send_headers() in /home/twin-xc/public_html/synthforum/phpchat/phpMyChat.php3 on line 20
Can some one explain what i have done wrong?
Thanks in advance.

version 03-13-2002 11:25 AM

i have completely integrated phpmychat with vbulletin on my site. it authenticates via the 'users' table, determines permissions via 'usergroupid' and is also integrated with the gender hack. all commands are working (ie. /kick, /ban, /promote) and has been nicely customized to match the style of my site. come take a look at http://www.enterthemuse.com/ username/password: test

pgowder 03-13-2002 11:38 AM

Can you post how you did the usergroup id part??

version 03-13-2002 12:38 PM

it's not very easy, you have to manually edit each file and replace quite a few hardcoded references to 'perms' to 'usergroupid', and all references of 'a' to '6', 'm' to '7' and 'u' to whatever groupid you have assigned to normal users. you have to either add a few fields into your 'user' table that phpmychat requires (ie. 'latin1', etc), or else edit it out of the files. it's much easier to add it to the DB, in my opinion.

Twin-x 03-15-2002 01:58 PM

Oi it looks great.

Is there any chance you will post your version of this hack?

TIA

JediKNight 03-22-2002 05:00 AM

is it working with 2.2.4?
I tried but it is not working...

Jedi

version 03-22-2002 06:58 AM

Quote:

Originally posted by Twin-x
Oi it looks great.

Is there any chance you will post your version of this hack?

TIA

hrm. i'll go re-read the license for phpmychat and see if they let me redistribute it modified for vb. i'll get back to you on this.

thehobbyforum 03-22-2002 09:18 PM

I would love to know when you get it integrated with vBulletin 2.2.4 - is there a way to show users online through vBPortal??

Thanks - John
http://www.thehobbyforum.com

thehobbyforum 03-24-2002 10:27 PM

OK I got it completely integrated with vBulletin v.2.2.4 but it is making me sign in every time I go to the chat start page - the other thing is that I can not seem to integrate the chat_activity.php3 file into vBPortal - Help Please!!!!

Thanks in Advance - John

Fallout2man 04-01-2002 10:09 PM

Quote:

Originally posted by version


hrm. i'll go re-read the license for phpmychat and see if they let me redistribute it modified for vb. i'll get back to you on this.

So, can you redistribute it or not? I'd love to be able to have a fully integrated PHPMychat for my VBB.

Velocd 04-05-2002 07:53 PM

I'm having a very annoying problem with this hack, and I can't seem to fix it. If you can help please contact me on AIM at
Invincible Box. :D

Velocd 04-05-2002 09:52 PM

Somebody please help me! Here is the error I'm getting:
PHP Code:

WarningChDirNot a directory (errno 20in /home/velocd/public_html/chat/chat/lib/index.lib.php3 on line 91

Fatal error
Failed opening required './public_html/global.php' (include_path='.:/usr/local/lib/php'in /home/velocd/public_html/chat/chat/lib/index.lib.php3 on line 92 

And here is the index.php3 file:
PHP Code:


//a VBB integration hack by Stasik (stasik@t-online.de)
//v0.1
//(C)2001

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

if($Ver == ""){print "
<HTML>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
    <!--
    var NS4 = (document.layers) ? 1 : 0;
    var IE4 = ((document.all) && (parseInt(navigator.appVersion)>=4)) ? 1 : 0;
    var ver4 = (NS4 || IE4) ? \"H\" : \"L\";
function defineVerField()
    {
        if (document.images && ver4 == 'L')
            document.forms['Params'].elements['Ver'].value = 'M';    // js1.1 enabled browser
        else document.forms['Params'].elements['Ver'].value = ver4;
    }
 -->
</SCRIPT>
<FORM ACTION=\"index.php3\" METHOD=\"POST\" AUTOCOMPLETE=\"OFF\" NAME=\"Params\">
<INPUT TYPE=\"hidden\" NAME=\"Ver\" VALUE=\"L\">
</FORM>
<SCRIPT TYPE=\"text/javascript\" LANGUAGE=\"javascript\">
defineVerField();
document.forms.Params.submit();
</SCRIPT>
</HTML>
"
; exit;}

chdir("/public_html");
require(
"./global.php");
chdir("/public_html/chat/chat");

if (
$bbuserid == 0)

print 
"To Join the Chat you need to go the forums and Register on the board ;  
The Register Button is on the top. If you are already registered then go the 
board and login. Once this is complete select the chat button on the
main forum page in the forum. Thank You For Joining the Chat<br>
<a href=\"http://forums.realwebhost.net\">Back to the Forums</a>"
;
//Message if the user has no cookie
exit; 
}
else
{
if (
$bbusername == "" || (isset($bbusername))==0

$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid"); 
$username=$getusername[username]; 
$bbusername $username
}
else 

$username $bbusername
} }

$U $username;

$pat "[[:space:]]"
$repl ""
$U ereg_replace($pat,$repl,$U); 
$pat "'"
$repl "`";
$U ereg_replace($pat,$repl,$U); 
$pat ','
$U ereg_replace($pat,$repl,$U); 
stripslashes($U); 

$N 20
$D 10
$Form_Send 1

//Replace admin with your administration nick
if($U != "id")
{
$PASSWORD="1";


..and what the hell is this? ---> :bunny: lol

svoec 04-06-2002 12:11 PM

Hey --

What would be the chance of displaying someone's avatar in phpmychat ?????

Thanks!
EricC

Stasik 04-06-2002 06:15 PM

2 velocd.. you got to write full path
eg not
chdir("/public_html");
but
chdir("/home/velocd/public_html");

2svoec... can be :)

Stasik 04-06-2002 06:17 PM

i`m back folks....

can you tell me what problem are there with vb 2.2.4/2.2.5?

webhost 04-06-2002 06:19 PM

RWH works fine with 2.2.4 without any code changes

Stasik 04-06-2002 06:22 PM

so i`m sure it will work with 2.2.5 too... dont worry

Velocd 04-07-2002 04:37 AM

Quote:

Originally posted by Stasik
2 velocd.. you got to write full path
eg not
chdir("/public_html");
but
chdir("/home/velocd/public_html");

2svoec... can be :)

OMG! Thank you sooooooo much :laugh:
such simple mistake, but i'm just glad its fixed!!

FTDave 04-07-2002 12:59 PM

Hi. I was suprised when this problem wasn't mentioned. If a user bookmarks the chat while in the chatroom they will get a suprise when they try to come back. They get an error page. And The administrator of vbulletin gets a message saying there was an error with the vbulletin database. I might have missed this solution to the problem. Any takers?
Thanks.
Dave.

P.S. The integration works fine except for this problem.

webhost 04-07-2002 01:52 PM

look in cp for cookies option dood

FTDave 04-07-2002 04:31 PM

How would that solve the problem? Look here to see what I mean. This was bookmarked while inside the chatroom. Apparently people are bookmarking the chat while inside.

http://www3.fertilethoughts.com/chat...Misc-Chat&EN=1


I could change my options but what about the general user. I get alot of database error emails.

Thanks.
Dave.

version 04-09-2002 01:43 PM

Quote:

Originally posted by Fallout2man


So, can you redistribute it or not? I'd love to be able to have a fully integrated PHPMychat for my VBB.

posting it now...

Gholsie 04-09-2002 04:51 PM

I want to be able to show who's chatting in a block on my front page. Anyone find a good (working) block for this yet?

(I'm using PHPPortal)

FTDave 04-10-2002 10:30 PM

Is anyone else having the problem I posted above or is it something you guys just live with?

MomofThree 04-12-2002 01:38 PM

I've had this hack working with no problems. Today a member was trying to get into the chat room and was not able to. Instead the member got the page for the unregistered users to join in order to use this feature. She made sure she was logged in and still got to this page. Anyone here have any clues why this member is the only one not able to get in?

Thanks! :)

mojotim 04-18-2002 02:15 AM

I have it up and running, but I have a user who says he only gets a blank page.

He is using: Running Macintosh, OS9.1, I.E. 5.0, RR cable.

I can see that he entered the chat room, but all he saw was a blank white page.

Anybody have any ideas for me?

Stasik 04-18-2002 10:45 AM

if he enters tha chat there is no cookie problem

can he use another phpMyChats too?

mojotim 04-18-2002 12:50 PM

Don't know yet. I gave him a link to the phpmychat's demo. I'll let you know what I find out from him.

Wouldn't it be great if everyone just updated their darn browsers. I mean come on already, they're free!!

FCorner 04-21-2002 01:54 AM

Help help help!

I am having a problem with SOME of my users not being able to get into the chatroom. I've followed all of the suggestions etc, and I think I know where the problem is.

Where you suggest in the FAQ:

Quote:

You need to upgrade a cookie option in your VB control panel. Write under: Options->Change Options->[HTTP Headers and output]->Cookie Domain your domainname ONLY (blabla.com).
When I do that, it messes up my cookies for my secondary domain. For example, my site domain is familycorner.com, but because I didn't own that for the first couple of years, I had everything on thefamilycorner.com, hence there are hundreds of links on the net pointed to thefamilycorner.com, so I have both set up to work. So if I set my cookie domain to familycorner.com, then it screws up the cookies on thefamilycorner.com, and vice versa.

I think this may be the problem that some users are experiencing. Do you have any suggestions on how I can handle this domain problem?

If you need it, the forums are here http://www.familycorner.com/forums (and/or) http://www.thefamilycorner.com/forums

The chat button is at the top of the forums.

Thanks!

FCorner 04-21-2002 02:01 AM

Quote:

Originally posted by FTDave
Is anyone else having the problem I posted above or is it something you guys just live with?
Dave

I don't have this problem because I have the chatroom set in frames, therefore the url remains the same constantly. Maybe this could work for you?

FCorner 04-21-2002 02:04 AM

Quote:

Originally posted by MomofThree
I've had this hack working with no problems. Today a member was trying to get into the chat room and was not able to. Instead the member got the page for the unregistered users to join in order to use this feature. She made sure she was logged in and still got to this page. Anyone here have any clues why this member is the only one not able to get in?

Thanks! :)

I am having the same problem, but it has been fixed for some users by having them go into their control panel and edit their options. They need to make sure that they have "browse the board with cookies" set to "yes" and tell them to allow the board to log them in automatically when they return (the other cookie option). Thsi worked for some!

webhost 04-21-2002 02:40 AM

do the cookie domain in the cp and then have the user work with cookie domain in their user control panel.

FCorner 04-21-2002 02:50 AM

Just want to make sure I understand what you are saying :) ...

You are saying to go into the admin control panel and set the cookie domain to familycorner.com, then to have the registered users only use that domain when they enter the boards, is that right?

Problem with this is that I get visitors for both thefamilycorner.com and familycorner.com. Therefore, when someone clicks the link for the boards, they are taken to the /forums directory for whatever domain they entered on. For example, if they arrived through www.thefamilycorner.com then they will be taken to www.thefamilycorner.com/forums, but NOT to www.familycorner.com/forums

Did that mak sense? Sorry for the trouble, and thank you for your help :)

webhost 04-21-2002 02:56 AM

admin cp correct then have those users having problems turn on their cookies in their user cp

FCorner 04-21-2002 11:12 AM

Is there anyway to specify two domains for the cookies in the admin control panel?

AnkisethGallant 05-05-2002 07:55 PM

I just installed this, the only problem is when I try to load phpMyChat.php3:

Quote:

Parse error: parse error in /home/virtual/site8/fst/var/www/html/boards/chat/lib/index.lib.php3 on line 91

Fatal error: Call to undefined function: send_headers() in /home/virtual/site8/fst/var/www/html/boards/phpMyChat.php3 on line 20
Can someone PLEASE help?


All times are GMT. The time now is 09:14 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.01440 seconds
  • Memory Usage 1,853KB
  • 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
  • (2)bbcode_php_printable
  • (10)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