vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - Dream's Chatbox (https://vborg.vbsupport.ru/showthread.php?t=131002)

Dream 11-06-2006 10:00 PM

Dream's Chatbox
 
This adds a simple Chatbox in your forum home page for your members to chat.

The Chatbox is like a thread, members leave small messages in it for others to see. Think of it as an off-topic thread that never ends. The Chatbox can also help keep chatting out of the threads.

This mod is light on the server, uses little server resources to work. The default refresh rate is set to 5 minutes. You can disable automatic refreshing entirely in the options.

What's the refresh rate? The chatbox updates the messages shown every given seconds, that's the refresh rate. It sends a request to the server asking for new messages every X seconds, that you choose in the options.

Warning: If you set your refresh rate to 10 seconds this mod stops being so server friendly. You can do it, but be sure your server can handle it.


Features:
- Ajax (no page refreshes)
- Pages
- Set refresh rate in seconds
- Hide Chatbox contents from certain user groups
- Set user groups that can't send messages but can view chatbox
- Moderator user groups that can delete messages
- Disable auto refresh for guests
- Prune messages by user ID, user name, days old or all
- Enable/disable smilies, bbcode and [ img ]
- Automatic URL parsing
- Users can delete their own messages
- Smilies popup with all smilies you can use in messages
- Who's Online Support
- Show message dates or not
- User names linked and colored with their user group colors
- Banned Users
- Hide refresh button
- /me code
- Optional message colors
- Bunch of options in the Admin Control Panel

Live Demos: (leave your live demo in this thread!)
http://www.fliz.ru/ (russian)
http://www.sustainabilityforum.com/forum
http://www.virtualorbit.com/
http://www.bowlandcentral.com/forum


VERSION HISTORY



This mod is now final. It has all the features I think a chatbox should have, so I won't be adding more features to it. Anyone has my permission to use this as a base for another mod. It will still be updated for bugs though.

ahmed2000 11-07-2006 06:33 PM

thanx alot

Ziki 11-07-2006 07:05 PM

Awsome mate.I am using vBshout though but this is great.I would nominate it for HOTM but I already nominated APM :(

SgtTechHead 11-07-2006 07:26 PM

I receive the following MySQL error during the Product Import:

Quote:

Database error in vBulletin 3.6.2:
Invalid SQL:
show tables like vb_'sl_shout';
MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'vb_'sl_shout'' at line 1
Error Number : 1064
MySQL Version: 4.0.27-standard-log

PHP Version: 4.4.4

projectego 11-07-2006 07:58 PM

Sounds awesome, I'll check this out ASAP. Cheers, Dream. ;)

Snake 11-07-2006 08:28 PM

THanks!

redlabour 11-07-2006 09:06 PM

Shoutbox 2.1 uses less Performance then 2.0.

But this happens if everybody only looking at vb.org .... :D

http://www.vbhackers.com/f76/ajax-fl...ut-2-1-a-4536/

Dream 11-07-2006 09:25 PM

Quote:

Originally Posted by Ziki
Awsome mate.I am using vBshout though but this is great.I would nominate it for HOTM but I already nominated APM :(

Thanks alot :)

I updated the code SgtTechHead, should solve your problem.

I wanna know why someone gave this 1 star.

Oh if you are using 0.6 don't upgrade with 0.7, uninstall and reinstall. I changed the product ID. You may have to manually remove the "chatboxlite_shouts" table from the database too, im not sure if the 0.6 uninstall code removes it. The 0.7 uninstall code does remove the shouts table, so be careful. The shouts table has been renamed from "chatboxlite_shouts" to "chatbox" in case you wanna know.

If you wanna modify it and share modifications be my guest.

mktrilogy 11-07-2006 11:30 PM

nominated as hack of the month :) installed

SgtTechHead 11-08-2006 12:11 AM

Quote:

Originally Posted by Dream
I updated the code SgtTechHead, should solve your problem.

Thank you sir! I'll give it another go then.

EDIT: Well done, works great now :)

RealRnB 11-08-2006 03:14 AM

Nice thanks

Dream 11-12-2006 05:57 PM

Thanks guys :)

I updated the FORUMHOME template edit so the iframe in Internet Explorer doesn't show a border. Just put this

frameborder="0"

inside the tag

<iframe src="chatbox.php?nofocus=1" width="100%" style="border: 0px">

I updated the instructions on the zip file.

Shazz 11-12-2006 08:14 PM

Cool how guets can post :)

tamilrdx 11-13-2006 07:11 AM

Thanks Installed ! But Can you Tell me how to add the chat box to the top not in the bottom ... !

Kayden 11-13-2006 03:16 PM

Installed. Thanks.

Dream 11-13-2006 08:28 PM

Quote:

Originally Posted by tamilrdx (Post 1116102)
Thanks Installed ! But Can you Tell me how to add the chat box to the top not in the bottom ... !

Depends on where you want it. Only on the forum home, below what?

LBmtb 11-15-2006 03:12 AM

Can permissions be set in usergroup manager? I'd like to prevent unregistered people from using it. If so then I'll be trying it out.

thanks!

Shazz 11-15-2006 04:33 AM

This got over 1000 Views Very fast, potential

Basboss 11-15-2006 05:55 PM

I'm sorry, but how can I delete shouts?
is there like a command?

Dream 11-15-2006 07:39 PM

Quote:

