Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Products & Extensions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Water Cooler Chat into vBulletin (all versions) Details »»
Water Cooler Chat into vBulletin (all versions)
Version: 1.00, by Aristide Aristide is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Chat Modifications - Version: 5.5.5 Rating:
Released: 02-18-2023 Last Update: Never Installs: 7
Supported
Re-useable Code Additional Files Translations  

My Forum has been around since 2007 with many in-house pieces of php codes and modifications running smoothly on vBulletin 3.8.x. A recent upgrade of php from my hosting has forced me to upgrade the software and I have moved from vBulletin 3.8.x to vBulletin 5.7.2. However, my forum missed the old "MGC Chatbox Evo" and I could not find a replacement here at vb.org for vBulletin 5.x.x.

I looked around the php/javascript communities and stumbled upon the Water Cooler Chat, which I could easily integrate into my Forum. Since many vBulletin forums have a similar chatbox/shoutbox problem and are looking for a functioning chatbox/shoutbox, I decided to share this integration of "Water Cooler Chat" to vBulletin, with vBulletin community.

I have not done code development for nearly 18 years and do not plan to do some (this means, do not request some additions or code development to the provided archive files).

WaterCooler chat is a simple flat file db chat system, which was developped by Jo?o Ferreira, and which lets you embed a chat container wherever you like into your forum or website. The original archive files are available at Github.com (https://github.com/jonufele/WaterCooler-Chat)

The adjusted files for integration into vBulletin files are given below in the attachment.

Features:
  • Does not require MySQL Database / Javascript Frameworks
  • Multi Topic rooms
  • Private / Read-Only Rooms
  • Multi user
  • Password protected profiles
  • Smilies/BBcode
  • Open chat interface
  • Easy to customize themes (100% Html/Css)
  • Private messages
  • Moderator tools
  • Independent display and store buffers
  • Invite link
  • Start chat with previous conversations listed
  • Anti-Spam feature
  • Account Recovery via E-mail
  • Generate image thumbnails for faster loading
  • Attachment uploads
  • Smart archive system
  • Shared Chat Across the websites hosted on the same server
  • Private Conversation Rooms

Requirements
  • PHP >= 5.3.0
  • Ability to change permissions if necessary
  • PHP GD library (for generating image thumbnails)

Installation
See README and README for vBulletin Integration files in the archive package.

Download Now

File Type: zip Watercooler for vb-org.zip (1.86 MB, 40 views)

Screenshots

File Type: jpg screencapture, display.jpg (104.0 KB, 0 views)
File Type: jpg screencapture, global options.jpg (95.1 KB, 0 views)
File Type: jpg screencapture, admincp.jpg (67.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
dartho, punchbowl

Comments
  #2  
Old 02-19-2023, 05:54 PM
Aristide Aristide is offline
 
Join Date: Dec 2022
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the installation, you create a directory (for example "watercooler" or whatever you want) on your website (root or public_html) and them copy the package contents into that created directory.
Reply With Quote
  #3  
Old 02-26-2023, 08:30 PM
Aristide Aristide is offline
 
Join Date: Dec 2022
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone who wants to see a demo of the "water cooler chat" on my forum, should pm me and I will grant you observer access, as my forum is for "members only" and closed for registrations.
Reply With Quote
  #4  
Old 03-07-2023, 09:58 PM
Aristide Aristide is offline
 
Join Date: Dec 2022
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replacement code for bb code:

HTML Code:
<iframe id="watercooler" src="https://www.yourwebsite/watercooler/index.php" height="820px" width="960px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0"></iframe>
<script type="text/javascript">
   var CurrentUser = document.getElementById('lnkUsernameMenu').textContent;

   var mytoken = Math.random().toString(36) + Math.round(+new Date()/1000).toString(36) + "-" + Math.random().toString(36).substr(2);

   var CurrentUserName = document.getElementsByClassName("b-comp-menu-dropdown__trigger-username js-menu__username-label")[0].innerHTML;

   var iframeUrl = 'https://www.yourwebsite.net/watercooler/index.php?usr=' + CurrentUserName + '@' + mytoken;
   document.getElementsByTagName("iframe")[0].src = iframeUrl;

   document.cookie = 'wcusername='+CurrentUserName+'; path=/';
   document.cookie = 'wctoken='+mytoken+'; path=/';

</script>
For integration into vbulletin, your server should give you direct access to the $_COOKIE variable contents via php.
https://www.php.net/manual/en/reserv...es.cookies.php

Also disable your ad blockers, to allow the chat texts to be refreshed.

Stand alone demo at:
https://www.fuflixbulletin.net/water...emo/index.html
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 09:38 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.03864 seconds
  • Memory Usage 2,261KB
  • Queries Executed 18 (?)
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
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (2)post_thanks_box_bit
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_attachment
  • (4)postbit_onlinestatus
  • (4)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete