Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
YAPIH (Yet Another PHPMyChat Integration Hack) 1.0 Details »
YAPIH (Yet Another PHPMyChat Integration Hack) 1.0
Mod Version: 1.00, by version (Member) version is offline
Developer Last Online: Nov 2002 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (2 votes - 4.50 average) Installs: 15
Released: 09 Apr 2002 Last Update: Never Downloads: 0
Not Supported  

YAPIH (Yet Another PHPMyChat Integration Hack) 1.0 by Joshua McNeese <[email protected]>

Now, first off, this is not an 'out-of-the-box' hack, that you can just uncompress and change a config file and expect to work right off the bat. This hack was the result of me spending a considerable amount of time hand-editing files and replacing variables to convice PHPMyChat to use the VBulletin user database table. You will have to modify this to work with your server/configuration, and if you are not familiar with the PHP internals of VBulletin or with MySQL, turn back now. You have been warned.

(1) Uncompress YAPIH-1.0.zip in the ServerRoot of your server, so that you will access the chat via http://yourhost.com/chat/

(2) Execute the SQL commands in the file 'chat.sql'. This will create the tables needed for PHPMyChat as well as modify your user table. Altering your user table is dangerous, so be sure to have backups handy.

(3) Modify your VB templates:

ADD these two variables to your 'phpinclude' template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will replace any space in a username with spaces, as PHPMyChat does not accept spaces in names, and assign it to the variable $chatname. The users hashed password is assigned to $chatpass, for convenience.

(4) Edit the /chat/config/config.lib.php3 to match your server/configuation/preference.

(5) Now, the last (and tricky) part. What you have now is a working PHPMyChat installation that will authenticate on the VBulletin user table, if you followed the instructions faithfully and received no errors. What must be done now is provide your users with a way to access the chatrooms that you have created. I do this via a DHTML/PHP4 menu panel that lists the available chatrooms, and opens the chatroom in a 600x400 java popup box. You can do this anyway you want, so long as the link is provided via a template in VBulletin, or if you know how to pass variables to custom PHP scripts from within the 'phpinclude' template (which is what I do). The URL you must use is in this format:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Where $chatname and $chatpass are provided by the 'phpinclude' template, and $chatroom is provided by however you choose to assign that variable. It's up to you to figure out how you wish to do so, because everyone structures their site navigation in a different way.

To see the end-user representation of this hack, go to http://www.enterthemuse.com/ and login as 'test', password 'test'. On the left side of the site is a panel-based menu that will include a section 'Chat'. Take a look around, pay attention to where the URLs point and try it out.

It might work for you, it might not, it's totally dependent on your understanding of how to pass variables from your VB templates (in particular 'phpinclude'). Try it, and if all else fails, post your experiences on vb.org.

Download it HERE.

Good luck,

Joshua McNeese

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
A phpMyChat integration Hack Stasik vBulletin 2.x Full Releases 393 11 Mar 2004 20:24

  #31  
Old 17 Jan 2003, 07:23
rstark rstark is offline
 
Join Date: May 2002
Originally posted by ixian
Last (guess this is 3 questions )

Where do you change the default text users see when they first enter a room?

Still haven't got the answer to this one....yet

Thanks!
It's in the welcome.lib.php3 file located in the \chat\lib folder
Reply With Quote
  #32  
Old 17 Jan 2003, 14:29
svoec svoec is offline
 
Join Date: Mar 2002
it's in the phpmychat docs..(probably why you didn't get a answer)

it is in the /chat/lib/welcome.lib.php3
Reply With Quote
  #33  
Old 18 Jan 2003, 05:10
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Real name: Judge
Is this my best option to intergrate the two?
__________________
Cecil County, Maryland
Reply With Quote
  #34  
Old 20 Jan 2003, 22:59
rstark rstark is offline
 
Join Date: May 2002
Originally posted by version
ixian, the phpinclude template is always parsed, even for the front page of the site, if you include("$forumpath/global.php").

here's the chatstuff in my phpinclude template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

as you can see, i pass variables to my subscripts variables in the URLs, i.e. $chatname as $username, $bbuserinfo[userid] as $userid.

here is the contents of the "menu_chat.php" script mentioned above:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

i am also attaching the template for the forumhome_chatinfo. let me know if there is more questions, and if someone wants to add more (or better) instructions to my package, send me the changes and i will give you credit. (busy life right now, got twins on the way )
When I try to add this, I get:
Warning: Access denied for user: '[email protected]' (Using password: NO) in /home/oursite/public_html/forums/global.php(302) : eval()'d code on line 23

Warning: MySQL Connection Failed: Access denied for user: '[email protected]' (Using password: NO) in /home/oursite/public_html/forums/global.php(302) : eval()'d code on line 23
Can't open connection to MySQL

Last edited by rstark; 21 Jan 2003 at 00:50.
Reply With Quote
  #35  
Old 21 Jan 2003, 00:18
svoec svoec is offline
 
Join Date: Mar 2002
somewhere in there, you need to include either global.php, or admin/config.php


your variables for the username and password are not getting set.
Reply With Quote
  #36  
Old 21 Jan 2003, 00:29
rstark rstark is offline
 
Join Date: May 2002
Originally posted by svoec
somewhere in there, you need to include either global.php, or admin/config.php


your variables for the username and password are not getting set.
Thanks svoec, but can you be a little more specific on where to include this? In the phpinclude template?
Reply With Quote
  #37  
Old 21 Jan 2003, 00:49
rstark rstark is offline
 
Join Date: May 2002
Nevermind, I got it to work. Thanks!
Reply With Quote
  #38  
Old 29 Jan 2003, 21:06
TalkHardRandy's Avatar
TalkHardRandy TalkHardRandy is offline
 
Join Date: Jan 2002
Though version hasn't been on in a while, I wanted to say that despite looking like a difficult hack to install, it went in rather smoothly.

Very cool hack!!!
Reply With Quote
  #39  
Old 27 Feb 2003, 14:31
speedway's Avatar
speedway speedway is offline
 
Join Date: Nov 2001
Real name: Bruce N
Ummm...anyone know where I can get this hack...the download link doesn't seem to work.

Cheers
__________________
Bruce Nordstrand
Owner/Administrator/Webmaster...and general dogsbody.
-= AustralianSpeedway.com=-
** The Open Community for the Speedway Fraternity **
Reply With Quote
  #40  
Old 27 Apr 2003, 07:28
dotagious dotagious is offline
 
Join Date: Nov 2001
02-27-03 at 10:31 AM speedway said this in Post #39
Ummm...anyone know where I can get this hack...the download link doesn't seem to work.

Cheers

Same here. =(
Reply With Quote
  #41  
Old 19 May 2003, 02:15
matthewc matthewc is offline
 
Join Date: Apr 2003
Yeah, looks like he switched to invisionboard. Does ANYONE have this hack? pweezy?
Reply With Quote
  #42  
Old 17 Jul 2003, 20:23
salnet salnet is offline
 
Join Date: Jul 2003
Has anyone the hack? Here is it down.
My eMail: [email protected]
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:03.

Layout Options | Width: Wide Color: