Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Digichat Login Hack for VB3.5 Details »»
Digichat Login Hack for VB3.5
Version: 1.1, by DjTaz DjTaz is offline
Developer Last Online: Oct 2011 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-21-2005 Last Update: 11-12-2005 Installs: 7
Template Edits
Additional Files Is in Beta Stage  
No support by the author.

This is quite a basic version in comparison to the other ones i had seen for the older boards , but i wanted something fast so i did this myself.

No i havent released a hack before , so there may be bugs in this , but it works fine on my own boards , and i dont see there being too many issues with this for anyone else.

Updates - Guests can now log in - this was not available in the first version
Additions - The things added in version 2 are as follows
* Option to choose ports.
* Option to choose language.
* Guest login option added
* Errors with blank pages fixed

This isnt too hard to do - as far as i can tell anyway :s

Uploads (4)
Extra Profile Fields (3)
Plugin additions (2)
Phrases (1)
Template Edits (3)


The Zip contains 5 files :

Readme.txt
chat.php
chatconfig.php
icon.php
guest.php




Firstly start by doing the User Field additions below
(this is done in your Admin CP / User profile Fields / Add a new profile field )
Keep a note of the fields given as these are needed in the chatconfig.php file that you will
be editing next

User Fields (3) New - Take Note of which Field is assigned to eash of these.

1. Chatroom Icon - Single-Selection Menu
Code:
Title : Chatroom Icon  
Description : <iframe src="icon.php" width="100%"></iframe>
Options : Enter options 00 - 45 each on a new line ( 00 is icon00.gif and 01 is icon01.gif) 
Set Default : Yes, but No First Blank Option    
Field Required  No    
Field Editable by User  Yes 
Private Field : No    
Field Searchable on Members List:  No    
Show on Members List : No
Optional Input: No
Display Page : Edit Profile
2. Chatroom Exit Message - Single-Line Text Box
Code:
Title : Chatroom Exit Message
Default Value : Bye Bye
Max length of allowed user input : 30
Field Required : No    
Field Editable by User : Yes 
Private Field : No    
Field Searchable on Members List:  No    
Show on Members List : No
Display Page : Edit Profile
3. Chatmaster - Single-Selection Radio Buttons
Code:
Title  : Chatmaster
Description : Is User a Chatmaster ?
Options: No
	 Yes 
Set Default : Yes
Field Required : No
Field Editable by User : No
Optional Input : No
Display Page : No
(** NOTE : FOR THE ABOVE - IN OPTIONS 'NO' HAS TO BE ON THE FIRST LINE OR ALL MEMBERS WILL BE CHATMASTERS **)



Next edit the Plugins (this displays your in chat on the whos online page)
These are also in the AdminCP / Plugin System / Add New Plugin

Plug-In Add Ons (2)

Product : vBulletin
Hook Location : online_location_process (near the end of the list)
Title : Chatroom
Plugin PHP Code :
Code:
if ($filename == 'chat.php')
{
	$userinfo['activity'] = 'chatroom';
}
Plugin is Active : Yes


Product : vBulletin
Hook Location : online_location_unknown (near the end of the list also)
Title : Chatroom (part2)
Plugin PHP Code :
Code:
if ($userinfo['activity'] == 'chatroom')
{
	$userinfo['action'] = $vbphrase[chatroom]; 
	$userinfo['where'] = '<a href=./chat.php>$vbphrase[chatroom]</a>';	
	$handled = true;
}
Plugin is Active : Yes



Add in the Phrase for chat (Good if your using other languages)

Product : vBulletin
Varname : chat
Text : Chat


Product : vBulletin
Varname : chatroom
Text : In the Chatroom




Next you will need to open the chatconfig.php and fill in the values for this as required by your server.
Some people dont host chat on the same site as the server, so as such there are two different site values , one for the main site , the other for chat

Once you have the chatconfig.php edited , upload the 4 other files (not this one) to the root of your forums (/public_html/forums/ ).



Finally a Template addition
add the link to chat to your Navbar :

Find :
Code:
<td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_memberlist.gif" 

alt="Member List" border="0" />&nbsp;<a 

href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
Add Above that add:
Code:
    <! ##  Digichat Login hack for Vbulletin 3.5 by DjTaz (start) ## >
			<td class="vbmenu_control"><img class="inlineimg" 

src="$stylevar[imgdir_misc]/nav_chat.gif" alt="Chat" border="0" />&nbsp;<a 

href="chat.php">$vbphrase[chat]</a></td>
    <! ##  Digichat Login hack for Vbulletin 3.5 by DjTaz  (end) ## >
Create a new Template called :chat_mainpage
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>



$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan=2>DigiChat Login </td>
</tr>
<tr>
<td class="alt1">

<if condition="$bbuserinfo[$chatmaster] == Yes">
$bbuserinfo[$profilefieldname]
<center>
<script language="javascript">
document.writeln("<APPLET NAME='DigiChat' CODEBASE='$chatsite' ");
			document.writeln("CODE='com.diginet.digichat.client.chatmaster.DigiChatMasterApplet' ");
			document.writeln("HEIGHT=100 WIDTH=195 ALIGN='MIDDLE' ");
			document.writeln("ARCHIVE=ChatMaster.jar MAYSCRIPT>");
			document.write(" <PARAM NAME=cabbase value=ChatMaster.cab>");
</script>

  		        <PARAM NAME=iconID value='10$bbuserinfo[$iconfield]'>
			<PARAM NAME=nickname value='$bbuserinfo[username]'>
			<PARAM NAME=siteID value=$siteid>
			<PARAM NAME=background VALUE=FFFFFF>
			<PARAM NAME=textcolor VALUE=000000>
			<PARAM NAME=url value="$mainsite/member.php?u=$bbuserinfo[userid]">
			<PARAM NAME=openProfileURL value=true>
			<PARAM NAME=signed VALUE=true>
			<PARAM NAME="language" VALUE="$lang">
			<PARAM NAME="ports" VALUE="$port">
			<PARAM NAME=exitmessage VALUE=\"$exit\"> 							 

DigiChat requires a Java Compatible web browser to run.
</APPLET>




<else />
<center>
<script language='Javascript'>

	isMac  = (navigator.appVersion.indexOf('Mac')!=-1) ? true : false;
			IEmac = ((document.all)&&(isMac)) ? true : false;
			IEwin = ((document.all)&&(navigator.appVersion.indexOf('MSIE')!=-1) && !isMac) ? true : false;
			NS = (navigator.appName.indexOf('Netscape')!=-1) ? true : false;

			document.writeln('<APPLET NAME=DigiChat CODEBASE=$chatsite ');
			document.writeln('CODE=com.diginet.digichat.client.DigiChatApplet ');
			document.writeln('HEIGHT=100 WIDTH=200 ALIGN=MIDDLE ');
			if (isMac)
				document.writeln('ARCHIVE=Client_Mac.jar MAYSCRIPT>');
			else if (!isMac)
			{
				if (IEwin)
				{
					document.writeln('ARCHIVE=Client_Plugin.jar MAYSCRIPT>');
					document.write(' <PARAM NAME=cabbase value=Client_IE.cab>');
					document.write(' <PARAM NAME=useslibrary value=DigiChat Applet>');
					document.write(' <PARAM NAME=namespace value=Digi-Net>');
					document.write(' <PARAM NAME=useslibrarycodebase value=Client_IE.cab>');
					document.write(' <PARAM NAME=useslibraryversion value=4,0,4,4>');
				}
				else if (NS)
					document.writeln('ARCHIVE=Client_NS.jar MAYSCRIPT>');
			}
</script>
			<PARAM NAME=background VALUE=FFFFFF>
			<PARAM NAME=textcolor VALUE=000000>
  		        <PARAM NAME=iconID value='10$bbuserinfo[$iconfield]'>
			<PARAM NAME=nickname value='$bbuserinfo[username]'>
			<PARAM NAME=siteID value=$siteid>
			<PARAM NAME=background VALUE=FFFFFF>
			<PARAM NAME=textcolor VALUE=000000>
			<PARAM NAME=url value="$mainsite/member.php?u=$bbuserinfo[userid]">
			<PARAM NAME=openProfileURL value=true>
			<PARAM NAME=signed VALUE=true>
			<PARAM NAME="language" VALUE="$lang">
			<PARAM NAME="ports" VALUE="$port">
			<PARAM NAME=exitmessage VALUE=\"$exit\"> 	


			 DigiChat requires a Java Compatible web browser to run.




</applet>
<!-- *** END APPLET CODE *** -->




</if>

<br><br>
<b>$rules</b>

</td>
</tr>
</table>
$footer
</body>
</html>