Originally Posted by LBmtb (Post 1117665)
Can permissions be set in usergroup manager? I'd like to prevent unregistered people from using it. If so then I'll be trying it out.

thanks!

By editing chatbox.php, you can set usergroups that can't use the chatbox.

Quote:

Originally Posted by Basboss (Post 1118074)
I'm sorry, but how can I delete shouts?
is there like a command?

You click on the "X" near a shout.

LBmtb 11-18-2006 12:18 AM

Very nice. Installed with no issues.

edit: nevermind there was an issue. After the install I couldn't upload attachments even though I have the quota at 0 (no quota). Disabled chatbox and attachment uploads worked fine again so I completely uninstalled chatbox.

Any idea why this happened?

Dream 11-18-2006 12:43 AM

Uhm no. Aren't you in two usergroups, one with 0 quota and another with maximum quota?

LBmtb 11-18-2006 01:02 AM

Quote:

Originally Posted by Dream (Post 1119740)
Uhm no. Aren't you in two usergroups, one with 0 quota and another with maximum quota?

Ah yes . . .didn't realize I put myself in so many usergroups. I only checked two but one of the ones I didnt check had a limit. I'll try this again later tonight and let ya know how it goes.

Thanks.

LBmtb 11-18-2006 08:42 PM

Thanks again, works perfectly now. Here's the URL: SocalTrailRiders.org

Any way to bold comments made within the last x minutes?

Dream 11-18-2006 09:22 PM

Looking good :)

You would have to edit the code, could be a little complicated to do.

deeoo 11-24-2006 12:34 PM

-edit- Spoke too soon. Great mod!
Would be nice to have the shoutbox and the messages seperated so autorefresh won't steal the focus.

shadow smith 11-28-2006 03:14 AM

Any compatibility as a vbAdvanced module?

mdzcpa 12-02-2006 08:43 PM

Thanks for Mod!

Question: What is the easiest way to fix the navbar link on the vb advanced cmps page? The link to chatbox doesn't work from there.

Thanks.

haytham 12-03-2006 07:14 PM

just installed on 3.6.4 with no problems so far..I'd like to be able to include smilies and colored text though..any chance I could? Thanks..the other VB shoutboxes never worked on my VB..no idea why though.

Knightmane 12-05-2006 10:51 PM

Is it possible to run this at the same time as the usual vBShout... say... vBshout on forumhome and chatbox on another of the other forums? I ask because I know you can't have 2 instances of vBshout at the same time. Is this possible?

Feckie (Roger) 12-07-2006 10:58 AM

I don't suppose there will be an ajax version..............

All The Same Installed and working great..

Many Thanks

scan-pa 12-07-2006 11:42 AM

How can I set this so Some usergroups can not even See the chatbox?

tuanluu 12-09-2006 02:26 AM

Nice I will give it a try on 3.6.4

TyPenn613 12-10-2006 02:02 AM

I have two stupid questions as someone who is very illiterate with computers. First, how do you delete some of the chat logs? I would like to keep mine between 3 and 5 pages. The other, is there a way for an auto-refresh? Any help is greatly appreciated, and excellent work on this program.

scan-pa 12-10-2006 04:58 AM

Quote:

Originally Posted by TyPenn613 (Post 1135493)
I have two stupid questions as someone who is very illiterate with computers. First, how do you delete some of the chat logs? I would like to keep mine between 3 and 5 pages. The other, is there a way for an auto-refresh? Any help is greatly appreciated, and excellent work on this program.

I am not the coder of this, but I do use it.

Click on the x next to the user on the posts you want to delete.

There is a setting in the chatbox.php file that allows you to set the time in sec. before it refreshes the chatbox. If I remember it is set to 300 seconds.

hope that helps.

TyPenn613 12-11-2006 03:35 AM

Thanks scan-pa. I got the refresh and manual delete down.

Is there a way for it to delete automatically after either so many messages, pages, or time? If not, is there a way to mass delete? I ran it for about 24 hours, and 30 pages it seems that could be a problem. While I'm not really worried about space on my server, I don't want a log that goes on forever. Any thoughts? Thanks guys.

jailer 12-11-2006 06:50 AM

edit

Dream 12-11-2006 09:29 AM

Quote:

Originally Posted by TyPenn613 (Post 1136136)
Thanks scan-pa. I got the refresh and manual delete down.

Is there a way for it to delete automatically after either so many messages, pages, or time? If not, is there a way to mass delete? I ran it for about 24 hours, and 30 pages it seems that could be a problem. While I'm not really worried about space on my server, I don't want a log that goes on forever. Any thoughts? Thanks guys.

Right now there isn't a way unless you code it, sorry. I plan on making Admin Control Panel options for this with mass pruning. I'll keep your idea in mind to add mass pruning by date, page etc. There's no problem for the chatbox to keep lots of pages. I'm a little busy lately though, so if anyone wanna code this be my guest.

jyajay 12-11-2006 12:36 PM

Everybody that loads the index will now be shown at the chatbox at who is online, how can I change that?

Quote:

Unknown Location
/chatbox.php?&nofocus=1

Ok, this mod is sucking too much ressources - uninstalled. :(

*edit2*

With a simple wget cronjob set up that creates a static html file everything works fine now, I'd really recommend everybody doing that - especially on high loaded index pages.

TyPenn613 12-13-2006 08:40 AM

Thanks Dream. Keep up the great work!


All times are GMT. The time now is 06:43 AM.

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.01846 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete