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)

Zaeolos 08-11-2007 04:33 PM

Nevermind about the colored names, I figured it out. If anyone else needs to be able to do this, here it is:

Edit the chatbox.php file in the forums directory in 2 locations.

Find on line 178 & 318

Code:

$select = 'c.shoutid, c.userid, c.username, c.shout, c.dateline, c.ipaddress, c.color, u.usergroupid';
Change this to

Code:

$select = 'c.shoutid, c.userid, c.username, c.shout, c.dateline, c.ipaddress, c.color, u.usergroupid, u.displaygroupid';

rnmcd 08-11-2007 04:39 PM

I'm not even smart enough to figure out what the "Message Colors" option in the admincp does.

chillingcafe 08-13-2007 10:55 PM

let me try this :)

Done and it cnsumes a bit of more resources than the MGC Chatbox :)

Dream 08-14-2007 09:00 AM

Chatbox has been updated, version 2.0

- fixed minor bug that could stop the chatbox from working if the ajax response had newlines
- fixed bug that the chatbox was using the primary usergroup colors instead of the display usergroup colors for the username coloring
- fixed instructions for the chatbox under the navbar or under the forum list, old code's collapse wasn't working properly
- changed the default Chatbox place on the forum home page in the install instructions to show it after the forum listing
- updated the install instructions to be easier to follow and have more info

To upgrade follow the instructions in upgrade.txt

Dream 08-14-2007 09:03 AM

Quote:

Originally Posted by rnmcd (Post 1315275)
I'm not even smart enough to figure out what the "Message Colors" option in the admincp does.

Message colors lets your users pick a color to show their messages in that color.

Dream 08-14-2007 09:04 AM

VERSION HISTORY

version 1.2
- Added option to let users delete their own messages.
- Added option to show username links with user group colors. Note this may raise resource usage.
- Added WOL support.
- Added option to change the HTML tag used around usernames.
- Added smilies!

version 1.3
- Now when the Chatbox auto-refreshes, the message the user was typing isn't lost.
This is not perfect, because by the time the Chatbox refreshes it gets the message, and the user has time to type more stuff while the page is loading, so it may lose some letters.

version 1.4
- Added Ajax!
Now you can set your refresh rate to 3 seconds and make your server cry to mommy!

version 1.5
- Show Time? now correctly removes time from messages. When it does, mouseover the user name will show the time.
- Added automatic URL parsing. Requires BBCode to be enabled.
- Added hide refresh button option, good if you have a low refresh interval.
- Added option to change the image smilies button into a normal button, same as send and refresh.
- Added Banned Users option.
- Input buttons now use the correct button CSS class.
- Added cron files to the zip file, auto prune and auto post, the instructions to use them are in cron/cron.txt

version 1.6
- Fixed IE7 bug, the ajax code now uses vB's ajax functions.

version 1.7
- Added /me code. Users can use the /me code in front of messages to denote an action.
- When posting the posted message now appears right away, as opposed to having to wait for a refresh. This is faster and uses a little less resources.
- Added Chatbox height option. To use it, redo your forumhome template edit. If you like your Chatbox size you don't need to do it.

version 1.8
- Forced align="left" on main <div>s because people were having problems with the chatbox content being centered.
- Changed javascript function name from deleteShout() to deleteMessage(), because this is a chatbox not a shoutbox :P and the name was visible to users on mouseover
- Added time CSS class to times so it matches the rest of the forum (btw Mark I always loved your forum ;) since I made games for v3arcade)
- Added javascript isRefreshing check, so the chatbox won't have two parallel refresh instances and show duplicate messages, to fix problem on slower connections.
- When showing latest messages at the bottom, the chatbox now will only scroll to the bottom when there are new messages. (only works if you are not updating all messages on each refresh)
- Fixed javascript warning, was getting shoutsDiv <div> by it's name, wasn't defining shoutsDiv variable. (wonder how it worked in the first place)
- Added option to update all messages on refresh. This will fix deleted messages not being removed from users chatboxes, but can highly increase resource usage. The default method is getting only the new messages.
- Added message colors. You must enable it in the Chatbox options. You can change the available colors in the options.

version 1.9
- Added option to disable auto refreshing for guests. This can save resources if you have a low refresh rate.

version 2.0
- fixed minor bug that could stop the chatbox from working if the ajax response had newlines
- fixed bug that the chatbox was using the primary usergroup colors instead of the display usergroup colors for the username coloring
- fixed instructions for the chatbox under the navbar or under the forum list, old code's collapse wasn't working properly
- changed the default Chatbox place on the forum home page in the install instructions to show it after the forum listing
- updated the install instructions to be easier to follow and have more info

James Argo 08-14-2007 11:40 AM

First post on the board.

Dream, thanks for the updated version! :)

In 1.9 post announcement, you said 1.9 is your final version and didn't think of upgrading it anymore. But then again, here comes the 2.0! :D

BTW, can someone assist me how to set it so I can have only last 50 messages shown? I mean I want it to delete first message automaticaly after it reaches 51 messages so only 50 last messages shown... :)

Thank you!

;)
Jaymz

Dream 08-14-2007 12:03 PM

You are welcome :)

You can turn off the "Show Pages?" option, so it will only show the last 50 messages, but they will still exist in the database. Then you can use the files in the cron/ folder to auto prune your messages say older than 30 days, or just keep the old messages in case you want to see them later.

James Argo 08-15-2007 06:48 PM

Awesome, fast reply! Thanks alot Dream! I appreciate all your effort on it :)

AshleyTwo 08-16-2007 03:00 PM

Is it possible to install this in a subforum rather than on the home page? Thanks.

Dream 08-17-2007 01:35 AM

Yes, you would need some template conditionals and to edit the right template. I wouldn't know exactly which one to tell you though.

CrashPush 08-18-2007 12:45 AM

Bravo Dream! You're the man!

Ekshi 08-20-2007 05:15 PM

Hi, I've a problem with Tag Around Username option. I want usernames in a bold font and i wrote strong into the Tag Around Username option but nothing happened on the usernames in the chatbox. Can anyone help me?

Dream 08-20-2007 05:19 PM

"strong" or "b" should work. Aren't they already bold?

Ekshi 08-20-2007 07:05 PM

Quote:

Originally Posted by Dream (Post 1321765)
"strong" or "b" should work. Aren't they already bold?

I've already try "b" and "strong" but it didn't work.

Ba$im 08-20-2007 07:09 PM

hello Dream
I have some question if u don’t mind
shall I enable ajax on my forum before? cuz I use arabic charset and it have many problem as u know with ajax

how load it will eat?

thanks

Dream 08-20-2007 08:44 PM

Yes, although I think this mod doesn't work in arabic forums.

Infante 08-21-2007 04:40 AM

I just tried to install this. And this is what I got
Quote:

Not Acceptable
An appropriate representation of the requested resource /admincp/template.php could not be found on this server.

Apache/1.3.37 Server at forum.realcavsfans.net Port 80

Ekshi 08-21-2007 08:27 AM

Quote:

Originally Posted by Ekshi
Hi, I've a problem with Tag Around Username option. I want usernames in a bold font and i wrote strong into the Tag Around Username option but nothing happened on the usernames in the chatbox. Can anyone help me?

Are there anyone have the same problem?

l3asturd 08-21-2007 04:33 PM

Installed yours because it was easy to understand. You also gave an easy option for vbadvanced users. It looks great and was in use minutes after being installed!

MOTM!

http://www.disctribution.com/forums/

nureeves 08-24-2007 01:05 AM

heyy :) ... would you please add to this mod, style button for chat ... such Bold, Italic .. and also for text size !!!

cuphongle 08-28-2007 03:24 PM

nice one dream

how do we disabled banned usergroup from seeing the shoutbox?

WNM07 08-29-2007 11:30 AM

the 'Text Input on Top' option doesn't seem to be working. Where can i check the template? is there one?

otherwise it works great thanks

Otikeu 09-01-2007 06:31 AM

Hello,

I believe the three features would be handy for the chatbox, which others have..
  • /ban *username or *userid* Function.
  • /unban *username or *userid* Function.
  • /notice To set a notice above all shouts.
I hope you could add them, they help keep monitoring of the chatbox easier. Otherwise, I'm going for the MCG shoutbox, but i really love you're quality as it gives what is needed.

Thank you.

SSG.D 09-02-2007 10:05 PM

Installed! and thanks!:D

RFViet 09-03-2007 12:49 AM

Can it be seen from other pages ??

Dream 09-03-2007 01:19 AM

Quote:

Originally Posted by nureeves (Post 1324485)
heyy :) ... would you please add to this mod, style button for chat ... such Bold, Italic .. and also for text size !!!

Sorry no new features are planned for this mod.
Quote:

Originally Posted by cuphongle (Post 1327415)
nice one dream

how do we disabled banned usergroup from seeing the shoutbox?

You put the usergroup you want in the 'cant see chatbox' option.
Quote:

Originally Posted by WNM07 (Post 1328036)
the 'Text Input on Top' option doesn't seem to be working. Where can i check the template? is there one?

otherwise it works great thanks

There are no templates in this mod. The 'text input on top?' option is to show the send button etc on top or at the bottom, and it also changes the messages order for them to begin from the bottom or from the top.
Quote:

Originally Posted by Otikeu (Post 1329979)
Hello,

I believe the three features would be handy for the chatbox, which others have..
  • /ban *username or *userid* Function.
  • /unban *username or *userid* Function.
  • /notice To set a notice above all shouts.
I hope you could add them, they help keep monitoring of the chatbox easier. Otherwise, I'm going for the MCG shoutbox, but i really love you're quality as it gives what is needed.

Thank you.

