PDA

View Full Version : Chat Modifications - Dream's Chatbox


Dream
01-11-2008, 10:00 PM
This adds a Chatbox in your forum home page.

Here's how it works: every 5 minutes the chatbox asks the server if there are new messages. You can change this 5 minutes to any number of seconds you want, but the lower you go the more server resources the chatbox uses.

Features:
- AJAX
- Pages
- Change refresh rate
- Hide chatbox content from chosen usergroups
- Set usergroups that can't send messages
- Set moderator usergroups that can delete messages
- Can disable auto refresh for guests
- Prune messages by user ID, user name, days old or all messages
- Enable smilies, bbcode and/or [ img ]
- Automatic URL parsing
- Option for users to delete own messages
- Smilies popup with all smilies you can use
- Who's Online Support
- User names uses usergroup colors
- Ban Users
- /me code
- Message colors
- and more

This mod is final, no new features will be added.

Dream
01-12-2008, 05:49 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

version 2.1
- changed ajax code for compatibility with vB 3.7

version 2.1.1
- color chosen by user now gets saved in a cookie. to update mod, just upload chatbox.php and chatbox_ajax_color.php

Dream
01-12-2008, 05:52 AM
reserved2

Dream
01-12-2008, 06:26 AM
I just saw the options of this mod after 1 year and I was overwhelmed. I don't remember coding all that. I must had too much free time.

Sofia
01-12-2008, 07:43 AM
Hii Dream ! Thank you for this Chatbox 3.7 :)

projectego
01-12-2008, 11:09 AM
Nice one. Cheers! :)

jerrygad
01-13-2008, 08:26 AM
I like this. Thanks for sharing it with us :)

Toxizen
01-13-2008, 04:16 PM
A few things I noticed people were unhappy about when I switched to this chatbox from a prior chatbox and I wanted to know if there was a way I could fix these.

Bold, Underline, Font Style implemented in the chatbox. Also a way for when you select Font Color for the user not to have to keep reselecting their font color every time they type a message.

When you set it so that people can delete their own messages, the X appears not after the message, but after their username, hence the whole message doesn't delete, just the username of the person who posted the comment in the chatbox. The comment remains.

Lastly, how can I make it so that mods can prune, edit and delete messages from the Chatbox?

Other than that on the positive this chatbox is more readable than the other one we were using and also it fits in much better with the template. This will show you whats been done with it:

http://www.tonycomix.com/forum/

Since the install instructions threw me off cause I couldn't find:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

in the navbar template I just went into the FORUMHOME template, used the instructions for the Whats Going On? box, copied and pasted that code where I wanted the Box located and added it to the top of the forum that way.

JamesC70
01-13-2008, 04:27 PM
Since the install instructions threw me off cause I couldn't find:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

in the navbar template I just went into the FORUMHOME template, used the instructions for the Whats Going On? box, copied and pasted that code where I wanted the Box located and added it to the top of the forum that way.
This installation code is written for 3.6.8 and 3.7 templates. You're still on 3.6.6, so a search in the Navbar template for "calendar" will work. Insert the desired code just before the </tr> appearing after "calendar".

C.ooder
01-13-2008, 04:32 PM
thank you

Toxizen
01-13-2008, 04:34 PM
This installation code is written for 3.6.8 and 3.7 templates. You're still on 3.6.6, so a search in the Navbar template for "calendar" will work. Insert the desired code just before the </tr> appearing after "calendar".

I dunno it sorta looks ok the way it is. However, still there is the issue with the delete code so I disabled it. Heres the way it looks on the board:

http://img236.imageshack.us/img236/1654/cbfq5.gif

Oh yeah one thing I forgot, when you click on the chatbox link, nothing happens.

JamesC70
01-13-2008, 06:18 PM
Having the chatbox on your front page negates the need for a link on the Navbar, so all is good. Leave the Navbar link out. :up:

Dream
01-14-2008, 12:13 AM
Toxizen, no new features are planned for this chatbox. You can choose from other two chatboxes that are full of features in the 3.6 mod forum.

This chatbox version is for 3.7, I see you are using 3.6.

Lombardo
01-14-2008, 12:18 AM
Hey dream is it possible to put an image on the righthand side of the chatbox?

Dream
01-14-2008, 01:08 AM
I think it would be complicated to do, you would need to edit chatbox.php.

Mark.B
01-14-2008, 03:22 PM
Thanks for updating this, Dream, I was hoping you would since I have just upgraded to 3.7 and didn't want to use one of the other shoutboxes.

All working fine, for a demo (from a guest view) see in my sig, if the link is still there.

Lombardo
01-14-2008, 07:51 PM
I think it would be complicated to do, you would need to edit chatbox.php.

ok i'll just leave it.Thank you.

