The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
YAPIH (Yet Another PHPMyChat Integration Hack) 1.0 Details »» | |||||||||||||||||||||||||||
YAPIH (Yet Another PHPMyChat Integration Hack) 1.0
Developer Last Online: Nov 2002
YAPIH (Yet Another PHPMyChat Integration Hack) 1.0 by Joshua McNeese <jmcneese@enterthemuse.com>
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: PHP Code:
(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: Code:
/chat/index.php3?U=$chatname&PWD_Hash=$chatpass&Ver=H&L=english&R0=$chatroom&T=1&D=10&N=200&EN=1 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 Show Your Support
|
Comments |
#12
|
|||
|
|||
This hack look amazing i am just having some trouble with one thing though. When i go to register and i register and click send info i get this data base error.
Database error: Invalid SQL: INSERT INTO user VALUES ('Nem1386', '1', '62fbd3c41f33c0b62996c15429cf55fa', 'Kyle', 'Walker', '', '', 'Nem@aol.com', 0, 'user', '',1023960753, '24.186.207.37', '') MySQL error: 1136 (Column count doesn't match value count at row 1) Session halted. Does anyone no what i can do? |
#13
|
||||
|
||||
Quote:
regarding the chatroom window, you must use a javascript popUp script if you want to specify resolutions. |
#14
|
|||
|
|||
What about my prb up two posts.
|
#15
|
||||
|
||||
Quote:
Here's all I want, maybe I am making this too difficult: Have a link on my front page to the chat room that auto-logs someone in with their vb name and password, or redirects them to the registration page if not. What I'm thinking is, I should create a seperate page for chat. Maybe even a vb template. Then, all the link on the front page does is take them to that page, where they can then log in, etc, etc. Anyone have a quick vb template and a way to call it withen a php page? |
#16
|
|||
|
|||
well version i don't use dhtml menus.
again i passed the exact code as you did in my phpinclude but yet username and password are not passed through. any other ideas. by the way great site you have m8. aswome i have to admit that is the best board site i have ever since. can i contact you to give me a couple of tips?? |
#17
|
||||
|
||||
sure
|
#18
|
||||
|
||||
Gave up on the front page integration, just created a template for it in vb, and I link to it. Works pretty well now, so off to click the "install" button I go.
Couple quick questions Version: [Edit - NM, found the answers. I'll post them for others] Where do you set the page <TITLE> at? Dunno if you know this, but it's set to "ETM Chat" which probably works for you but doesn't apply to me Answer - in the chat/lib/index.lib.php3 file, NOT chat/index.php3. You can change a lot of variables in the former file. Which CSS file/variables do ya edit for changing the chat color settings (background, etc). start_page.css.php3. There are many variables - to change the main window background, for example, it's the 'background-color' attribute of the class 'ChatBody'. Play around and enjoy. 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! |
#19
|
|||
|
|||
i still have a problem parseing my variables to the chat javascript window.
everything else works fine. although i included everything that version said in my phpinclude template. |
#20
|
|||
|
|||
Quote:
|
#21
|
|||
|
|||
i am using linux and i do it through webmin. Very easy to execute and backup and administrate any my-sql database.
another solution for you is to do it with phpMyAdmin. it is very cool web based my-sql clinet tool |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|