Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Embedded chat Details »»
Embedded chat
Version: 1.00, by wot-Mike wot-Mike is offline
Developer Last Online: Mar 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-27-2002 Last Update: Never Installs: 150
 
No support by the author.

This "hack" will allow you to run a semi-integrated (free or paid) chat room "inside" your forum:

+ It's quite generic and should work with several chat providers (made a seperate template, just for the applet code)
+ The chat room will be displayed within your forum's structure,
+ The chat applet will be sized according to the user's screen resolution (could get scary at 1600x1200 )
+ People will be logged into the chat room using their forum usernames (if the chat supports auto-login)
+ Invalid characters in usernames will be replaced before logging in to the chat, plus too lengty names will be shortened
+ Easy installation

- At this time there's no feedback from the chat room to the forum. A "chat monitor" is planned though (version 2)

The install docs and template examples are mainly focussed on the chat provider we use (http://www.raidersoft.com), but it shouldn't be a problem adjusting one or two things to get this thing to work with your own chat provider.

The sizes of the chat applet haven't been tested out fully. I have no clue how bigger resolutions work out. All the rest seems to work fine.

Hope you like it...

[update 1.4]Sizes can now be set more easily, just by editing the chatredirect template, nothing else.
Added support for raidersoft's ICE, which is more flexible with usernames.

Show Your Support

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

Comments
  #32  
Old 03-29-2002, 11:00 PM
Axel Foley's Avatar
Axel Foley Axel Foley is offline
 
Join Date: Nov 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hack is perfectly working...

Two questions:

1) In the security txt you say:

Quote:
Go to: http://freechat.raidersoft.com and log in.
On the "General" page, scroll down a bit, and there's what we want:
* Disable /nick Command
Put a mark behind this one to activate it and save your changes
On the General Tab at raidersoft.com I couldn't find that settings. Could you verify? Don't know how to disable it.


2) Is it possible to hack index.php so to have a Who's on chat bar, like the Who's Online one? How could I do that?


Thanks for sharing this hack...it's great.
Reply With Quote
  #33  
Old 03-29-2002, 11:43 PM
wot-Mike wot-Mike is offline
 
Join Date: Oct 2001
Location: Netherlands
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using the free chat? This setting is not available on the free chat. Most of the txt I wrote is based on the paid version. It doesn't matter for the installation instructions, but it does for the extra's

And a "who's chatting" add-on is planned, but I wonder if it's better to wait for vB3 before spending too much time on someting that might need to be completely rewritten then.
On the other hand, having sort of a base ready by then might help.

I'm playing with such a thing though, but I don't want to change tables and such. If it's going to be made, then it should use whatever vBulletin has to offer already

(Do I ever sleep? Hmm, just about every time I close my eyes for more then a few seconds, I drop off :sleep: )
Reply With Quote
  #34  
Old 03-30-2002, 12:22 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea, upgrade to the pro version. You'll have more settings than you'll know what to do with. I upgraded and it rocks. And that's correct, the setting for disabling nicks is not in the free version.
Reply With Quote
  #35  
Old 03-30-2002, 02:45 AM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok....i got everything merged and working (will soon post the chatbit template info for anyone wanting to use Jpilot and WTfrontend with this)...

however, i have one question: a few people wanted to know if there was a way to get rid of the sizing thing, as they were previously able to resize their chat windows, and now cannot.....

shouldn't there be a way to put in a link above the applet which would let you resize your chat window?
Reply With Quote
  #36  
Old 03-30-2002, 12:55 PM
wot-Mike wot-Mike is offline
 
Join Date: Oct 2001
Location: Netherlands
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, you can call the chat.php with "prefixed" settings, like
http://blah.com/chat.php?setwidth=720&setheight=320

Adding such links to your template(s) will allow people to click them and choose the applet size of their choice.

To explain about how the chat.php works:
1- It first checks for a valid username (if not then the login window appears)
2 - Then it checks for setwidth and setheight variables (if not it calls chatredirect to get those)
3 - If valid variables are found, then the username is "modified" (if necessary) and then the chatbit and chat templates are called, et voila...

By putting setheight and setwitdh directly into the url, you'll bypass the chatredirect...