Alibass
01-22-2008, 05:07 PM
Running 3.6.8PL2 here and when I type a message and click send, box grays out and nothing happens. Refresh button doesn't work either. Can't seem to get chatbox working at all. :confused:

Dream
01-22-2008, 06:43 PM
this one is for 3.6

https://vborg.vbsupport.ru/showthread.php?t=131002

Alibass
01-22-2008, 07:00 PM
Damn my bad, thanks dream. What's the ole saying "if all else fails read the directions!"
I have a 3.7 test board setup and was going to install on 3.6.8 first and then 3.7.0
I guess it's obvious I installed 3.7 product to 3.6.8 :o

Kaelon
01-23-2008, 03:00 AM
Works beautifully with vB 3.7 Beta 4. Very nicely done, Dream. I love the simplicity and elegance of it.

Kaelon
01-23-2008, 12:28 PM
Update: So, I have found a problem. I want to disable the Chatbox's use for non-subscribers. Subscriptions in vBulletin typically add a user to a secondary usergroup. However, if I prevent a primary usergroup from using the Chatbox, no matter what secondary usergroup they are added to, they are still prevented from entering text in the Chatbox.

Help!

gwerzal
01-25-2008, 12:05 PM
Thanks!

Just installed and added it as a Vba module and there both working perfectly.

Cheers man

metin
01-25-2008, 06:43 PM
mm nice thanx

Kaelon
01-27-2008, 05:28 PM
Update: So, I have found a problem. I want to disable the Chatbox's use for non-subscribers. Subscriptions in vBulletin typically add a user to a secondary usergroup. However, if I prevent a primary usergroup from using the Chatbox, no matter what secondary usergroup they are added to, they are still prevented from entering text in the Chatbox.

Help!
Any thoughts on this, Dream?

Mark.B
01-29-2008, 01:42 PM
I am not sure the refresh button works properly on this version....If I post a shout on one account and then, on another PC with a different accoutn press the refresh button, it doesn't bring the new shout up.

I've tried it with "get all new shouts" both enabled and disabled tono avail.

ramsayeg
03-11-2008, 10:41 PM
This is exactly what I was after .Thank you very much for the hard work!

powerful_rogue
03-21-2008, 07:54 PM
Dream,

Just a quick question! How come you no longer wish to develop this mod and add further features?

Just out of curiosty!

Dream
03-26-2008, 09:43 PM
Because I use this on my own website, and it fits my needs. Also it already has a lot of features, and I don't wish to work on this anymore that is needed.

There are many different chatboxes to choose from too if you need more features. I don't think chatboxes should do and be so complicated as some are today though.

powerful_rogue
04-04-2008, 08:21 PM
Hi Dream.

When I had this installed on 3.6.7 I managed to have it in the "Whats Going On" section, however for the 3.7 version I cant seem to find the template edits to place it there.

I know this is un-supported, but could you help please!

Thanks

Dave

Dream
04-04-2008, 09:22 PM
in the zip file theres a text file with instructions on how to add there

yinyang
04-05-2008, 03:06 PM
Thank you. Installed and users loving it.

One thing, and this may be simple, but I can't figure it out.

How do you change the background color of the chatbox?

yinyang
04-06-2008, 01:27 PM
figured it out!

just paste allowTransparency="true" in the iframe attributes.

AlexanderT
04-11-2008, 05:01 AM
I upgraded to 3.7rc yesterday and subsequently also upgraded Dream's Chatbox to 2.1. Now I (and my users) have random Ajax error messages popping up on the Forumhome where Chatbox is installed. This never happened while we were still running 3.69 + Chatbox 2.0.

See attachment.

AlexanderT
04-11-2008, 05:35 AM
I upgraded to 3.7rc yesterday and subsequently also upgraded Dream's Chatbox to 2.1. Now I (and my users) have random Ajax error messages popping up on the Forumhome where Chatbox is installed. This never happened while we were still running 3.69 + Chatbox 2.0.

See attachment.

Update: It seems the error occurs when, as the error message suggests, there is a communication loss. This can happen for instance when you unplug your internet connectivity while the chatbox ajax call is waiting for a response, or when you put your notebook to standby and resume again later.

Perhaps there is a parameter to vb's/Yahoo's Ajax routines to surpress the error exception?

Update 2: It seems there is. Yahoo Ui Library defines a YAHOO.util.Connect.asyncRequest callback for handling failures: http://developer.yahoo.com/yui/connection/ and vB is handling this via vBulletin_AJAX_Error_Handler.

AlexanderT
04-11-2008, 08:32 AM
OK, I replaced

failure: function(o) { window.alert('AJAX error, please try again. (HTTP status: ' + o.status + ' / ' + o.statusText + ')'); }

with

timeout: vB_Default_Timeout,
failure: vBulletin_AJAX_Error_Handler

in getNewShouts(), and the error popup seems to be gone.

Dream
04-11-2008, 12:56 PM
Yup that happens here too when my computer hibernate and lose connection to the internet. If this gets too annoying I'll remove it depending on the status error.

AlexanderT
04-11-2008, 09:49 PM
Dream, there seems to be also other situations. I had a couple of my users report this to me the first day I upgraded to vB 3.7rc. To me it also popped up a few times when I switched back from another Firefox tab to the one containing my forum with the chat installed. It's probably best to make the error handling conditional and ignore it in case of a "connection loss".

rapidphim
04-19-2008, 01:59 PM
can someone please tell me how many queries this thing will use? What are the pro and con among this with MCG and CChat?

bornoffire
05-02-2008, 10:29 PM
When i am idle on the forum page it pops this error up.

"AJAX error, please try again (HTTP status:0/Communication failure)"

I see you guys are aware of this. Can u tell me how to disable this?

AlexanderT
05-03-2008, 03:21 PM
Check my post #36.

ssandgirls
05-09-2008, 09:21 AM
Thankyou Dream....... Ive been using your 3.6 chatbox for a while... and just upgraded to this one , its working perfectly:)

bornoffire
05-09-2008, 09:37 AM
OK, I replaced

with

in getNewShouts(), and the error popup seems to be gone. Where is getNewShouts()?

AlexanderT
05-09-2008, 12:02 PM
In the main php file. It's a function there.

GateKeper
05-16-2008, 05:18 PM
Tried what you suggest in the above post 36, still getting the Ajax error.

bornoffire
05-16-2008, 07:16 PM
I tried and error went away for me, make sure you are doing correctly.

Stubbed
05-20-2008, 05:26 AM
There are many different chatboxes to choose from too if you need more features. I don't think chatboxes should do and be so complicated as some are today though.

Exactly why I prefer to use your one..

One question though, I want to have it on a completely seperate page? I don't want it on the front page at all.

Dream
05-20-2008, 05:57 AM
Just link to chatbox.php.

Stubbed
05-20-2008, 08:25 AM
orly?

It appears that that doesn't put it in a skin however...

How much of a major would it be to do that? Just a basic page with this.

GateKeper
05-29-2008, 12:20 AM
ok no more error message, but we are finding a big time lag, even though the refresh rate was set to 0 and or 3 , and or 5 seconds, members are telling us it take up to a minute to get the message, any ideas, and no our server is not the issue, but I have noticed that this really started once we went to 3.7.0, prior to that release, no lag at all

Any thoughts ?

Ryan Ashbrook
05-30-2008, 02:22 AM
Hi Dream,

First off, I think your plugin is amazing. It works wonders and I especially love the use of AJAX.

However, my question is, what are your plans concerning the use of Ignore Lists?

My users have been complaining lately because the Chatbox does not honor the Ignore List.

I have plans to implement this myself, however I was wondering if you also had plans to add this in.

Thanks!

Dream
05-30-2008, 04:18 PM
Hello Ryan, I don't plan on improving this mod anymore. But anyone is welcome to do so, and re-release it if they so wish.

Ryan Ashbrook
05-30-2008, 07:45 PM
Thanks for clarifying. :)

I may yet take you up on that (improving and re-releasing) if time permits. :)

GateKeper
06-02-2008, 01:38 AM
Any thoughts or suggestions ?

ok no more error message, but we are finding a big time lag, even though the refresh rate was set to 0 and or 3 , and or 5 seconds, members are telling us it take up to a minute to get the message, any ideas, and no our server is not the issue, but I have noticed that this really started once we went to 3.7.0, prior to that release, no lag at all

Any thoughts ?

F0xy
06-04-2008, 01:25 PM
is there no way to completely remove the chatbox for groups not allow to view it. at the minte guests see a big box with 'You don't have permission to see the Chatbox.' wrote on it which isn't exactly pleasing on the eye.

LCN2007
06-16-2008, 01:58 AM
1st off great mod im a fan of alot of your code Dream.
Is there a way to display on all pages? Also how do i change the font size its so tiny.
Is their a way to add the date and or users in chat?

Sorry for all the questions

LCN2007
06-16-2008, 10:14 PM
Anyone?

nick-harper
06-18-2008, 09:22 PM
is there no way to completely remove the chatbox for groups not allow to view it. at the minte guests see a big box with 'You don't have permission to see the Chatbox.' wrote on it which isn't exactly pleasing on the eye.


<if condition="is_member_of($bbuserinfo, x, c)">
<!-- Chatbox -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat"><a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a><a href="javascript:openChatbox()">$vbphrase[chatbox_chatbox]</a></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%"$chatboxheight style="border: 0px" frameborder="0"></iframe></div></td>
</tr>
</tbody>
</table>
<br />
<!-- / Chatbox -->
<else />


</if>

That does the trick, change the Red letters to the numbers of the usergroups you want to see it :)

nureeves
06-22-2008, 11:14 AM
Thanks so much for your hardwork Dreams :)

Warm regard from Jakarta :):)

sdsvtdriver
06-24-2008, 01:51 AM
Thanks for the simple chatbox.

We received some concerns after we upgraded from the 1.x version from users who use mobile devices as they do not support AJAX.

Is there a simple way to display the Chatbox 1.3 code if AJAX is not supported? Will the Chatbox 1.3 code work with 2.1 as far as the DB is concerned? I saw 2.0 and 1.3 were available for 3.6, but only 2.1 for 3.7.

Thanks :)

wickedstangs
07-03-2008, 01:42 PM
On the top left were it says ChatBox how do you link it to open in a new window?

Helmut71
07-17-2008, 09:21 AM
I just noticed a js error when clicking on the chatbox-link. Anyone who can reproduce this??

Biya
07-18-2008, 06:33 PM
why is it opening up as a home page and not giving any access to main page users can't log in at all.

when someone type my url my login page appears and in 4 second this chat box comes on and log in page goes away.

any suggestion what should I do to prevent it.

Dream
07-19-2008, 02:50 PM
do you have multiple domains?

Biya
07-19-2008, 10:49 PM
NO but I did not put my files in any directory,it is directly placed in public_html . and I don't have any homepage yet it is directing to index.php.

Alfa1
08-10-2008, 06:44 PM
Is there a 'members in chatbox' function. Similar to the 'members in flashchat' modification? (Displays members in chat in 'What's going on').

siggen
08-17-2008, 07:56 AM
It doesn't allow my users to write the scandinavian letters, ?, ? and ?. Using other letters that those in the english language causes an Ajax error...


Ajax error, please try again. (HTTP status 503 / Service Temporarily Unavailable)


How can I fix this?

I really need som help here

pedroenf
09-05-2008, 07:04 PM
Does anyone knows how to align the chats and how to change the input field background color?

pedroenf
09-07-2008, 08:55 AM
Hello. Anyone?

scott_gersforum
09-08-2008, 11:44 AM
It doesn't allow my users to write the scandinavian letters, ?, ? and ?. Using other letters that those in the english language causes an Ajax error...



How can I fix this?

I really need som help here

I am getting this Ajaz error at random from my English forum - it's coming from the chatbox.
Anyone know what is causing it?

pedroenf
09-13-2008, 05:47 PM
Does anyone knows how to align the chats and how to change the input field background color?



Anyone?

K-Lex
09-15-2008, 05:02 PM
hey guys ive installed the chatbox and if i write something and press enter or klick send

I see this error in a new dialog window -.-

Hope somone can help me ^^

Error: undefined <html><head><title>Chatbox</title><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<meta name="generator" content="vBulletin 3.7.3" />



<meta name="keywords" content="" />

<meta name="description" content="" />





<!-- CSS Stylesheet -->

<style type="text/css" id="vbulletin_css">

/**

* vBulletin 3.7.3 CSS

* Style: 'vBlueize'; Style ID: 5

*/

body

{

background: #006fcd url(images/vblue/misc/bg.jpg) no-repeat top center;

color: #000000;

font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

margin: 5px 10px 10px 10px;

padding: 0px;

}

a:link, body_alink

{

color: #0066FF;

}

a:visited, body_avisited

{

color: #0066FF;

}

a:hover, a:active, body_ahover

{

color: #006699;

}

.page

{

background: #FFFFFF;

color: #000000;

}

td, th, p, li

{

font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.tborder

{

background: #CCCCCC;

color: #000000;

border: 1px solid #0066FF;

}

.tcat

{

background: #869BBF url(images/vblue/gradients/gradient_tcat.gif) repeat-x top left;

color: #FFFFFF;

font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.tcat a:link, .tcat_alink

{

color: #ffffff;

text-decoration: none;

}

.tcat a:visited, .tcat_avisited

{

color: #ffffff;

text-decoration: none;

}

.tcat a:hover, .tcat a:active, .tcat_ahover

{

color: #FFFF66;

text-decoration: underline;

}

.thead

{

background: #5C7099 url(images/vblue/gradients/gradient_thead.gif) repeat-x top left;

color: #FFFFFF;

font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.thead a:link, .thead_alink

{

color: #FFFFFF;

}

.thead a:visited, .thead_avisited

{

color: #FFFFFF;

}

.thead a:hover, .thead a:active, .thead_ahover

{

color: #FFFF00;

}

.tfoot

{

background: #5C7099 url(images/vblue/gradients/gradient_thead.gif) repeat-x top left;

color: #E0E0F6;

}

.tfoot a:link, .tfoot_alink

{

color: #E0E0F6;

}

.tfoot a:visited, .tfoot_avisited

{

color: #E0E0F6;

}

.tfoot a:hover, .tfoot a:active, .tfoot_ahover

{

color: #FFFF66;

}

.alt1, .alt1Active

{

background: #F5F5FF;

color: #000000;

}

.alt2, .alt2Active

{

background: #E1E4F2;

color: #000000;

}

.inlinemod

{

background: #FFFFCC;

color: #000000;

}

.wysiwyg

{

background: #F5F5FF;

color: #000000;

font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

margin: 5px 10px 10px 10px;

padding: 0px;

}

.wysiwyg a:link, .wysiwyg_alink

{

color: #22229C;

}

.wysiwyg a:visited, .wysiwyg_avisited

{

color: #22229C;

}

.wysiwyg a:hover, .wysiwyg a:active, .wysiwyg_ahover

{

color: #FF4400;

}

textarea, .bginput

{

font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.bginput option, .bginput optgroup

{

font-size: 10pt;

font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.button

{

font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

select

{

font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

option, optgroup

{

font-size: 11px;

font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.smallfont

{

font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.time

{

color: #666686;

}

.navbar

{

font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.highlight

{

color: #FF0000;

font-weight: bold;

}

.fjsel

{

background: #3E5C92;

color: #E0E0F6;

}

.fjdpth0

{

background: #F7F7F7;

color: #000000;

}

.panel

{

background: #E4E7F5 url(images/vblue/gradients/gradient_panel.gif) repeat-x top left;

color: #000000;

padding: 10px;

border: 2px outset;

}

.panelsurround

{

background: #D1D4E0 url(images/vblue/gradients/gradient_panelsurround.gif) repeat-x top left;

color: #000000;

}

legend

{

color: #22229C;

font: 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

.vbmenu_control

{

background: #5C7099 url(images/vblue/gradients/gradient_thead.gif) repeat-x top left;

color: #FFFFFF;

font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

padding: 3px 6px 3px 6px;

white-space: nowrap;

}

.vbmenu_control a:link, .vbmenu_control_alink

{

color: #FFFFFF;

text-decoration: none;

}

.vbmenu_control a:visited, .vbmenu_control_avisited

{

color: #FFFFFF;

text-decoration: none;

}

.vbmenu_control a:hover, .vbmenu_control a:active, .vbmenu_control_ahover

{

color: #FFFFFF;

text-decoration: underline;

}

.vbmenu_popup

{

background: #FFFFFF;

color: #000000;

border: 1px solid #0B198C;

}

.vbmenu_option

{

background: #BBC7CE;

color: #000000;

font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

white-space: nowrap;

cursor: pointer;

}

.vbmenu_option a:link, .vbmenu_option_alink

{

color: #22229C;

text-decoration: none;

}

.vbmenu_option a:visited, .vbmenu_option_avisited

{

color: #22229C;

text-decoration: none;

}

.vbmenu_option a:hover, .vbmenu_option a:active, .vbmenu_option_ahover

{

color: #FFFFFF;

text-decoration: none;

}

.vbmenu_hilite

{

background: #8A949E;

color: #FFFFFF;

font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

white-space: nowrap;

cursor: pointer;

}

.vbmenu_hilite a:link, .vbmenu_hilite_alink

{

color: #FFFFFF;

text-decoration: none;

}

.vbmenu_hilite a:visited, .vbmenu_hilite_avisited

{

color: #FFFFFF;

text-decoration: none;

}

.vbmenu_hilite a:hover, .vbmenu_hilite a:active, .vbmenu_hilite_ahover

{

color: #FFFFFF;

text-decoration: none;

}

/* ***** styling for 'big' usernames on postbit etc. ***** */

.bigusername { font-size: 14pt; }



/* ***** small padding on 'thead' elements ***** */

td.thead, th.thead, div.thead { padding: 4px; }



/* ***** basic styles for multi-page nav elements */

.pagenav a { text-decoration: none; }

.pagenav td { padding: 2px 4px 2px 4px; }



/* ***** de-emphasized text */

.shade, a.shade:link, a.shade:visited { color: #777777; text-decoration: none; }

a.shade:active, a.shade:hover { color: #FF4400; text-decoration: underline; }

.tcat .shade, .thead .shade, .tfoot .shade { color: #DDDDDD; }



/* ***** define margin and font-size for elements inside panels ***** */

.fieldset { margin-bottom: 6px; }

.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 11px; }

</style>

<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_important.css?v=373" />





<!-- / CSS Stylesheet -->



<script type="text/javascript" src="clientscript/yui/yahoo-dom-event/yahoo-dom-event.js?v=373"></script>

<script type="text/javascript" src="clientscript/yui/connection/connection-min.js?v=373"></script>

<script type="text/javascript">

<!--

var SESSIONURL = "";

var SECURITYTOKEN = "1221492691-6b69ab60436e73274949217dd4e2fe435269f799";

var IMGDIR_MISC = "images/vblue/misc";

var vb_disable_ajax = parseInt("0", 10);

// -->

</script>

<script type="text/javascript" src="clientscript/vbulletin_global.js?v=373"></script>

<script type="text/javascript" src="clientscript/vbulletin_menu.js?v=373"></script>



<script type="text/javascript">

<!--

var limitfrom = "";

function createAjaxObject() {//not used anymore, using vB Ajax Handler

var xmlHttp;

try {

// Firefox, Opera 8.0+, Safari

xmlHttp = new XMLHttpRequest();

}

catch (e) {

// Internet Explorer

try {

xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");

}

catch (e) {

try {

xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

}

catch (e) {

alert("Your browser does not support AJAX!");

return false;

}

}

}

return xmlHttp;

}



function getNewShouts() {

if (actualpage == 1) {

if (isRefreshing == 0) {

isRefreshing = 1;

disableRefreshButton();

hermes = new vB_AJAX_Handler(true);

hermes.onreadystatechange(processNewShouts);

hermes.send('chatbox.php', 'ajax=getshouts&lastshoutid=' + lastshoutid);

}

} else {

refreshChatbox(0, 1, 1);

}

}



function chatboxCheckRequest() {

if (hermes.handler.readyState == 4 && hermes.handler.status == 200 && hermes.handler.responseText) {

return true;

}

return false;

}



function processNewShouts() {

if (chatboxCheckRequest()) {

//try { eval(hermes.handler.responseText); }

//catch (e) { window.alert(e.description); window.alert(hermes.handler.responseText); }

eval(hermes.handler.responseText);

updateChatbox(newshouts);

enableRefreshButton();

isRefreshing = 0;

}

}



function postShout() {

isRefreshing = 1;

document.chatboxForm.elements['shout'].disabled = true;

document.chatboxForm.elements['submit'].disabled = true;

var newshout = document.chatboxForm.elements['shout'].value;

newshout = PHP.urlencode(newshout);

var shoutcolor = PHP.urlencode(document.chatboxForm.elements['color'].value);

hermes = new vB_AJAX_Handler(true);

hermes.onreadystatechange(processPostShout);

hermes.send('chatbox.php', 'ajax=newshout&lastshoutid=' + lastshoutid + '&shout=' + newshout + '&color=' + shoutcolor);

}



function processPostShout() {

if (chatboxCheckRequest()) {

try {

eval(hermes.handler.responseText);

} catch (e) {

window.alert('Error: ' + e.description + ' ' + hermes.handler.responseText);

return;

}

updateChatbox(newshouts);

isRefreshing = 0;

document.chatboxForm.elements['shout'].value = '';

document.chatboxForm.elements['shout'].disabled = false;

document.chatboxForm.elements['submit'].disabled = false;

document.chatboxForm.shout.focus();

}

}



function updateChatbox(newshouts)

trinkaespinhas
09-19-2008, 05:22 AM
hi

cant type on chatbox, the msg i sthee but nothing apperars below the shout messege square.

any help?

Thanks in advanced

pedroenf
09-19-2008, 12:53 PM
Anyone?Does anyone knows how to align the chats and how to change the input field background color?


Anyone?

Dream
10-10-2008, 08:46 PM
minor update, enjoy

version 2.1.1
- color choosed by user now gets saved in a cookie. to update mod, just upload chatbox.php and chatbox_ajax_color.php

Dream
10-10-2008, 08:48 PM
sorry not choosed, chosen, you got it :p

Dream
10-10-2008, 08:57 PM
updated the zip with updated install etc instructions

the mod version on the admincp will still show 2.1, not 2.1.1

Pipo123
10-15-2008, 04:37 PM
Could there be a bug:
- if url is posted it gets parsed, just like permissions say
- after a refresh the parsing is gone and plain ubb is showed

SirFlash
10-16-2008, 02:55 PM
I know this is not released for vb8 yet, but just so others know, I have this installed on vb3.8.0 BETA and it's working great! No problems.

HTMMinion
10-22-2008, 04:31 AM
I'm not sure what happened, but suddenly I cannot post links in the chatbox anymore, it worked fine 2 days ago and i have not updated anything. I'm using version 2.1 with vBulletin Version 3.7.2. When I attempt to post a link I get the error "AJAX error, please try again. (HTTP status: 403 / Forbidden)".

I tried overwriting all the files for version 2.1 and overwriting the product xml import as well and I have the same issue. :(

Any ideas?

Dream
10-22-2008, 01:07 PM
forbidden? just when you post links?

HTMMinion
10-22-2008, 04:41 PM
Well, now that I've played a little more I and every other member get the same error if we post a link, or use bbcode tags for url or images.

I really don't understand what went wrong, this box has been purring like a kitten for over a year with no problems what so ever.


Wait... I did do ONE update...

I updated Cyb-PayPal Donate from 4.7 to 4.8. It's located here (https://vborg.vbsupport.ru/showthread.php?t=177563). I rolled this back to version 4.7 and the error remains.

Dream
10-22-2008, 05:35 PM
strange... can you take a screen of the error?

HTMMinion
10-22-2008, 05:47 PM
Sure...

https://vborg.vbsupport.ru/external/2008/10/23.jpg

SBoards
10-22-2008, 06:03 PM
I've been getting lots of ajax errors on my site as well, with this mod installed.

HTMMinion
10-22-2008, 06:09 PM
Are you getting the "403 Forbidden" error too SBoards?

Dream
10-22-2008, 09:28 PM
did you change the permission on any files lately?

HTMMinion
10-22-2008, 09:45 PM
Not that I am aware of, I was wondering the same thing myself though. Do any of these files require special permissions to function properly with ajax?

Dream
10-22-2008, 10:18 PM
the chatbox.php includes the bbcode functions file, but it should be ok if bbcode is working on the rest of the forum. worth a check tho.

HTMMinion
10-22-2008, 10:29 PM
"worth a check tho" meaning what? What do I need to "check"?

Permissions for that file are "644".

SBoards
11-04-2008, 12:55 AM
Are you getting the "403 Forbidden" error too SBoards?
yes ... completely reverted the forumhome template and reinstalled the chatbox ... same thing. But, completely random. I haven't experienced the errors myself... but all of my users are complaining about it.

sdsvtdriver
11-06-2008, 03:01 AM
Using 1.3, but this may apply to 2.1 so I'll ask.

Links that have comma's in them don't parse properly. The code parses the link up to the comma and ignores the rest. Is there an easy fix for this?

SBoards
11-08-2008, 08:08 PM
I can't post a link in our chatbox now without removing http:// from it

abotavon
11-11-2008, 08:12 AM
chatbox is awesome, but one thing, how do you change the background color? my background is black, I'd like for the chatbox background to be white, thanks in advance

nasko
11-11-2008, 09:39 PM
I'm looking for a private moderators only chat add-on, but one which is like a chat room. Whenever a moderator writes something it should pop out to every other moderator, that is online and vice versa. It is needed for better collaboration between moderators so everyone agrees with a certain course of action being chosen. It would be advantageous to have the option to sign in the chat, to show that they are available as moderators. Maybe something like the one in facebook, but for more than 2 persons. I believe permissions will be based on usergroups, so having the same one for regular users will be good too.

I looked through the available ones, but the choice is big and I'm probably not even getting the full list with the search term "chat"

vBulletin? Version 3.7.2

Will this chat work for me?
Thank you.

bluesoul
11-26-2008, 12:23 AM
Dream, is there any way to call the replacement variable manager to parse the chatbox entries on the fly? I'm wanting to using it as a more powerful censorship variable and the chatbox doesn't seem to look for replacement vars.

wickedstangs
12-25-2008, 08:47 PM
how to setup to automatically refresh not working for me?

mbnoob
01-22-2009, 04:40 PM
i have vb 3.8.0
chatbox 2.1.1

works fine in firefox3, but the auto refresh dont work in ie7 ???

any idea?

sdsvtdriver
01-29-2009, 03:05 AM
I'm not sure what happened, but suddenly I cannot post links in the chatbox anymore, it worked fine 2 days ago and i have not updated anything. I'm using version 2.1 with vBulletin Version 3.7.2. When I attempt to post a link I get the error "AJAX error, please try again. (HTTP status: 403 / Forbidden)".

I tried overwriting all the files for version 2.1 and overwriting the product xml import as well and I have the same issue. :(

Any ideas?

Not that this helps much, but I started seeing this error after I installed XCache, but not related to posting links. If it is idle for a long time, I'll get this message. Not sure if it is related to XCache or not as it really isn't a big impact to track down.

The Donkey Farm
02-07-2009, 04:36 AM
any chance you will make this mod compatible with 3.8?

kronnos
02-15-2009, 02:35 PM
Currently upgraded to 3.8.1, but autorefresh not working and sometimes even when i press manually refresh it doesnt work. Would be great to see a 3.8 version avaliable.

After more testing, it seems that refresh button does not work in IE and does not autorefresh.

Dream
02-15-2009, 06:04 PM
im using it on 3.8 with no problems

kronnos
02-15-2009, 06:47 PM
im using it on 3.8 with no problems

Yeh, its seems to work with firefox with no problem for me, but when I try to open it in IE and wait for the refresh, it shows the refresh button flick a little every 30 sec(my set time) but it doesn't refresh. Also, im not even able to refresh via clicking the refresh button manually. Did you try it in IE? Also, if it's an error on my part, what could it be? Could it be because of the old database I used from 3.6 version? Should I have completely uninstalled the product without installing the product on top with overwrite on?

Thank!

Dream
02-15-2009, 07:14 PM
it's working on IE here... did you make any changes to it? try re uploading the chatbox.php file to your forum.

using the old database has no problems with it. are you using vba?

kronnos
02-15-2009, 07:44 PM
Nop, not using vba just made some changes to the actual chat box.

instead of
<!-- Chatbox -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat"><a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a><a href="javascript:openChatbox()">$vbphrase[chatbox_chatbox]</a></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%"$chatboxheight style="border: 0px" frameborder="0"></iframe></div></td>
</tr>
</tbody>
</table>
<br />
<!-- / Chatbox -->

I have
<!-- Chatbox -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a>
<a href="javascript:openBlasterChat()">$vbphrase[chatbox_chatbox]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
<tr>
<td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%"$chatboxheight style="border: 0px" frameborder="0"></iframe></div></td>
</tr>
</tbody>
<!-- / Chatbox -->

Dream
02-15-2009, 08:20 PM
you just changed the javascript function name? that would be ok... did you try replacing the chatbox.php? are you using the latest version?

kronnos
02-15-2009, 08:36 PM
yeh i think I did but dont really remember how I did that, since it was more then a year ago and I spent a lot of time playing with it to make it look right. Wait..could that be why it might not be working, I changed the function name on the other server where the original site is right now, but all i did was copy the above code from old template into knew one. Should I have copied over something else where I changed the function name or it was saved in the database?

Anyway, I uploaded all the latest files including chatbox.php and when going to IE, it refreshed 2 times(after 30 sec interval) nicely and then it just doesnt anymore... When I manually try to click refresh, the button just blinks and nothing happenes.

Dream
02-15-2009, 08:38 PM
if it blinks it should have gotten the new messages from the server, if there are no new messages everything stays the same.

kronnos
02-15-2009, 08:41 PM
I know there are new messages because I create them in the firefox version of the site, basically I chat with myselv through firefox and IE. Anyway, its a strange blink because teh normal blink takes atleast a second or 2 to blink back to normal state as its thinking, this blink is instant as though its not thinking anything at all.

Dream
02-15-2009, 08:45 PM
are you logged on IE? maybe refresh is disabled for guests.

kronnos
02-15-2009, 08:52 PM
just tried, I am logged in but still nothing. After I reload the entire page, its gives me a chance to refresh the chat 2-3 times before it just blinks

kNeeLy
02-20-2009, 02:28 PM
can anyone tell me how to just put this on my vba?
EDit.

i got installed on vba..thank u for the file on "how to"

but how do i remove it from the forum and just leave it on the vba?

edit again: n/m ..got it!!

kNeeLy
02-26-2009, 03:54 PM
edit : n/m.

mohammad6006
03-05-2009, 07:50 AM
not have for 3.8.x ?

illkeyone
03-14-2009, 06:26 PM
Hey Dream, is it working on 3.8.1, if you upgraded yours to 3.8.1 from 3.8.0, then may you please tell me if it is working without problems or not? ;)

Thanks :)

Dream
03-14-2009, 07:38 PM
heya im using it on my boards with 3.8.1 with no problems :) but if you need more options on your chatbox I suggest using Cyb Chatbox as this mod won't be updated anymore, sorry.

BullpupRef
05-31-2009, 10:54 PM
Hey guys,

Great mod. I may be using this now, instead of the 'pay' chatroom add on I bought. Thank you!

Please addd www.OneSeasonNation.com/forum to your live demo list.

I have a question though, I keep getting a dialogue box that pops up when refreshing the home forum page, or navigating away from the chatbox. (browser firefox portable)

Here is what the error box says....

"AJAX error, please try again. (HTTP status: 0 / communication failure)"

It doesn't seem to have any effect on the box, but I don't want my users complaining about it.

Any ideas? Thanks!

BullpupRef
05-31-2009, 11:21 PM
Oh, and one more thing.

I see the code to put it at the top of the home page. And the code to put it at the bottom of the home page. Even to put it in the "what's happening" box.

How about code to put it below the nav bar globally?

BullpupRef
05-31-2009, 11:47 PM
bump! any ideas on the above two issues? Thanks in advance!