Create a new Template called :chat_guestpage
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>


$header
$navbar



<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan=2>Guest DigiChat Login </td>
</tr>
<tr>
<td class="alt1">



<if condition="$chatter">
<tbody id="collapseobj_forumhome_shoutbox" style="" bgcolor=black>
<td class="alt2" colspan=2>
<center>

<script language='Javascript'>

	isMac  = (navigator.appVersion.indexOf('Mac')!=-1) ? true : false;
			IEmac = ((document.all)&&(isMac)) ? true : false;
			IEwin = ((document.all)&&(navigator.appVersion.indexOf('MSIE')!=-1) && !isMac) ? true : false;
			NS = (navigator.appName.indexOf('Netscape')!=-1) ? true : false;

			document.writeln('<APPLET NAME=DigiChat CODEBASE=$chatsite ');
			document.writeln('CODE=com.diginet.digichat.client.DigiChatApplet ');
			document.writeln('HEIGHT=100 WIDTH=200 ALIGN=MIDDLE ');
			if (isMac)
				document.writeln('ARCHIVE=Client_Mac.jar MAYSCRIPT>');
			else if (!isMac)
			{
				if (IEwin)
				{
					document.writeln('ARCHIVE=Client_Plugin.jar MAYSCRIPT>');
					document.write(' <PARAM NAME=cabbase value=Client_IE.cab>');
					document.write(' <PARAM NAME=useslibrary value=DigiChat Applet>');
					document.write(' <PARAM NAME=namespace value=Digi-Net>');
					document.write(' <PARAM NAME=useslibrarycodebase value=Client_IE.cab>');
					document.write(' <PARAM NAME=useslibraryversion value=4,0,4,4>');
				}
				else if (NS)
					document.writeln('ARCHIVE=Client_NS.jar MAYSCRIPT>');
			}
</script>
			<PARAM NAME=background VALUE=FFFFFF>
			<PARAM NAME=textcolor VALUE=000000>
  		        <PARAM NAME=iconID value='10000'>
			<PARAM NAME=nickname value='$chatter *Guest*'>
			<PARAM NAME=siteID value=$siteid>
			<PARAM NAME=background VALUE=FFFFFF>
			<PARAM NAME=textcolor VALUE=000000>
			<PARAM NAME=openProfileURL value=false>
			<PARAM NAME=signed VALUE=true>
			<PARAM NAME="language" VALUE="$lang">
			<PARAM NAME="ports" VALUE="$port">
			<PARAM NAME=exitmessage VALUE=\"$exit\"> 	


			 DigiChat requires a Java Compatible web browser to run.




</applet>
<!-- *** END APPLET CODE *** -->

<br><br>
<b>$rules</b>
</td></tr>
</table>

<else />

<tbody id="collapseobj_forumhome_shoutbox" style="" bgcolor=black>
<td class="alt2" colspan=2>
<center>
You are not a member of this website , or you have not logged on. <br>

Please either login in from the forum page <a href="index.php"> HERE </a> <br>
or register <a href="register.php"> HERE </a>

<br><br><br>
Please select a name for the Chatroom and Click 'Enter Chat'<br>

<FORM ACTION=guest.php METHOD=post>
<input type=text
	VALUE=''
	style='background-color:#FFFFFF ;font-size:8pt; font-weight:bold'
	NAME='chatname'><br>
	<input
		type=submit
		VALUE='Enter Chat'
		style='background-color:#FFFFFF ;font-size:8pt; font-weight:bold'
	NAME='Send'>
</form>
</td></tr>
</table>
</if>





</td>
</tr>
</table>
$footer
</body>
</html>
And that should (in theory) have you ready to chat
As i said this is my first hack so dont kill me if its not 100% - and any suggestions and help would be appreciated - Thanks all, and I hope i have helped out one or two people anyway.
(ohh and a big Thanks to Dark Visor for his tutorial - it helped a lot)
__________________________________________________ ____________


People upgrading from version 1 :
Reupload the files in the zip
Change the chat_mainpage template with the new one above
Add in chat_guestpage template.
Done.

Show Your Support

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

Comments
  #12  
Old 11-13-2005, 02:29 AM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated this now to support Guests as well as members -

Guests log in as :
username *Guest*

Nice and easy for people who have it installed already to re-do just template replace and file uploads.
Reply With Quote
  #13  
Old 12-16-2005, 05:47 PM
Jaynesh Jaynesh is offline
 