Hello, no new features are planned for this chatbox. You have a banned users option in the chatbox options in the admincp.
Quote:

Originally Posted by SSG.D (Post 1331028)
Installed! and thanks!:D

You are welcome :)

Dream 09-03-2007 01:21 AM

Quote:

Originally Posted by RFViet (Post 1331085)
Can it be seen from other pages ??

If you want it to appear on all pages of your forum, add the forumhome template edit at the end of the navbar template. That would show the chatbox at the top of your forums though. To add it to the bottom of all pages you would need to add the template edit somewhere else, but I wouldn't be sure where.

Ohiosweetheart 09-07-2007 01:19 PM

Hiya. I'm going to try your chatbox. I currently have the one from vBDev installed and it's irritating, lol. It's a good one, but doesn't work well on my forum for IE7 users.

So here I go!

Ohiosweetheart 09-07-2007 01:39 PM

Well, It's easy to install and I like it except for one thing. I need the text input and buttons to stay at the bottom of the chatbox, not move with each post.

Sorry Dream, it's back to the other one for me :(

Staxed 09-10-2007 01:46 AM

are there any browser or computer settings that would make it so this mod doesn't work?

(maybe something to do with AJAX)?...i can't use it when i'm at work, and a member just notified me he is having the same issue...

but at home i can use it just fine...

yoyoyoyo 09-10-2007 04:48 PM

The option to disallow certain usergroups to see the chatbox is a good idea, however they CAN see the chatbox - just not the messages in them. This seems kind of pointless - is there a way I can configure the chatbox to be only viewable by those that can also chat, and totally invisible to those that can't?

agilent 09-11-2007 02:35 AM

Installed, looks good. I put it under What's Going On?

Dream 09-11-2007 03:13 AM

Quote:

Originally Posted by Irisfire (Post 1335871)
are there any browser or computer settings that would make it so this mod doesn't work?

(maybe something to do with AJAX)?...i can't use it when i'm at work, and a member just notified me he is having the same issue...

but at home i can use it just fine...

This mod should work on all browsers. What browser are you using? And does it gives errors?
Quote:

Originally Posted by yoyoyoyo (Post 1336322)
The option to disallow certain usergroups to see the chatbox is a good idea, however they CAN see the chatbox - just not the messages in them. This seems kind of pointless - is there a way I can configure the chatbox to be only viewable by those that can also chat, and totally invisible to those that can't?

You can use template conditionals to hide the chatbox from usergroups. Not sure the exact code though.

yoyoyoyo 09-11-2007 09:52 AM

Quote:

Originally Posted by Dream (Post 1336713)
You can use template conditionals to hide the chatbox from usergroups. Not sure the exact code though.

I realize that - the conditionals are:
PHP Code:

<if condition="is_member_of($bbuserinfo, 5, 6, 7)">
<
chatbox code>
</if> 

I just thought that maybe it should be in the instructions or hardcoded in to the hack since you offer the option. No big deal. Thanks again.

WNM07 09-14-2007 02:23 PM

how can i make this viewable in one forum only? i know i need an <if 'condition'
but i don't know what exactly

Dream 09-18-2007 06:11 AM

Not sure, ask for help here:

https://vborg.vbsupport.ru/forumdisplay.php?f=111

No love anymore for my chatbox since MGC came along :(

just because it has more features *shakes fist*

Dream 09-18-2007 06:13 AM

Quote:

Originally Posted by Ohiosweetheart (Post 1334231)
Hiya. I'm going to try your chatbox. I currently have the one from vBDev installed and it's irritating, lol. It's a good one, but doesn't work well on my forum for IE7 users.

So here I go!

Quote:

Originally Posted by Ohiosweetheart (Post 1334236)
Well, It's easy to install and I like it except for one thing. I need the text input and buttons to stay at the bottom of the chatbox, not move with each post.

Sorry Dream, it's back to the other one for me :(

No problem, suit yourself. Be glad you have multiple chatboxes to choose from now as I wouldn't change that.

Dream 09-18-2007 06:14 AM

Quote:

Originally Posted by yoyoyoyo (Post 1336881)
I realize that - the conditionals are:
PHP Code:

<if condition="is_member_of($bbuserinfo, 5, 6, 7)">
<
chatbox code>
</if> 

I just thought that maybe it should be in the instructions or hardcoded in to the hack since you offer the option. No big deal. Thanks again.

The way this mod is coded (with manual template edits) there's no way to do that.

apiasto 09-18-2007 06:06 PM

great hack just installed it on my board workin fine, have a question though i have alot of smilies like over 300 and i dont want all of them to show in chat box.Is there a way that i can make a seperate folder with certain smilies? if it is then where do i have to do changes. like right now the smilies path is default to images/smilies. I will appreciate your help and for sure its going for nomination, thnx


All times are GMT. The time now is 11:35 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.02053 seconds
  • Memory Usage 1,847KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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