Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Mark0380 (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-27-2001 Last Update: Never Installs: 0
 
No support by the author.

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:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<
HTML>
<
HEAD>
<
TITLE>$bbtitle Live Chat</title>
$headinclude
</head>
<
body>
$header

<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr>
<
td width="100%">$navbar<br></TD>
</
tr></table>

<
div align="center">

<
center>
   
<!--
Change the code between the applet tags to the code you are given when you sign up for your free chat account.-->

<
APPLET CODEBASE="http://www.multichat.com/ChatBox" ARCHIVE="multichat.jar" CODE="GUIClient.class" WIDTH="562" HEIGHT="385" ALIGN="BOTTOM">
<
PARAM NAME="cabbase" VALUE="multichat.cab">
<
PARAM NAME="affiliate" VALUE="">
<
PARAM NAME="AllowCreateForum" VALUE="TRUE">
<
PARAM NAME="AppletBackground" VALUE="#CCCCCC">
*****<
PARAM NAME="AutoForwardingURL" VALUE="http://www.yoursiteurl.com">****
<
PARAM NAME="BannerImage" VALUE="">
<
PARAM NAME="Category" VALUE="6">
<
PARAM NAME="ChatAreaBackground" VALUE="white">
<
PARAM NAME="ChatAreaForeground" VALUE="black">
*****<
PARAM NAME="Description" VALUE="Put a description for your site or chat room here!!!">*****
<
PARAM NAME="Domain" VALUE="0">
*****<
PARAM NAME="FontName" VALUE="Helvetica">*****
*****<
PARAM NAME="FontSize" VALUE="12">*****
<
PARAM NAME="HelpURL" VALUE="http://www.multicity.com/support/chat/index.htm">
*****<
PARAM NAME="hidepassword" VALUE="TRUE">*****
*****<
PARAM NAME="HomepageURL" VALUE="www.yoursiteurl.com">*****
<
PARAM NAME="Language" VALUE="EN">
<
PARAM NAME="LocatorEnabled" VALUE="TRUE">
<
PARAM NAME="ShowLiveChat" VALUE="T">
*****<
PARAM NAME="ShowUserInfoLine" VALUE="FALSE">*****
*****<
PARAM NAME="Subject" VALUE="*Put your chatroom subject here">*****
<
PARAM NAME="Translation" VALUE="FALSE">
<
PARAM NAME="UseGraphicText" VALUE="F">
<
PARAM NAME="Registered" VALUE="FALSE">
*****<
param name="AutoLogin" value="TRUE">*****
*****<
param name="AutoLoginName" value="{$bbuserinfo[username]}">*****
Your browser does not support Java applets.
Upgrade to a newer browser or use the Options menu to enable Java.
You may also use the link below to access the HTML version of your chat room.
</
APPLET>

</
center>

</
div>

<!-- 
Time-->
<
table border="0" width="100%" cellpadding="4" cellspacing="0"><tr>

<
td width="100%" valign="middle" align="center" nowrap><b><smallfont>$timezone</smallfont></b></td>
</
tr></table>
<!-- /
Time-->

$footer
</body>
</
html
Step 4.
Create a new file and name it 'chat.php', or whatever you need. Place the following code inside.

PHP Code:
<? 
require( "global.php" ); 

if( $bbuserid ) { 

$user = $DB_site->query_first( "SELECT username 
FROM user 
WHERE userid = $bbuserid" ); 
$bbusername = $user[ username ]; 
eval("dooutput(\"".gettemplate('chat_hack')."\");"); 
} else { 
eval("dooutput(\"".show_nopermission()."\");"); 
} // end if 
?>
Step 5.
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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 08-04-2001, 10:40 PM
Fred
Guest
 
Posts: n/a
Default

I like the numbers 2.0.0 rahter than 2.0.3
Reply With Quote
  #43  
Old 08-04-2001, 11:48 PM
mojotim mojotim is offline
 
Join Date: Oct 2001
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I use the <applet> code in this hack, it just hangs up. Keeps trying to dowload...When I just use the multicity <applet> it's no problem. Anybody have any ideas for me?
Reply With Quote
  #44  
Old 08-05-2001, 01:30 PM
blade
Guest
 
Posts: n/a
Default

This is cool, thanks

2 questions.

How do you get it to show online uses? I do have vb 2.03 and it doesn't show. Is there a code to insert in loggedonusers?.

And when clicking on "disconnect" it doesn't go to the forums, just to a part having "guest' on it to log back into chat.
Reply With Quote
  #45  
Old 08-06-2001, 05:45 PM
Evoir Evoir is offline
 
Join Date: Nov 2001
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I very much want this to work, but I can't seem to figure it out. I'll go over the steps I did:

I'm running vB 2.03

1) got a multicity account (free)

2) created a new template and called it "chat_hack" and pasted the code that Mark0380 suggested (of course, I used my own multicity account)

Looks like this:
Code:
<!DOCTYPE?HTML?PUBLIC?"-//W3C//DTD HTML 4.0 Transitional//EN"?"http://www.w3.org/TR/REC-html40/loose.dtd">

<HTML>

<HEAD>

<TITLE>$bbtitle?-?Live?Chat</title>

$headinclude

</head>

<body>

$header



<table?border="0"?width="100%"?cellpadding="0"?cellspacing="0"><tr>

<td?width="100%">$navbar<br></TD>

</tr></table>



<div?align="center">

<center>

<applet codebase="http://chat.multicity.com/Chat8/" code="GUIClient.class" width="400" height="500" archive=multichat.jar>

<PARAM?NAME="cabbase"?VALUE="multichat.cab">

<param name="roomid" value="XXXXXXXXXX">

<PARAM?NAME="affiliate"?VALUE="">

<PARAM?NAME="AllowCreateForum"?VALUE="TRUE">

<PARAM?NAME="AppletBackground"?VALUE="#CCCCCC">

<PARAM?NAME="AutoForwardingURL"?VALUE="http://www.curvemag.com">

<PARAM?NAME="BannerImage"?VALUE="">

<PARAM?NAME="Category"?VALUE="6">

<PARAM?NAME="ChatAreaBackground"?VALUE="white">

<PARAM?NAME="ChatAreaForeground"?VALUE="black">

<PARAM?NAME="Description"?VALUE="Private Chat for Curve Magazine">

<PARAM?NAME="Domain"?VALUE="0">

<PARAM?NAME="FontName"?VALUE="Verdana, Arial, Helvetica, sans-serif">

<PARAM?NAME="FontSize"?VALUE="12">

<PARAM?NAME="HelpURL"?VALUE="http://www.multicity.com/support/chat/index.htm">

<PARAM?NAME="hidepassword"?VALUE="TRUE">

<PARAM?NAME="HomepageURL"?VALUE="http://www.curvemag.com">

<PARAM?NAME="Language"?VALUE="EN">

<PARAM?NAME="LocatorEnabled"?VALUE="TRUE">

<PARAM?NAME="ShowLiveChat"?VALUE="T">

<PARAM?NAME="ShowUserInfoLine"?VALUE="FALSE">

<PARAM?NAME="Subject"?VALUE="*Replacing the random threads">

<PARAM?NAME="Translation"?VALUE="FALSE">

<PARAM?NAME="UseGraphicText"?VALUE="F">

<PARAM?NAME="Registered"?VALUE="FALSE">

<param?name="AutoLogin"?value="TRUE">

<param?name="AutoLoginName"?value="abc_{$bbuserinfo[username]}">

Your?browser?does?not?support?Java?applets.

Upgrade?to?a?newer?browser?or?use?the?Options?menu?to?enable?Java.

You?may?also?use?the?link?below?to?access?the?HTML?version?of?your?chat?room.

</APPLET>



</center>



</div>



<!--?Time-->

<table?border="0"?width="100%"?cellpadding="4"?cellspacing="0"><tr>

<td?width="100%"?valign="middle"?align="center"?nowrap><b><smallfont>$timezone</smallfont></b></td>

</tr></table>

<!--?/Time-->


$footer

</body>

</html>
Then, I created a file, calling it "chat.php" and uploaded it into my vB main directory. That file looks like this:
Code:
<??

require(?"global.php"?);?