Join Date: Nov 2005
Location: London, UK
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anything for DigiChat 5.1

If not could you help me with intergration on 5.1 pleasee
Reply With Quote
  #14  
Old 12-17-2005, 09:28 PM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I havent used Digichat 5.1 , but it should be mostly the same as far as i know , with maybe a few additional changes to the params - send me on a login page and ill see what i can do , but itll be after xmas cause im on holidays till then.
Reply With Quote
  #15  
Old 12-21-2005, 06:21 AM
Neoka21 Neoka21 is offline
 
Join Date: Aug 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the template addition dont work T__T
Reply With Quote
  #16  
Old 12-23-2005, 09:19 AM
Jaynesh Jaynesh is offline
 
Join Date: Nov 2005
Location: London, UK
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DjTaz
I havent used Digichat 5.1 , but it should be mostly the same as far as i know , with maybe a few additional changes to the params - send me on a login page and ill see what i can do , but itll be after xmas cause im on holidays till then.
The code for Digichat 5.1 is probaly totaly different, i tried changing it in your mod but it did not work...

I will PM you the code for digichat 5.1
Reply With Quote
  #17  
Old 12-28-2005, 11:21 AM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Neoka21
the template addition dont work T__T
Which template didnt work ??
Reply With Quote
  #18  
Old 12-28-2005, 11:56 AM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaynesh
The code for Digichat 5.1 is probaly totaly different, i tried changing it in your mod but it did not work...

I will PM you the code for digichat 5.1

I just noticed that Digichat changed a setting in 5.1 -

there seems to be a lot more Params and archive changes - You sent me one of the logins and i could edit it to get that working ,but if also need the mods login page to get that going as well .. but yes it would be almost a different script for 5.1 with the changes they made ... Grrr to them.Ill see what i can do with it.
Reply With Quote
  #19  
Old 02-25-2006, 02:15 AM
dcpaq2xx dcpaq2xx is offline
 
Join Date: Nov 2004
Location: Merrillville, Indiana
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys,

Sorry for asking this here, but you guys are using Digichat most likely, but I am wondering how do you guys like using Digichat?

I am using Flash Chat and I am wondering if anyone here has used both Digichat and Flash Chat? Id like to know if Digichat is a much better program than Flash Chat.

Anyone?

Thanks

Doug
Reply With Quote
  #20  
Old 02-25-2006, 06:35 AM
DjTaz DjTaz is offline
 
Join Date: Apr 2003
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dcpaq2 - im using both on my site at the moment as im unable to decide which to use.

I find flashchat looks really well , and people love it , and i have the mp3 module on it as well which people love. On the downside , it seems to freeze and slow down a lot and some messages seem to just get lost and some people get booted for no reason.

Digichat doesnt have the mp3 player , though i have a workaround , it seems to be more stable and the chat runs faster once your in.It also allows guests to chat which flashchat doesnt seem to do (or i havent looked hard enuf) .
On the down side , it takes longer to load , it costs a hell of a lot more , its hard to get someone to host it for you.

These are the things i have found so far between then , but your welcome to check them out for youself if you wish.
Reply With Quote
  #21  
Old 02-25-2006, 06:46 AM
dcpaq2xx dcpaq2xx is offline
 
Join Date: Nov 2004
Location: Merrillville, Indiana
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DjTaz
dcpaq2 - im using both on my site at the moment as im unable to decide which to use.

I find flashchat looks really well , and people love it , and i have the mp3 module on it as well which people love. On the downside , it seems to freeze and slow down a lot and some messages seem to just get lost and some people get booted for no reason.

Digichat doesnt have the mp3 player , though i have a workaround , it seems to be more stable and the chat runs faster once your in.It also allows guests to chat which flashchat doesnt seem to do (or i havent looked hard enuf) .
On the down side , it takes longer to load , it costs a hell of a lot more , its hard to get someone to host it for you.

These are the things i have found so far between then , but your welcome to check them out for youself if you wish.
I think from what your telling me Im probably better off using Flash Chat. My users will in no way go for having to wait more than a minute for a chat room to load up.

Also I tested Digichat on your site and I must say I definetly do not like Digichat and like Flash Chat much better all around.

Thank you for sharing that information with me.

Doug
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 01:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04773 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
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
  • (9)bbcode_code
  • (4)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
  • (3)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
  • (11)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_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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete