The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
Credit for this should predominantly go to forum users Tim Mousel and Trog for giving me two necessary coding springboards for getting this hack (or is it mod?!?) together - thanks guys!!!!!
I am sure someone has already done this with MultiCity Chat anyway, so apologies for the duplicity - but I thought newbies might appreciate having this feature all the same. Basically, the hack enables you to have a free MultiCity Chatroom integrated with your vBulletin forum. It automatically logs in registered forum users with their member-name, and an error message and login prompt is presented for those unregistered/not logged-in. And when you disconnect from the chat room, it refreshes to the main page of your forum. Step 1. Set yourself up with a free MultiCity chat account at http://www.multicity.com - don't worry about configuring variables such as color and chatroom description on their site, its all editable later. Step 2. Add a new template and call it 'chat_hack'. Step 3. Insert the following code into your 'chat_hack' template, remembering to insert the script code you obtained from MultiCity, rather than what's displayed here. There are a lot of variable parameters for the customisation of the MultiCity chat. Most of these are cosmetic things, but a couple of them are vital for getting the auto-login functions to work properly. So check through my pasted script code here and look for the entries marked with asterixes - these are the configurable options that I tweaked OR added to the default code that MultiCity give you. Note: "AutoLogin" and "AutoLoginName" parameters are essential. Hope that makes sense!!!! PHP Code:
Create a new file and name it 'chat.php', or whatever you need. Place the following code inside. PHP Code:
Upload 'chat.php' to your main forums directory. Step 6. Test the file, and assuming everything is working okay, link into your forums page. I truly hope it works for everyone. It is certainly working for me! Just point your browser to my forums page (http://www.leatherforums.com) and look for the button 'live chat' in the header menu at the top of any page. And if you do register with my forums simply to test this mod, please please PLEASE do the decent thing and contact me to request your account is removed afterwards, okay? Thanks. Show Your Support
|
Comments |
#12
|
|||
|
|||
![]() Quote:
http://www.vbulletin.com/forum/showt...threadid=17866 Have fun |
#13
|
|||
|
|||
![]() Quote:
Basically, MultiCity Chat will only accept usernames of 3 letters or higher. 2 letter usernames are refused by the chat applet - I would not think there a way around this, save for changing usernames. Sorry about that. |
#14
|
|||
|
|||
![]()
In my templates, I put 3 letters and a _ in front of names to give members a unique name for irc. Maybe something similiar would solve this problem. All you need to do is change "{$bbuserinfo[username]}" to something like "abc_{$bbuserinfo[username]}" and that should fix it.
|
#15
|
||||
|
||||
![]()
Thanks Mark for finding out the problem with two letter names. Trog's idea is a good one and I'll look into this.
By the way I'm still getting a few users who can't enter the Chat room. They get the infamous "You are not logged in" screen even though it gives their user name. I suspect cookie corruption and will ask them to delete their cookies and try again. Any other ideas? |
#16
|
||||
|
||||
![]()
Mark,
I found out why some users can access the Chat and some can't. The ones that can't all have one thing in common - they have the 'Remember Username and password' option set to 'no'. Once they set this to yes, it works. Is it possible to fix the script so it will work when the option is set to 'no'? |
#17
|
||||
|
||||
![]()
*polite bump*
|
#18
|
|||
|
|||
![]()
<a href="http://bokhalifa.com/daar/chat.php" target="_blank">good werk</a>
|
#19
|
|||
|
|||
![]()
Question: would it be possible to somehow tie in the loggedinusers, but only the users that are currently in the chat room or on that chat.php page? The reason I ask, is that it would be cool to let everyone view everyone else's profiles. I use the Multicity Chat, but you can't "have" or view profiles in their chat rooms. Any ideas?
|
#20
|
|||
|
|||
![]()
Users can still detach, then log back in with another name.
|
#21
|
||||
|
||||
![]()
I still have the problem with the 'Remember user name and password' set to no. Did Mark abandon us?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|