Maybe the next version should look at the browser window size instead of the screen resolution? But I think that's more, umm, sensitive to weirdness. Well, let's try and see...

I'm curious about your chatbit template, by the way
Reply With Quote
  #37  
Old 03-30-2002, 02:43 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem....i am going through them now to take out a few site proprietary things, and will post a zip when done.....
Reply With Quote
  #38  
Old 03-30-2002, 06:13 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok....so in order to avoid user confusion, I created a zip file of the jpilot embed add-on pack I did...but please note:

THE AUTHOR OF THIS HACK STILL DESERVES ALL THE CREDIT.

All I am doing is sharing some of the modifications to it that I made in order to make it work prettily with jpilot.

I also found a free IRC server and put in the connection info for it.

Realistically, if you unzip the file, and upload all contents in the "forumsroot" directory into your forum root, and add the three templates, it will run as is, without any modifications needed.

However: You DO want to at least go ahead and change the channel names....as I doubt you want to call your chat room "#test", or share it with every other person downloading this hack who doesn't edit the channels list

I edited the install file, to make it all make sense.....and renamed the original install file.

The free server which is listed in the parameters does not support Nickserv/Chanserv/Botserv/Memoserv, so you can either use a different server, or simply use the contents of the "without_serv_options" version of the chatbit template.

There are three versions of the chatbit template included:
one with all options, one with op controls, but without *serv options, and one with no options, just the applet.

There are also two colors of graphics: blue and green. the green is the main one, as that is what i use for our forums, and the blue is in a subfolder, but you can easily copy them over the others.

Hope it helps

Since the file is too big (due to the graphics) to attach here....the file can be downloaded here
Reply With Quote
  #39  
Old 03-30-2002, 06:30 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok....last thing....but here is a screenshot for those interested in seeing how it works.

Mind you, this is just with my color scheme, but yours will adapt according to the theme of your board.
Reply With Quote
  #40  
Old 03-31-2002, 02:01 PM
Axel Foley's Avatar
Axel Foley Axel Foley is offline
 
Join Date: Nov 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ladyfyre, first of all I wanted to tell you that it works fine, but I had to make some modifications:

1. In controls.js you have:

PHP Code:
if (document.images) {
    
away_1 = new Image
    away_2 
= new Image
    away_1
.src 'gfx/setaway.gif'
    
away_2.src 'gfx/setback.gif'

You have to change to:

PHP Code:
if (document.images) {
    
away_1 = new Image
    away_2 
= new Image
    away_1
.src 'chatgfx/setaway.gif'
    
away_2.src 'chatgfx/setback.gif'

2. In the chatbit template you capture the user clicks on actions in this way:

PHP Code:
<a href="javascript:void(-1);" onClick="javascript:jpilot('ping');"><img src="chatgfx/ping.gif" width="70" height="20" vspace="2" hspace="1" name="ping" border="0" alt="ping selected user" align="absmiddle"></a>&nbsp
The problem with this is that the browser opens a new empty window everytime you click on an action button. I had to change it in this way:

PHP Code:
<a href="javascript:void(-1);" target="_self" onClick="javascript:jpilot('ping');"><img src="chatgfx/ping.gif" width="70" height="20" vspace="2" hspace="1" name="ping" border="0" alt="ping selected user" align="absmiddle"></a>&nbsp
In practice I just added the target="_self" attribute to tell the browser to render the link in the current frame and not open a new one.

I attach the chatbit modified template for anyone who's trying this hack.

Anyway thanks for sharing this one...
Reply With Quote
  #41  
Old 03-31-2002, 03:12 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good calls there Axel

mine is edited differently from the version I posted, so I appreciate you pointing things out!

The target issue is actually one that I created myself....mainly because the applet had one big downfall: links clicked on in chat opened in the same window, thus kicking the user out of the chat. So I added the page default for opening in a new window. I think I changed most of the links to self...but obviously looks like I missed a couple!!!

Thanks for the revisions
Reply With Quote
Reply

Thread Tools

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 02:16 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.05025 seconds
  • Memory Usage 2,324KB
  • 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
  • (4)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
  • (1)pagenav_pagelinkrel
  • (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