if(?$bbuserid?)?{?



$user?=?$DB_site->query_first(?"SELECT?username?

FROM?user?

WHERE?userid?=?$bbuserid"?);?

$bbusername?=?$user[?username?];?

eval("dooutput(\"".gettemplate('chat_hack')."\");");?

}?else?{?

eval("dooutput(\"".show_nopermission()."\");");?

}?// end if 

?>
When I call the script, I get a blank page:
http://www.curvemag.com/speak/chat.php

Any suggestions? Is it clear what i might be doing wrong?
Reply With Quote
  #46  
Old 08-06-2001, 06:40 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is the path to your global.php file correct?
Reply With Quote
  #47  
Old 08-06-2001, 06:43 PM
Evoir Evoir is offline
 
Join Date: Nov 2001
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by RobAC
Is the path to your global.php file correct?
Reply With Quote
  #48  
Old 08-06-2001, 06:45 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You also need to take a look at some of the parameters that you're specifying near the end of the chat room coding from Multicity. This is what I have:

Quote:
<PARAM NAME="Subject" VALUE="*Solid Axle Lounge-Corvette Chat">
<PARAM NAME="Translation" VALUE="TRUE">
<PARAM NAME="UseGraphicText" VALUE="FALSE">
<PARAM NAME="roomid" VALUE="#########">
<PARAM NAME="AutoLogin" VALUE="TRUE">
<PARAM NAME="AutoLoginName" VALUE="{$bbuserinfo[username]}">
Reply With Quote
  #49  
Old 08-06-2001, 07:01 PM
Evoir Evoir is offline
 
Join Date: Nov 2001
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Rob,

Can you or anyone tell me if my parameters are correct? It seems most weird that the page is BLANK.

Code:
<applet codebase="http://chat.multicity.com/Chat8/" code="GUIClient.class" width="400" height="500" archive=multichat.jar>
<PARAM?NAME="cabbase"?VALUE="multichat.cab">
<PARAM?NAME="roomid" VALUE="xxxxxxxxxx">
<PARAM?NAME="affiliate"?VALUE="">
<PARAM?NAME="AllowCreateForum"?VALUE="TRUE">
<PARAM?NAME="AppletBackground"?VALUE="#CCCCCC">
<PARAM?NAME="AutoForwardingURL"?VALUE="http://www.curvemag.com">
<PARAM?NAME="BannerImage"?VALUE="">
<PARAM?NAME="Category"?VALUE="6">
<PARAM?NAME="ChatAreaBackground"?VALUE="white">
<PARAM?NAME="ChatAreaForeground"?VALUE="black">
<PARAM?NAME="Description"?VALUE="Private Chat for Curve Magazine">
<PARAM?NAME="Domain"?VALUE="0">
<PARAM?NAME="FontName"?VALUE="Verdana, Arial, Helvetica, sans-serif">
<PARAM?NAME="FontSize"?VALUE="12">
<PARAM?NAME="HelpURL"?VALUE="http://www.multicity.com/support/chat/index.htm">
<PARAM?NAME="hidepassword"?VALUE="TRUE">
<PARAM?NAME="HomepageURL"?VALUE="http://www.curvemag.com">
<PARAM?NAME="Language"?VALUE="EN">
<PARAM?NAME="LocatorEnabled"?VALUE="TRUE">
<PARAM?NAME="ShowLiveChat"?VALUE="TRUE">
<PARAM?NAME="ShowUserInfoLine"?VALUE="FALSE">
<PARAM?NAME="Subject"?VALUE="*Replacing the random threads">
<PARAM?NAME="Translation"?VALUE="FALSE">
<PARAM?NAME="UseGraphicText"?VALUE="FALSE">
<PARAM?NAME="Registered"?VALUE="FALSE">
<PARAM?NAME="AutoLogin"?VALUE="TRUE">
<PARAM?NAME="AutoLoginName"?VALUE="{$bbuserinfo[username]}">

Your?browser?does?not?support?Java?applets.
Upgrade?to?a?newer?browser?or?use?the?Options?menu?to?enable?Java.
You?may?also?use?the?link?below?to?access?the?HTML?version?of?your?chat?room.
</APPLET>
also, the chat.php page that I created and uploaded to the vb main directory:

Code:
<??

require(?"global.php"?);?



if(?$bbuserid?)?{?



$user?=?$DB_site->query_first(?"SELECT?username?

FROM?user?

WHERE?userid?=?$bbuserid"?);?

$bbusername?=?$user[?username?];?

eval("dooutput(\"".gettemplate('chat_hack')."\");");?

}?else?{?

eval("dooutput(\"".show_nopermission()."\");");?

}?// end if 

?>
does anything look worng?
Reply With Quote
  #50  
Old 08-06-2001, 07:04 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Out of curiosity, has this chat room worked for you before incorporating it into this hack?
Reply With Quote
  #51  
Old 08-06-2001, 07:06 PM
rockergrrl's Avatar
rockergrrl rockergrrl is offline
 
Join Date: Oct 2001
Location: Michigan
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how I could put what people are in the chatroom in forumhome??

Say under current users...

----
Forum: username, username2
Chat: username, username2
----

etc?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:38 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.04373 seconds
  • Memory Usage 2,343KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete