PDA

View Full Version : Chat Modifications - Dream's Chatbox


Pages : 1 [2] 3 4

eurofunny
05-03-2007, 08:08 AM
Now is it ok

Dream
05-03-2007, 02:35 PM
Yes it is ok. You don't need the global line though.

DementedMindz
05-04-2007, 10:04 PM
would be nice to see the smilies in a button rather then a image think it looks a little nicer but all in all great mod. also why when you shut off refresh from admincp since im using ajax version dont it remove the button since it wouldnt be needed with ajax?

Dream
05-04-2007, 10:07 PM
If you disable refresh the user should have some way of refreshing it manually. (not sure I got your question)

arco
05-04-2007, 10:37 PM
I guess he means that since it uses Ajax the refresh shouldn't be needed. That's how the shoutbox I used in Joomla worked. It did an automatic refresh by itself whenever a user sent a message. There was no need to press or wait for the refresh, since the message appeared instantly when the user pressed send.

DementedMindz
05-04-2007, 10:40 PM
exactly what I mean there really should be no need for a refresh button at all with the ajax version.

Dream
05-04-2007, 10:45 PM
Arco, there is no way to refresh a page exactly when the user posts a new message, I think your last shoutbox had a low refresh interval instead.

I can add a hide refresh button option in the next version.

DementedMindz
05-04-2007, 10:46 PM
another feature would be to put the smilies on a button where the refresh would be instead of the smilie image.

Dream
05-04-2007, 10:51 PM
A button written "smilies"? Same as the refresh button?

DementedMindz
05-04-2007, 10:52 PM
well the refresh button removed on the ajax version... but yes a smilies button that will open the smilies instead having the image

Dream
05-04-2007, 10:57 PM
Ok I'll think about that

Right now you can edit your chatbox.php, find

<input type="button" name="refresh" value="'.$text_refresh.'" onclick="getNewShouts()" class="smallfont"> '.$pagelinks.$smilieslink.'<br /></form></div>'."\n";

replace for

'.$pagelinks.' <input type="button" name="smilies" value="smilies" onclick="openSmilies()" class="smallfont"><br /></form></div>'."\n";

and remove these both lines

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

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

DementedMindz
05-04-2007, 11:04 PM
nice thank you that works real well looks much nicer too along with that mouseover time

arco
05-05-2007, 01:42 AM
Arco, there is no way to refresh a page exactly when the user posts a new message, I think your last shoutbox had a low refresh interval instead.
You're probably right. :) It had this cool fade effect on the text message when it appeared, making the impression it happened realtime. :)

seangworld
05-06-2007, 07:19 AM
ok, i went thru 18 pages looking for the answer to my question. someone else had asked it on page 6, a reply was given on page 7, but it was incomplete.

the question, in my own words, was how do we remove the chatbox from below the 'who's online' section because we want it under the navbar?

i put my shoutbox under the navbar, and it's there, but now my forum has 2 frickin shoutboxes.

also, your instructions do not specify where to put the chatbox.php.

back to the chatbox on my forum, in both spots, it's showing the word 'array' just to the left of the box to input text.

Flow Fusion
05-06-2007, 11:15 AM
ok, i went thru 18 pages looking for the answer to my question. someone else had asked it on page 6, a reply was given on page 7, but it was incomplete.

the question, in my own words, was how do we remove the chatbox from below the 'who's online' section because we want it under the navbar?

i put my shoutbox under the navbar, and it's there, but now my forum has 2 frickin shoutboxes.

also, your instructions do not specify where to put the chatbox.php.

back to the chatbox on my forum, in both spots, it's showing the word 'array' just to the left of the box to input text.

1) You will have to delete the script in your forum template that has it under the who's online to make it only appear under the navbar.

2) The chatbox.php would have to be loaded into your index.

3) If 'array' is being shown then the chatbox hack was pasted into the middle of another script. That's not a good thing! Be careful to select the chatbox script and delete it, then put it after the 'array' script.

Dream
05-06-2007, 05:27 PM
Thanks Flow Fusion.

seangworld, the chatbox.php goes in your main forum folder, I missed that in the install.txt and will be there in the next update.

To remove the bottom chatbox, remove the forumhome template edit in install.txt.

Not sure why array is showing for you (it isn't for other people), send me the url for your chatbox installation via PM for me to check it out if it's still happening.

viper357
05-06-2007, 08:23 PM
I have read through the whole thread but I am still a bit confused with the 2 different versions.

Will the 1.4 version autorefresh and can I set the time delay on it? I have no idea what Ajax is all about :D

Dream
05-06-2007, 08:32 PM
Yes the ajax version has the option to set a refresh interval too. Ajax just means the whole page doesn't refresh, the javascript talks to the server and updates (refresh) the messages.

viper357
05-06-2007, 08:41 PM
ok, i have just installed the 1.4 but I am getting a 404 page not found error

http://www.marineaquariumsa.com/forums.php?#

Dream
05-06-2007, 08:42 PM
Did you upload chatbox.php to your main forum folder? I forgot that in the instructions :/

viper357
05-06-2007, 08:44 PM
do I not have to upload chatbox.php?

viper357
05-06-2007, 08:45 PM
ah ha, ok, hang on :D

Dream
05-06-2007, 08:45 PM
You have to upload it to your main forum folder (the same directory your forum.php is)

edit: ok cool :)

viper357
05-06-2007, 08:46 PM
Perfect, thanks for the help, awesome mod, I have clicked Installed, thanks buddy :)

Dream
05-06-2007, 08:47 PM
Cool glad you like it :)

da420
05-06-2007, 09:03 PM
I wish people that rate my mods with 1 star would state a reason :/

For some reason there are people that just sit and wait for new mods to be released just to rate them with a 1 star. Seems to happen to every newly released mod these days. Don't ask me why, but it's childish at any rate.

Anyways, this mod looks fantasticm, thanks.. Haven't had a look at it. I have vBShout 2.1 and am seriously considering installing this one after work today, or sometime when I get around to it this week.

Xplorer4x4
05-07-2007, 04:16 AM
-------Step Two

Upload chatbox_admin.php to your admincp folder.

Upload cpnav_chatbox.xml to your includes/xml folder.


-------Step Three

So we dont have to up chatbox.php? Might want to elaborate on that in the directions as to weather it is needed or not.

rnmcd
05-07-2007, 04:54 AM
Yes the ajax version has the option to set a refresh interval too. Ajax just means the whole page doesn't refresh, the javascript talks to the server and updates (refresh) the messages.
So in version 1 of Chatbox, the entire page would refresh (not just the chatbox)?

thanks.

da420
05-07-2007, 05:16 AM
Installed, Uninstalled, and tried to Reinstall and am getting the below error.

MySQL Error : Table 'chatbox' already exists

I was able to reinstall it by deleting the 'chatbox' table via phpmyadmin. But, just thought I'd let you know.

Dream
05-07-2007, 04:10 PM
So we dont have to up chatbox.php? Might want to elaborate on that in the directions as to weather it is needed or not.
You need to upload chatbox.php to your main forum folder, that's missing from the instructions and will be there in the next update. (I replied this a few posts before yours)

So in version 1 of Chatbox, the entire page would refresh (not just the chatbox)?

thanks.
Version 1.3 reloads the page, version 1.4 just adds the new messages without reloading the page.

Installed, Uninstalled, and tried to Reinstall and am getting the below error.

MySQL Error : Table 'chatbox' already existsI was able to reinstall it by deleting the 'chatbox' table via phpmyadmin. But, just thought I'd let you know.
The uninstall code is commented for some reason, it will be uncommented in the next update. You can see it commented out if you edit the Chatbox product. I think I was testing something and forgot to uncomment, sorry.

DementedMindz
05-07-2007, 04:29 PM
another nice feature would be to always have the shout input at top this way if you scroll down it still stays at the top for example if you set it to 25 shouts to show and you look at the last shout you cant type in the box cause it will scroll up too.

Dream
05-08-2007, 01:02 AM
Updated, 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

arco
05-08-2007, 01:45 AM
Awesome!

*upgraded*

Hope you figure out the IE7 issue.

arco
05-08-2007, 02:16 AM
Noticed a bug in the URL auto parsing.

If you type something like this: Click here! (http://www.mysite.com)

you get this: http://http://www.mysite.com

Dream
05-08-2007, 02:18 AM
use this one and try for me please

aranthorn
05-08-2007, 02:28 AM
Small, easy on the server, simple....

Brilliant.

Dream
05-08-2007, 02:30 AM
Thanks :)

I updated the zip file, updated chatbox.php only, fixed the bug arco found.

Also updated the instructions to the chatbox on the top. The collapse image should be correct now.

arco
05-08-2007, 02:31 AM
Perfect!
All good now. :up:

Dream
05-08-2007, 03:52 AM
Can anyone having problems with IE7 test it with this chatbox.php

All works fine in my board so I can't test it

Adam21
05-08-2007, 04:12 AM
Just curious only.Is there any major difference between this mod and the vbshout2.1 flatfile shoutbox?I'm using IE7 too.

By the way,great job and thank you Dream.:up:

*Clicks install :)

Dream
05-08-2007, 04:16 AM
I'm not sure about v2.1, but v2.0 has an auto refresh interval set to 10 seconds, hitting your server every 10 seconds per person using the chat.

This mod you can set the refresh to whatever you like, and it has a refresh button.

I'm not sure what else to tell you, as I didn't use vBShout, but maybe someone else can.

eurofunny
05-08-2007, 06:42 AM
Thanx for this Update, this is the best Shoutbox i ever seen.

I have a idea at the moment, is there a way to allowed administrators put small flashanimation with sound in this shoutbox??

eurofunny
05-08-2007, 09:23 AM
I find the Time disabled only for guest is good. Is there a way to do this or for the next Update activated for Usergroups.

odonel
05-08-2007, 11:02 AM
anyone else has isssues with the auto announcer ?

"PHP Fatal error: Call to a member function on a non-object in d:\webscv\sites\site1\forum\includes\cron\chatbox_ autopost.php on line 19"

it would be nice if there was a delete button in the box so that messages can be deleted without going to the admin panel

arco
05-08-2007, 02:12 PM
it would be nice if there was a delete button in the box so that messages can be deleted without going to the admin panel
There should be an X between the username and message you can click to delete messages.

arco
05-08-2007, 02:33 PM
Can anyone having problems with IE7 test it with this chatbox.php

All works fine in my board so I can't test it

No change sorry.

But I think I'm on to something here. While looking through the "Advanced Internet Options" in IE7, I noticed this option: Enable native XMLHTTP support
It was enabled, so I turned it off. Now the first message entered appears as it should, but any message typed after that doesn't appear unless you do a full page refresh. I can also see that the chatbox does some kind of refresh at my set intervals, but the messages just doesn't appear. :confused:

DementedMindz
05-08-2007, 02:56 PM
would be nice to have it so when a smiley is clicked it will auto close the popup of smilieys and another button to clear the text of the input incase they want to erase what they wrote in there kinda like vbshout but other then that so far looking good

DementedMindz
05-08-2007, 03:23 PM
yeah I am seeing the error on internet explorer also. here is the error. well that is when you click the smilieys button.

also with refresh turned off in admincp and hide button turned off it refreshes the shout on the user who posted the messages screen but not on no one else's until they refresh the page so right now its pretty much a non ajax version the way it is..

64109

DementedMindz
05-08-2007, 03:47 PM
lol I erased 2 shouts when testing with internet explorer and firefox and when I hit the refresh button on the shoutbox they came back..

jerseyda6
05-08-2007, 04:04 PM
how do I make the field bigger? I have many users using thin but it only allows to see about 3 shouts at a time... I would like to see at least 20 with out scrolling? Thanks

jerseyda6
05-08-2007, 04:05 PM
also is there a way to switch it so where you type is on the bottom?

Dream
05-08-2007, 04:37 PM
Thanx for this Update, this is the best Shoutbox i ever seen.

I have a idea at the moment, is there a way to allowed administrators put small flashanimation with sound in this shoutbox??
If you create a BBCode for Flash you can.

I find the Time disabled only for guest is good. Is there a way to do this or for the next Update activated for Usergroups.
Hmm why would you want to do this?

anyone else has isssues with the auto announcer ?

"PHP Fatal error: Call to a member function on a non-object in d:\webscv\sites\site1\forum\includes\cron\chatbox_ autopost.php on line 19"

it would be nice if there was a delete button in the box so that messages can be deleted without going to the admin panel
Can you post your autopost options?

Theres an option for moderator usergroups in the chatbox options that should show an X in each message to delete them.

Dream
05-08-2007, 04:43 PM
how do I make the field bigger? I have many users using thin but it only allows to see about 3 shouts at a time... I would like to see at least 20 with out scrolling? Thanks
You need to edit the forumhome template edit HTML.

also is there a way to switch it so where you type is on the bottom?
There's an option for this in the chatbox options.

Dream
05-08-2007, 05:06 PM
I find the Time disabled only for guest is good. Is there a way to do this or for the next Update activated for Usergroups.
You can do this by editing chatbox.php, find

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

after that, add

if ($vbulletin->userinfo['userid'] == 0) { $showtime = 0; }

DementedMindz
05-08-2007, 05:12 PM
so Dream any reason why the ajax version is pretty much useless right now?

Dream
05-08-2007, 05:16 PM
It works perfect for me.

jerseyda6
05-08-2007, 05:18 PM
thanks i got everything right? 1 more question how do I get rid of the time? everytime someone shouts it says the time right before the name? is there a way to eliminate that? also are the members able to post pictures in the box? is there a setting for that? thank you for all your help!!!!

DementedMindz
05-08-2007, 05:19 PM
ajax dont refresh for other users it does however for the user who posted. log in 2 names on your test site or where ever you have it installed and try you will see. did you read my post about the error and when you hit the refresh button?

Dream
05-08-2007, 05:20 PM
thanks i got everything right? 1 more question how do I get rid of the time? everytime someone shouts it says the time right before the name? is there a way to eliminate that? also are the members able to post pictures in the box? is there a setting for that? thank you for all your help!!!!

Theres a setting to show time in the chatbox options, also there is a setting to parse [ img ] tags.

Dream
05-08-2007, 05:21 PM
ajax dont refresh for other users it does however for the user who posted. log in 2 names on your test site or where ever you have it installed and try you will see. did you read my post about the error and when you hit the refresh button?
Yes I can't replicate your delete message bug, but the bug with IE7 not refreshing I'm working on it.

DementedMindz
05-08-2007, 05:24 PM
if you say delete messages with admin on firefox and hit the refresh button with a name as moderator on internet explorer you will see the messages come back not a big deal when the refresh button is off cause they cant hit the refresh button only thing im trying to find out is why it wont refresh the messages auto(ajax) when say another moderator post. I have to refresh the whole page in order to see there post.

Legende
05-08-2007, 05:27 PM
Is it possible to hide the chatbox completly for different usergroups? not just only the messages?

greets

Dream
05-08-2007, 05:29 PM
I think I get what you are saying. If you delete messages in one browser, they won't disappear in the other if you have the page already loaded. This was done to save resources, the chatbox only gets the new messages, not the whole list of messages again.

Dream
05-08-2007, 05:30 PM
Is it possible to hide the chatbox completly for different usergroups? not just only the messages?

greets
That would need template conditionals.

Legende
05-08-2007, 05:31 PM
How can i do this? ;p

I just want it for usergroup 6 and 7 to show

Dream
05-08-2007, 05:32 PM
Not sure right now, I'm sure someone would reply to you in the vBulletin programming discussion forum.

jerseyda6
05-08-2007, 05:49 PM
Theres a setting to show time in the chatbox options, also there is a setting to parse [ img ] tags.

i cant seem to find it.. am i lookin in the right place

vbulletin options>vbshout options

Dream
05-08-2007, 05:50 PM
No its vBulletin Options >> Chatbox Options

Show Time?
and
Enable [ img ]?

jerseyda6
05-08-2007, 05:54 PM
i dont have chatbox options only vbshout options

Dream
05-08-2007, 05:55 PM
Did you install this mod? Did you import the product file?

DementedMindz
05-08-2007, 06:08 PM
no no say for example you post on my site I wont see your message in the shoutbox until I refresh the page. when it should show right away cause of the ajax. as for the messages part what would happen is say your the admin you only erase the top 2 messages cause they were spam or something if I hit the refresh button on the shoutbox I will see them messages.

DementedMindz
05-08-2007, 06:12 PM
How can i do this? ;p

I just want it for usergroup 6 and 7 to show


<if condition="is_member_of($bbuserinfo, 6,7)">
your shout box code
</if>

Dream
05-08-2007, 06:30 PM
no no say for example you post on my site I wont see your message in the shoutbox until I refresh the page. when it should show right away cause of the ajax. as for the messages part what would happen is say your the admin you only erase the top 2 messages cause they were spam or something if I hit the refresh button on the shoutbox I will see them messages.
That shouldn't be happening. Can you send me your forum address in a PM?

Ajax doesn't mean the message appears right away, it has a refresh rate too. If you set it to 10 seconds it could give you the impression that they appear right away, it's the way vBShout works.

Dream
05-08-2007, 06:36 PM
I was able to reproduce the IE7 refresh bug in my testboard, I'll be working on a fix :)

Maybe I should drop the custom code and just use the vB ajax functions.

DementedMindz
05-08-2007, 06:38 PM
strange cause when I had done your post here https://vborg.vbsupport.ru/showpost.php?p=1241651&postcount=261 then the shout would appear right away but since the update it has stopped appearing right away and in the old one I even had refresh off also in admincp since I didnt think it would be needed cause of the ajax.

Dream
05-08-2007, 06:39 PM
When you send a message it should appear right away. With the IE7 bug that may not happen.

Were you using the no ajax version or the 1.4 before? The IE7 refresh bug is with 1.4 and 1.5.

DementedMindz
05-08-2007, 06:45 PM
nah when I was using the ajax version before this one and did these mods to the php file (chatbox.php) https://vborg.vbsupport.ru/showpost.php?p=1241651&postcount=261 they would appear right away but since the update they wont appear right away... well let me clear it up they appear for the user who posted the shout right away but for everyone else they have to hit the refresh button or they have to refresh the page in order to see new shouts. where as with the version before this with them mods it would appear right away.

Dream
05-08-2007, 06:46 PM
How many seconds is your refresh interval set to?

DementedMindz
05-08-2007, 06:48 PM
0 for disabled since i didnt ever use it and didnt use it in the previous version either

DementedMindz
05-08-2007, 06:51 PM
just tried it on 10 and same thing didnt show the newest shout until page refresh

Dream
05-08-2007, 06:51 PM
That's the problem, 0 disables ajax refreshing, you can only see new messages by clicking the refresh button.

Set that option to the number of seconds you want for the messages to update.

You need to reload the page for this new setting to take effect.

DementedMindz
05-08-2007, 06:56 PM
yeah I had it on 0 since I been using it and it would work fine maybe its this I-E bug who knows cause I been testing it with one name on I-E and one on firefox. what about the error with the smilieys is that in the same I-E bug?

Dream
05-08-2007, 07:05 PM
The smilies button is working fine in my testboard with IE7.

Did you edit chatbox.php?

edit: I'll have to go now, I'll be back later

DementedMindz
05-08-2007, 07:07 PM
nope its all stock if you click the smilieys button it will give you a error like I posted a few pages back with the screen shot im just going to remove it now and try another one thanks anyway.

jerseyda6
05-08-2007, 07:54 PM
is there a way to put the box on the top of the page?

jerseyda6
05-08-2007, 08:08 PM
and can you make the box bigger at all?

odonel
05-08-2007, 08:11 PM
If you create a BBCode for Flash you can.


Hmm why would you want to do this?


Can you post your autopost options?

Theres an option for moderator usergroups in the chatbox options that should show an X in each message to delete them.

here is the option part of autopost

// ########################## OPTIONS ############################
$user = 'admin';
$userid = 1;
$message = 'Good morning all!';

arco
05-08-2007, 09:17 PM
is there a way to put the box on the top of the page?
The instructions are in the zipfile.

Dream
05-09-2007, 12:20 AM
Updated, version 1.6

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

Dream
05-09-2007, 12:25 AM
here is the option part of autopost

// ########################## OPTIONS ############################
$user = 'admin';
$userid = 1;
$message = 'Good morning all!';

I fixed the chatbox_autopost.php for you, the new file is in the 1.6 zip.

arco
05-09-2007, 12:30 AM
Thanks Dream.

I'm gonna test it real soon. Some people have been asking how to make the height of the chatbox bigger, so I have added a setting so they can add their desired height in pixels. I will make the changes to the 1.6 version and send it to you for reviewing and possible inclusion in next version.

Dream
05-09-2007, 12:33 AM
Sure, it's a template mod right?

arco
05-09-2007, 01:47 AM
Ajax works fine with IE7 now. :up:

And here's the hack i made. It adds one new setting and a change to the template adding code.

Dream
05-09-2007, 01:56 AM
Thanks arco, that's a nice idea, but I can see people changing the chatbox height easily by editing the template.

arco
05-09-2007, 02:32 AM
Thanks arco, that's a nice idea, but I can see people changing the chatbox height easily by editing the template.
Yeah sure they can, but not everyone is that clever to do it manually. :erm: To have it as user-friendly as possible, all stuff like that should be changeable in the settings imo. Template editing should also be avoided if possible. Just look at some of the other mods, like Cyb ones for example. No template editing at all, just import the product xml and choose in settings where the mod should appear. It's things like that what really takes a mod to new levels.

Dream
05-09-2007, 02:33 AM
Ah but I'm a lazy sob :p

edit: besides, auto edit templates wont work for people with custom styles

arco
05-09-2007, 02:39 AM
Lol.... ok then. :)

seangworld
05-09-2007, 07:21 AM
How can i do this? ;p

I just want it for usergroup 6 and 7 to show

if you install the hack as a module and use vbadvanced you can set permissions for who sees what via admincp > vba cmps > quick permissions editor.

seangworld
05-09-2007, 07:31 AM
ya the ie7 bug is gone, just a slight delay after i hit the 'send' button.
but that damn 'array' is still there.

arco
05-09-2007, 10:53 AM
I exported the vBadvanced module, so people just need to upload it through the CMPS instead of adding the code themself. Maybe you can add it to the zipfile and the frontpage Dream?

Dream
05-09-2007, 05:32 PM
seangworld, what browser are you using?

arco I'll do that.

edit: seangworld, I think you put the guests user group as chatbox moderator, I think guests can delete messages in your chatbox

da420
05-09-2007, 07:36 PM
I have about 1/2 of the firefox 2.0 users are complaining about the chat box showing nothing but a blank chat box, no text entry all intermittently, and others are saying it's not refreshing, or submitting posts to it.

Dream
05-09-2007, 11:19 PM
I read your chatbox, is it a style issue? Some users were saying it wasn't working just on the Blue style.

I tested here with firefox and it seems to be refreshing fine, on the green and blue styles.

If this keeps happening, ask them if they get any javascript errors.

edit: yes it isn't working in the Blue Fluid style, how strange O_o

edit: yes it doesn't work only in the Blue Wave Fluid style, on all others it seems to work

edit: do you have any custom javascript installed in the Blue Wave Fluid style? I'm getting a big error here when the chatbox is loaded (exception, when you get an exception it means it's a big error)

seangworld
05-10-2007, 12:56 AM
seangworld, what browser are you using?

arco I'll do that.

edit: seangworld, I think you put the guests user group as chatbox moderator, I think guests can delete messages in your chatbox


yes i did actually. and ya know what? it took care of the frickin lag i was having on my site. i was wondering wtf was going on!! hehe, didnt think it was the chatbox.:p

Dream
05-10-2007, 12:57 AM
Whats your refresh interval set to? If you set it too low it could require more server resources.

And sorry man, I couldn't reproduce your array problem in any browser I have.

edit: seang redo your forum home top chatbox edit in the new instructions to fix the collapse image

Sir_Yaro
05-10-2007, 02:41 PM
Hi Dream.
Is there any chance to make this hack work with 3.5.x?
That would be briliant cause existing 3.5 version is extremly far from perfection....

Dream
05-10-2007, 06:39 PM
I don't have time to support two versions, sorry.

But I don't see why this version shouldn't work in 3.5, could you try for me? The only problem I would see is product file incompatibility.

Sir_Yaro
05-10-2007, 08:01 PM
I don't have time to support two versions, sorry.

But I don't see why this version shouldn't work in 3.5, could you try for me? The only problem I would see is product file incompatibility.

yup, product files are incompatible.
Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Chatbox - WOL Support', 'online_location_process', 'if($filename==\'chatbox.php\'){$userinfo[\'activity\'] = \'dream_chatbox\';}', 'chatbox_lite');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Thursday, May 10th 2007 @ 09:58:43 PM
Script : http://xxx/forum/admincp/plugin.php
Referrer : http://xxx/forum/admincp/plugin.php?do=productadd
IP Address : 89.xxxxxxx
Username : Sir_Yaro
Classname : vB_Database

Dream
05-11-2007, 02:20 AM
I'll look into making a product file compatible with 3.5.

Dream
05-11-2007, 04:52 AM
Updated, 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.

And here's a :lol: smilie for you to use with the /me code :)

rutch
05-11-2007, 08:04 AM
Question ! Can I use 1.7 with no Ajak

BadgerDog
05-11-2007, 09:59 AM
Upgraded.... thanks ... :up:

I put your GIF file in /images/smilies....

I typed /me :lol: and I don't get anything except the text the way I typed it. Where should it go and I'm not quite sute the value of the /me function, since you already support "clicking" on smilies anyway?

Thanks for the on-going development. Nice product....

Regards,
Badger

Sir_Yaro
05-11-2007, 10:11 AM
I'll look into making a product file compatible with 3.5.

Thank you very much. I bother u about it cause i'm sick of vBShout. It has no support (or damn shity) and require so much resorses and bandwidth. Over 20GB per month in my case !!!

arco
05-11-2007, 12:55 PM
I like! :)

Though I had to activate the Create $chatboxheight plugin, and move it to global_start to make it work for the vBa module.

Here's the updated module that uses the new $chatboxheight setting.

arco
05-11-2007, 12:56 PM
Question ! Can I use 1.7 with no Ajak
I believe not. Use 1.3 for no Ajax.

auctionguy
05-11-2007, 08:44 PM
I have either ver. 1.3 or 1.5. To upgrade, do I just import the Poduct XML and upload the chatbox.php??

Dream
05-12-2007, 12:38 AM
Question ! Can I use 1.7 with no Ajak
no
Upgraded.... thanks ... :up:

I put your GIF file in /images/smilies....

I typed /me :lol: and I don't get anything except the text the way I typed it. Where should it go and I'm not quite sute the value of the /me function, since you already support "clicking" on smilies anyway?

Thanks for the on-going development. Nice product....

Regards,
Badger
You need to add the lol.gif as a smilie in your AdminCP
I have either ver. 1.3 or 1.5. To upgrade, do I just import the Poduct XML and upload the chatbox.php??
yes

Dream
05-12-2007, 01:00 AM
Can anyone confirm this works in 3.6.6? I'm going to wait a few days to upgrade my board.

arco
05-12-2007, 02:12 AM
I have not upgraded to 3.6.6 yet, but will probably do in a couple of days. Just hopes nothing breaks.

Dream
05-12-2007, 02:17 AM
3.6.6 has some major changes in vB's javascripts.

I just use one vB javascript function in this mod, maybe two, there should be no reason to change their behaviors though, but we never know.

wireless0ne
05-12-2007, 04:15 AM
i have this setup in a vbadvanced window, and its great, but i would like to make the chatbox shorter, width is fine but i cant find where to do this?

Mark.B
05-12-2007, 08:40 AM
3.6.6 has some major changes in vB's javascripts.

I just use one vB javascript function in this mod, maybe two, there should be no reason to change their behaviors though, but we never know.
I've just upgraded to 3.6.6, although I've not done all the template reverts and edits yet....

However at this point the chatbox is still working fine.

I'm going to be manually applying the mandatory template changes so maybe I'm not the best person to ask, but it's working ok so far.

BadgerDog
05-12-2007, 11:28 AM
no

You need to add the lol.gif as a smilie in your AdminCP

yes

Ok, I moved it over into AdminCP under control examples with other GIFs and it still doesn't appear?

What is the command syntax?

"/me :lol" ?

Thanks

Badger

arco
05-12-2007, 01:55 PM
i have this setup in a vbadvanced window, and its great, but i would like to make the chatbox shorter, width is fine but i cant find where to do this?

In the latest version, you change the height in Chatbox options. Also go to plugin manager and check that "Create $chatboxheight" is enabled. If not, enable it and move its hook location to global_start.

arco
05-12-2007, 01:58 PM
Ok, I moved it over into AdminCP under control examples with other GIFs and it still doesn't appear?

What is the command syntax?

"/me :lol" ?


"/me :lol:"


Note the extra :

Tork64
05-12-2007, 01:58 PM
Hmm, maybe its just me but in your instructions you say

"
Edit the navbar template, find

+++++++++++++++++++++++++++++++++++++++++
//-->
</script>
+++++++++++++++++++++++++++++++++++++++++

before that, add
"

however the text "//-->" is not there so i dont know where to inject the code.

trying this on 3.6.6 btw.

Mark.B
05-12-2007, 02:04 PM
Hmm, maybe its just me but in your instructions you say

"
Edit the navbar template, find

+++++++++++++++++++++++++++++++++++++++++
//-->
</script>
+++++++++++++++++++++++++++++++++++++++++

before that, add
"

however the text "//-->" is not there so i dont know where to inject the code.

trying this on 3.6.6 btw.
The navbar code has changed and that line is not there any more.

Just put this at the VERY TOP of your navbar template:

<script type="text/javascript">

function openChatbox () {
chatbox = window.open('chatbox.php','chatbox','height=330,wi dth=650,directories=no,location=no,menubar=no,resi zable=yes,status=no,toolbar=no,scrollbars=yes');
}
</script>

BadgerDog
05-12-2007, 02:09 PM
"/me :lol:"


Note the extra :

Thanks...

Ok, I type...

* BadgerDog :lol:

... and I get my name Badger with an * in front and the :lol: phrase...

Looks like this * Badger :lol: * X

:confused:

Regards,
Badger

Tork64
05-12-2007, 02:32 PM
---

that did it, thanks :)

Bod1968
05-12-2007, 04:00 PM
Works fine except everything WITHIN the shoutbox is central WEIRD!
Installed on 3.6.6 gr8 possibly a skinning problem??

Kimiko
05-12-2007, 06:04 PM
Thank you so much! Love it! Upgraded on 3.6.6 and so far so good! :up:

arco
05-12-2007, 07:03 PM
Looks like this * Badger :lol: * X
You have to add the image to the smilies section in your admincp, and assign the :lol: code to it.

Mark.B
05-12-2007, 07:12 PM
I'll say again for anyone contemplating it, this is THE definitive shoutbox addon for vB, and it does work in 3.6.6....the only thing is that that you'll need to follow the instructions in my post (https://vborg.vbsupport.ru/showpost.php?p=1246248&postcount=377) above for adding the code to the NAVBAR template, as in 3.6.6 that template has changed.

GateKeper
05-12-2007, 09:05 PM
Installed on 3.6.5 and working,,,well it's working so well I have it as a pick in the navbar, and a shoutbox at the top of my main page, and also one at the bottom of my main page.

I think somehow I installed way to much, and not sure now what code to take out, any ideas ?

I would like to have it only on the top of the main page just below the navbar, and I really don't need the button on the navbar do I, it can stay, but how do I remove the shoutbox from the bottom of the page....?

Please help

Otherwise it's working out great.....

Tearstone
05-12-2007, 09:23 PM
Installed this today, works great!

Dream
05-12-2007, 09:35 PM
Installed on 3.6.5 and working,,,well it's working so well I have it as a pick in the navbar, and a shoutbox at the top of my main page, and also one at the bottom of my main page.

I think somehow I installed way to much, and not sure now what code to take out, any ideas ?

I would like to have it only on the top of the main page just below the navbar, and I really don't need the button on the navbar do I, it can stay, but how do I remove the shoutbox from the bottom of the page....?

Please help

Otherwise it's working out great.....

Remove the forumhome template edit described in install.txt

Mads
05-12-2007, 11:27 PM
The navbar code has changed and that line is not there any more.

Just put this at the VERY TOP of your navbar template:

<script type="text/javascript">

function openChatbox () {
chatbox = window.open('chatbox.php','chatbox','height=330,wi dth=650,directories=no,location=no,menubar=no,resi zable=yes,status=no,toolbar=no,scrollbars=yes');
}
</script>

:up: works

Dream
05-13-2007, 12:50 AM
Works fine except everything WITHIN the shoutbox is central WEIRD!
Installed on 3.6.6 gr8 possibly a skinning problem??
That's weird alright, maybe you have a CSS with align=center, like a span CSS with that.

Please click "mark as installed" if you keep using this.

edit: or a div with text-align: center

Dream
05-13-2007, 04:58 AM
Thank you very much. I bother u about it cause i'm sick of vBShout. It has no support (or damn shity) and require so much resorses and bandwidth. Over 20GB per month in my case !!!
Download the zip file again and try product-chatbox-vB-3.5.xml please

RemiAlone
05-13-2007, 10:48 AM
The colored usergroupnames and /me command don't work at my board. =/Any ideas on this? Running 3.6.6. btw.

Dream
05-13-2007, 08:23 PM
Can you send me your forum address via PM?

ReadOrDie
05-13-2007, 11:56 PM
The shoutbox works for me but a lot of the users don't like the style of it. It's too cramped, and the writings too small. Plus you can't use colors. It's a good shoutbox and gets us by but I prefer the last one. I'm forced to use this one since the other one makes database problems.

Otherwise thanks for the hack I really cannot wait till an update is done. Thanks.

GateKeper
05-14-2007, 01:47 AM
Remove the forumhome template edit described in install.txt

Thanks so much that did it.........................

Cheers....:D :D :D

Mark.B
05-14-2007, 05:51 AM
The shoutbox works for me but a lot of the users don't like the style of it. It's too cramped, and the writings too small. Plus you can't use colors. It's a good shoutbox and gets us by but I prefer the last one. I'm forced to use this one since the other one makes database problems.

Otherwise thanks for the hack I really cannot wait till an update is done. Thanks.
You can change the default text size quite easily by editing chatbox.php.

Users can use normal bb codes in the shoutbox so they can change their own text sizes and colours very easily, just as they can in a normal post.

Amiga75
05-14-2007, 05:55 AM
Works fine except everything WITHIN the shoutbox is central WEIRD!
Installed on 3.6.6 gr8 possibly a skinning problem??
I have the same Problem. :confused: Someone has an idea?

Apology my English is very bad.

seangworld
05-14-2007, 06:36 AM
i upgraded to 3.6.6 today, did absolutely no template changes myself, and everything is running normal, including my shoutbox.

arco
05-14-2007, 04:00 PM
Just upgraded to 3.6.6, chatbox is working fine.

Dream
05-14-2007, 10:38 PM
The shoutbox works for me but a lot of the users don't like the style of it. It's too cramped, and the writings too small. Plus you can't use colors. It's a good shoutbox and gets us by but I prefer the last one. I'm forced to use this one since the other one makes database problems.

Otherwise thanks for the hack I really cannot wait till an update is done. Thanks.
What exactly you don't like about the style? (or your users) And what would you do to make it better?

I visited your site and I don't think it looks bad (but thats me), maybe your users are too used to and like vBShout better.

Dream
05-14-2007, 10:40 PM
Thanks so much that did it.........................

Cheers....:D :D :D
You are welcome :)
I have the same Problem. :confused: Someone has an idea?

Apology my English is very bad.
I see you fixed that in your site, what did you do to fix it?

i upgraded to 3.6.6 today, did absolutely no template changes myself, and everything is running normal, including my shoutbox.

Just upgraded to 3.6.6, chatbox is working fine.

Thanks guys for the info.

And thanks a lot arco for helping me with support of this mod :)

seangworld
05-15-2007, 01:58 AM
i even still have that damn 'array' there.

Dream
05-15-2007, 02:05 AM
lol can you take a screenshot for me?

arco
05-15-2007, 02:19 PM
And thanks a lot arco for helping me with support of this mod :)
No problem. :)

Amiga75
05-15-2007, 07:35 PM
I see you fixed that in your site, what did you do to fix it?

I changed the following
Line 524: echo '<div align="left"><div class="smallfont" id="shoutsDiv">';
Line 526: echo '</div></div>';
Line 596: echo "\n\n".'<div align="left"><div class="smallfont"><span id="timeNow">'.$date.'</span><form action="javascript:postShout()" name="chatboxForm"><input type="hidden" name="nofocus"><input type="hidden" name="isrefresh"><input type="hidden" name="repostshout"><input type="hidden" name="from"><input type="text" name="shout" size="'.$input_size.'" maxlength="255" class="smallfont"'.$disabled.' value="'.$message.'"> <input type="submit" name="submit" value="'.$text_send.'" class="button"'.$disabled.'>'.$refreshbutton.' '.$pagelinks.$smilieslink.'<br /></form></div></div>'."\n";

LockeAG
05-16-2007, 05:03 AM
small bug, I can not leave the Chatbox collapsed.... They are users that doesn't want the Chatbox expanded...

Thnaks .!

see'a

SkippySkippy
05-16-2007, 11:06 PM
I was so tired of the bulky and slow Java IRC chatroom... this was the perfect, easy solution (now my users that don't run Java can use this!). Installed... thanks!

Nominated for MotM.

-Skip

Tri@de
05-17-2007, 06:17 AM
There's a way to put it only in a forum (ex: admin sub forum)?

nureeves
05-17-2007, 03:58 PM
Some users that online via their mobile phone can't use this feature
any suggest?

TrIn@dOr
05-17-2007, 07:17 PM
Soory, but can't delete shots, the usergroup of moderator must be primary?

TrIn@dOr
05-18-2007, 11:21 AM
Soory, but can't delete shots, the usergroup of moderator must be primary?

Is a fact, users can delete own messages, but Usergroups 5 and 6 can see X to delte others messages.

vB 3.6.7

fpattberg
05-18-2007, 12:37 PM
Brilliant work Dream. It works like a charm and is exactly what I needed! :up:

Installed!

Fabian

Sir_Yaro
05-18-2007, 02:53 PM
Download the zip file again and try product-chatbox-vB-3.5.xml please

It works!
Thank u very much!
That's what I call good support!! :)

Sir_Yaro
05-18-2007, 03:54 PM
Hi!

Two questions.

Is there any way to edit shout(s)?
How to set different input field size on vBA than forum home ?

Generaly 50px input field is fine but vBA's columns are very narrow and 50px input field is way to long for vBA... :(


If u can show me how to detect current page (if it's vba page or forum home) I think I can do it by myself...


edit1
--------
firefox's error console says:
Call to element via global ID/NAME. Insted of that
use document.getElementById() method from DOM W3C standard.

Line:380
and my friend additionally show me this:
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;


function updateChatbox(newshouts) {
if (inputontop == 1) {
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;
} else {
shoutsDiv.innerHTML = shoutsDiv.innerHTML + newshouts;
document.body.scrollTop = document.body.scrollHeight;
}
updateTimeNow();
}

Kahuna900
05-18-2007, 11:58 PM
I have uninstalled this mod, but the links to it still remain in the admin menu. I can't seem to find where I can make those changes.

da420
05-19-2007, 12:05 AM
Make sure you have deleted the files in /includes/xml/ and /admincp/...

arco
05-19-2007, 03:03 AM
Is there any way to edit shout(s)?
How to set different input field size on vBA than forum home ?Generaly 50px input field is fine but vBA's columns are very narrow and 50px input field is way to long for vBA... :(


There's no way to edit the shouts. Only way at this moment is for example to use phpmyadmin to do it.

Input field size is set in the chatbox options in your admincp, and what you change it to should be visible in vBa just as it does in forum home. But maybe it works different in vB 3.5, all I know is that it works fine here.

Dem3ntedSn1per
05-19-2007, 08:16 AM
Installed and working on 3.6.7 PL1. This is just what I needed! Thanks!

Somebody mentioned this a few pages ago (yes, I'm too lazy to go back and quote it). One of the styles I use wasn't showing text in the input area. The smallfont style for that theme has the text white, and the input box background unset (white) by default. Thought I'd share how I dealt with it.

In chatbox.php

Find
maxlength="255" class="smallfont"

Change to
maxlength="255" class="bginput"

For styles having problems
Edit Main CSS
Adjust the Input Fields section to appropriate background and/or text colors for you style.

The Input Fields section changes the style for all input fields in vBulletin. If you change the colors for them, you'll also want to edit the settings for <select> Menus to match. Otherwise your drop down lists will be a different style than input fields. This is very noticeable during registration or when editing a profile.

Zidane007nl
05-19-2007, 11:30 AM
Reinstalled the mod (since I was using a kinda old version) and it works great now. Nice new features.

Sir_Yaro
05-19-2007, 11:36 AM
Input field size is set in the chatbox options in your admincp, and what you change it to should be visible in vBa just as it does in forum home.
I know this and that's why I ask how to change it. I want to get 2 different input field sizes. I can do it myself if someone show me how to check what page is currently browsed...

arco
05-19-2007, 02:41 PM
I know this and that's why I ask how to change it. I want to get 2 different input field sizes. I can do it myself if someone show me how to check what page is currently browsed...
Ok, now I understand. :) Different input field size in vBa and the forum home. I don't think thats doable. Dream please correct me if I'm wrong. :)

fpattberg
05-21-2007, 09:48 AM
Hi.

I have instlled this and its works very nicely.

THere is just one thing. When you are going to "Whos is online" and a member/guest is on the main page it shows " Chatbox" instead of your index title of the main forum page.

Is there a way to fix this?

Thanks.

Fabian

Flow Fusion
05-21-2007, 04:18 PM
I'm getting this error...

Database error in vBulletin 3.6.5:

Invalid SQL:
SELECT count(shoutid) AS total FROM chatbox;

MySQL Error : Table 'gifteds_lxp.chatbox' doesn't exist
Error Number : 1146
Date : Monday, May 21st 2007 @ 01:17:30 PM
Script : http://giftedsouls.net/gs/chatbox.php

Flow Fusion
05-21-2007, 07:11 PM
How can I install the tables manually?

Fayden
05-22-2007, 11:23 AM
Is there a possibility to auto-delete all the messages in the shoutbox after a few time?
Would be nice if someone could help me with this :)

arco
05-22-2007, 01:48 PM
Is there a possibility to auto-delete all the messages in the shoutbox after a few time?
Would be nice if someone could help me with this :)
Open the zip file and look in the cron directory for instructions on how to autoprune.

arco
05-22-2007, 01:51 PM
How can I install the tables manually?
Try to drop the chatbox tables (if you have phpmyadmin) or uninstall the product, then reinstall it to see if that fixes it.

Flow Fusion
05-22-2007, 08:52 PM
Try to drop the chatbox tables (if you have phpmyadmin) or uninstall the product, then reinstall it to see if that fixes it.

I tried but to no avail.

santimariani
05-23-2007, 01:39 PM
How does this compare to the inferno shoutbox in terms of resources used? thanks!

arco
05-23-2007, 02:05 PM
I tried but to no avail.
Run this query:

CREATE TABLE ".TABLE_PREFIX."chatbox (
`shoutid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`userid` INT( 10 ) NOT NULL ,
`username` VARCHAR( 100 ) NOT NULL ,
`shout` VARCHAR( 255 ) NOT NULL ,
`dateline` INT( 10 ) NOT NULL ,
`ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( `shoutid` )
);

ComputerVitals
05-23-2007, 04:07 PM
How can I add custom commands to this?
like the /me command..

TheBlackPoet
05-23-2007, 07:05 PM
the more i look at it.... the more i like it... i was so used to shoutbox.., but my site kept crashing because of the amount of resources it stole..., but this will work just fine.... in conjunction with the big flashchat.....

and like everyone else... i'm trying to figure out why i cant paste the chat on the upper part of forumhome..

good job and thanks

Dream
05-25-2007, 01:21 PM
How can I add custom commands to this?
like the /me command..
You would need to code it into chatbox.php

the more i look at it.... the more i like it... i was so used to shoutbox.., but my site kept crashing because of the amount of resources it stole..., but this will work just fine.... in conjunction with the big flashchat.....

and like everyone else... i'm trying to figure out why i cant paste the chat on the upper part of forumhome..

good job and thanks

You should be able to do that just by following the instructions on chatbox below navbar.txt

How does this compare to the inferno shoutbox in terms of resources used? thanks!

Depends what you put on your auto refresh interval. If you leave it 5 minutes, it would use a lot less server resources. But if you put like 10 seconds, I don't think it would be much different, maybe the Inferno one would use less because it should be optimized for that kind of refresh interval, but I don't know for sure because I don't know the Inferno one's code.

Flow Fusion
05-25-2007, 01:41 PM
OK I see one of the other admin fixed it. Now can you tell me how do I slim it down?

http://giftedsouls.net/gs/index.php

Dream
05-25-2007, 02:03 PM
I don't see anything there Flow Fusion, just another chat program.

What do you mean by slimming down?

Flow Fusion
05-25-2007, 11:03 PM
I don't see anything there Flow Fusion, just another chat program.

What do you mean by slimming down?I am the 'other admin' who 'fixed' it, LOL! What happened is that he had 2 different chat hacks running and they were conflicting---Try right now to straighten these things up as we speak!

Flow Fusion
05-25-2007, 11:11 PM
Run this query:

CREATE TABLE ".TABLE_PREFIX."chatbox (
`shoutid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
`userid` INT( 10 ) NOT NULL ,
`username` VARCHAR( 100 ) NOT NULL ,
`shout` VARCHAR( 255 ) NOT NULL ,
`dateline` INT( 10 ) NOT NULL ,
`ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( `shoutid` )
);

This is what I get---

MySQL said: Documentation
#1064 - 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 '".TABLE_PREFIX."chatbox (
`shoutid` INT( 10 ) NOT NULL AUT

Flow Fusion
05-25-2007, 11:34 PM
OK---I fixed it. The code you showed was right, but for some ungodly reason it would not query? What I did was over-write the ajax version with the non-ajax---then upgraded and viola'! It worked!!! Thanx!

Dream
05-27-2007, 06:32 PM
Hi!

Two questions.
Is there any way to edit shout(s)?
How to set different input field size on vBA than forum home ?Generaly 50px input field is fine but vBA's columns are very narrow and 50px input field is way to long for vBA... :(


If u can show me how to detect current page (if it's vba page or forum home) I think I can do it by myself...


edit1
--------
firefox's error console says:

and my friend additionally show me this:
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;


function updateChatbox(newshouts) {
if (inputontop == 1) {
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;
} else {
shoutsDiv.innerHTML = shoutsDiv.innerHTML + newshouts;
document.body.scrollTop = document.body.scrollHeight;
}
updateTimeNow();
}
There's no way to edit shouts in the current version.

You can change the input size for both chatboxes (vBa and forum), but not for only the vBa one. That would require changing code but I'm afraid I wouldn't know how to do that.

I'll fix that firefox error (it's more of a warning than an error) in the next version.

Dream
05-28-2007, 12:54 AM
200 installs gogogo ^_^

Dream
05-28-2007, 01:37 AM
I have a question for people that use this mod.

If I were to add message colors (a select box that lets you select the color of your message), should just the message be colored or the whole line, including time and user name?

arco
05-28-2007, 01:38 AM
200 installs gogogo ^_^
:up: :)

And get well soon. :)

Flow Fusion
05-28-2007, 01:16 PM
I have a question for people that use this mod.

If I were to add message colors (a select box that lets you select the color of your message), should just the message be colored or the whole line, including time and user name?

Just the message imo.

What would be nice is if you could have usergroups shown in the color that the group is assigned. See, on our board, the mods are yellow, supermods are light blue, and admins are bold--that would be spectacular!

Mark.B
05-28-2007, 02:11 PM
I have a question for people that use this mod.

If I were to add message colors (a select box that lets you select the color of your message), should just the message be colored or the whole line, including time and user name?
Well I think just the message.

I have already amneded things slightly to show the time using <span class="time"> so that it matches the rest of vB.

Dream
05-28-2007, 04:12 PM
Just the message imo.

What would be nice is if you could have usergroups shown in the color that the group is assigned. See, on our board, the mods are yellow, supermods are light blue, and admins are bold--that would be spectacular!
You mean messages in the color of the user group?

agsguar
05-28-2007, 07:13 PM
Hi, dream!!

Thank you for the chatbox!!

I have a question! jeje..

Who can I limit the number of smiles, We have more than 150 smiles, and this spend too time to show all smiles?

Could you help me with this issue?

Thank you in advance!

Dream
05-28-2007, 07:23 PM
Hi agsguar,

You need to edit your chatbox.php to limit the number of smilies

In chatbox.php, find

$i = 0;
while( $smilie = $db->fetch_array( $result ) ) {

and change it for

$i = 0; $i2 = 0;
while( $smilie = $db->fetch_array( $result ) AND $i2 < XXX ) {
$i2++;

Where XXX is the number of smilies to show

Let me know if this works for you

Euda
05-28-2007, 11:43 PM
Dream,

I haven't marked installed yet, because I'm having an alignment problem. I've been all over the code in the templates and php files and can not resolve this. I've tried everything.

Everything inside the chat box is aligned to the center. Could you assist me by telling me how and where to place the code to force it to align to the left?

I am using the default style, so it's not a style issue, well, as far as I can see. The title of the chatbox is aligned to the left, but the input box and all shouts are centered.

Thank you,

Damion

Dream
05-28-2007, 11:47 PM
One user had this problem and posted his fix

https://vborg.vbsupport.ru/showpost.php?p=1248340&postcount=403

I'm not sure why this is happening with you guys

agsguar
05-29-2007, 12:03 AM
Is working perfect..

thank you.. one more... (sorry)

In my case I have a many forders in smiles folder. example.

/images/smilies/animal
/images/smilies/default
/images/smilies/special
/images/smilies/fresas
/images/smilies/general
/images/smilies/grandes
/images/smilies/nuevas

and the hack take this directory /images/smilies/nuevas.

this images are too large, I preffer to use /images/smilies/general how can change this option.

i dont have problem to make this change manually.

Thank you in advance.!!

Dream
05-29-2007, 12:37 AM
So, just show smilies in /images/smilies/general ? Or other folders as well?

nureeves
05-29-2007, 08:37 AM
hello,
do this mod takes more bandwith?

agsguar
05-29-2007, 12:44 PM
So, just show smilies in /images/smilies/general ? Or other folders as well?

I preffer only show the general folder. or could be show in random mode with all folders?? jeje

Thank you!

Euda
05-30-2007, 02:28 AM
One user had this problem and posted his fix

https://vborg.vbsupport.ru/showpost.php?p=1248340&postcount=403

I'm not sure why this is happening with you guys

There we go, thank you so much!!!!!

MARKED AS INSTALLED!!!!

:D:cool:

Dream
05-31-2007, 11:06 PM
Updated, 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.

Message editing won't be added because the user can easily delete his message and resend it. Also because the code level of complexity would highly increase because of the way things are done.

Also I wasn't able to remove the chatbox from the Who's Online list when the user is viewing the forum home, sorry.

arco
06-01-2007, 01:15 AM
Thanks for the update. There's an issue with the mouseover time though. Check my webpage...

arco
06-01-2007, 01:47 AM
Reverted the time code in chatbox.php to that of v1.7, and all is well.

arco
06-01-2007, 01:53 AM
Getting a funny number on top of the input box when not logged in. The color selection box should be locked for not logged in users too. Think I'll just go back to v1.7 for now.

agsguar
06-01-2007, 03:03 AM
Hi dream...

Houston, We have a problem!!

Hi, i have a problem with the 1.8 version..

this is the message:

Invalid SQL:
SELECT c.shoutid, c.userid, c.username, c.shout, c.dateline,
c.ipaddress, c.color, u.usergroupid FROM chatbox AS c LEFT JOIN user AS u ON
(c.userid = u.userid) ORDER BY dateline DESC LIMIT 0, 50;

MySQL Error : Unknown column 'c.color' in 'field list'
Error Number : 1054
Date : Thursday, May 31st 2007 @ 05:32:09 PM
Script : http://www.xxxxxx.com/foro/chatbox.php?nofocus=1
Referrer : http://www.xxxxxx.com/foro/index.php
IP Address : xxx.xxx.xxx.xxx
Username : THORNE
Classname : vB_Database


Please help us!! thank you!!

under_takers
06-01-2007, 03:02 PM
Database error in vBulletin 3.6.7:

Invalid SQL:
DELETE FROM vb_productdependency WHERE productid = 'chatbox_lite';

MySQL Error : Lock wait timeout exceeded; try restarting transaction
Error Number : 1205
Date : Friday, June 1st 2007 @ 08:55:08 AM
Script : http://www.xxxxx-xxxx.com/vb/admincp/plugin.php?do=productimport
Referrer : http://www.xxxx-xxx.com/vb/admincp/plugin.php?do=productadd
IP Address : 125.209.xx.xx
Username : xxxx-xxxx
Classname : vb_database


well is there any solution ?

Dream
06-01-2007, 07:46 PM
Thanks for the update. There's an issue with the mouseover time though. Check my webpage...

Reverted the time code in chatbox.php to that of v1.7, and all is well.

Getting a funny number on top of the input box when not logged in. The color selection box should be locked for not logged in users too. Think I'll just go back to v1.7 for now.
I updated the zip file, update your chatbox.php. I couldn't replicate the funny number on top of the input box.

Dream
06-01-2007, 07:47 PM
Hi dream...

Houston, We have a problem!!

Hi, i have a problem with the 1.8 version..

this is the message:




Please help us!! thank you!!
Did you import the new product file?

Dream
06-01-2007, 07:47 PM
Database error in vBulletin 3.6.7:

Invalid SQL:
DELETE FROM vb_productdependency WHERE productid = 'chatbox_lite';

MySQL Error : Lock wait timeout exceeded; try restarting transaction
Error Number : 1205
Date : Friday, June 1st 2007 @ 08:55:08 AM
Script : http://www.xxxxx-xxxx.com/vb/admincp/plugin.php?do=productimport
Referrer : http://www.xxxx-xxx.com/vb/admincp/plugin.php?do=productadd
IP Address : 125.209.xx.xx
Username : xxxx-xxxx
Classname : vb_database


well is there any solution ?
What are you trying to do?

Dream
06-01-2007, 10:45 PM
Arco let me know if the update solves the problems you were having.

arco
06-01-2007, 11:01 PM
I got this when loading the product.

Database error in vBulletin 3.6.7:

Invalid SQL:
ALTER TABLE `vb_chatbox` ADD `color` VARCHAR( 20 ) NULL ;;

MySQL Error : Duplicate column name 'color'
Error Number : 1060
Date : Friday, June 1st 2007 @ 04:59:47 PM
Script : http://www.fusion-racing.net/forums/admincp/plugin.php?do=productimport
Referrer : http://www.fusion-racing.net/forums/admincp/plugin.php?do=productadd
IP Address : 88.88.151.40
Username : arco
Classname : vB_DatabaseI'll try to bypass it.

Dream
06-01-2007, 11:10 PM
Did you install the product file before? Have you reinstalled 1.7 product file after installing the 1.8 file? Try to remove the code that creates the color field in the table if you did.

arco
06-01-2007, 11:11 PM
Ok, installed and the time issue is fixed now.

About the numbers, here's a clip from viewing the selected source.

<div class="smallfont" align="left"><span id="timeNow">1180742664</span><form action="javascript:postShout()" name="chatboxForm"><input name="nofocus" type="hidden"><input name="isrefresh" type="hidden">Notice the:
<span id="timeNow">1180742664</span>

arco
06-01-2007, 11:13 PM
Did you install the product file before? Have you reinstalled 1.7 product file after installing the 1.8 file? Try to remove the code that creates the color field in the table if you did.

Yep, I reinstalled v1.7 product after having installed v1.8. Did exactly what you suggests and all went fine. :)

Dream
06-01-2007, 11:17 PM
There must be something with vBa setting the $time variable to a non Null value. Update your chatbox.php, I updated the zip file. All should work now.

arco
06-01-2007, 11:28 PM
Yeah perfect!! Everything as it should be now. Thanks for fixing it so soon. Simply excellent! :up: :)

If I can just make one last suggestion... :)
When you hover the mouse over the X, it shows the time as when hovering over the username. Could that be changed to perhaps "Delete"?

Dream
06-01-2007, 11:32 PM
Np :) cheers

Dream
06-02-2007, 08:18 PM
Hi!

Two questions.
Is there any way to edit shout(s)?

Sorry Sir Yaro, I won't be adding message editing on this mod. Check out MCG Chatbox, it's a good chatbox that has message editing. Ask the guy if he can make a product file compatible with vB 3.5.

Dream
06-03-2007, 02:37 AM
Updated, version 1.9

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

Dream
06-03-2007, 03:04 AM
Yeah perfect!! Everything as it should be now. Thanks for fixing it so soon. Simply excellent! :up: :)

If I can just make one last suggestion... :)
When you hover the mouse over the X, it shows the time as when hovering over the username. Could that be changed to perhaps "Delete"?
I made so the mouse over just shows over the user name, the Delete mouse over could be easily done editing chatbox.php, adding a title="" or an alt="" not sure which now.

I don't plan on updating this mod anymore, it now has all the features I think it should have.

Dream
06-03-2007, 03:08 AM
I preffer only show the general folder. or could be show in random mode with all folders?? jeje

Thank you!
Change this code

while( $smilie = $db->fetch_array( $result ) ) {
echo '<td class="alt1" align="center">' . chatbox_make_smilie_link($smilie) . "</td>\n";
$i++;
if ($i >= $smiliecolumns) {
echo "</tr><tr>\n";
$i = 0;
}
}

for

while( $smilie = $db->fetch_array( $result ) ) {
if ($smilie[smiliepath] == '/images/smilies/general') {
echo '<td class="alt1" align="center">' . chatbox_make_smilie_link($smilie) . "</td>\n";
$i++;
if ($i >= $smiliecolumns) {
echo "</tr><tr>\n";
$i = 0;
}
}
}

If that doesnt work, try using '/images/smilies/general/' or 'images/smilies/general' or 'images/smilies/general/'

Also don't forget to redo the code change I told you about before.

Sofia
06-03-2007, 09:47 AM
Thank you for the Dream's Chatbox :) There are many interesting options.

arco
06-03-2007, 01:29 PM
I made so the mouse over just shows over the user name, the Delete mouse over could be easily done editing chatbox.php, adding a title="" or an alt="" not sure which now.

I don't plan on updating this mod anymore, it now has all the features I think it should have.

Thanks again. :)

Mupetz
06-03-2007, 08:24 PM
Thanks for the update Dream ;)

Dream
06-03-2007, 09:59 PM
No problem :)

Thank you for the Dream's Chatbox :) There are many interesting options.

You are welcome. The version you guys have at vbulletin resources is an old one, be sure to update it for I think some people might want to use a more simple chatbox than one too full of stuff (some people might). This chatbox is aimed to be simple for people that don't need too many stuff.

Sofia
06-03-2007, 10:20 PM
No problem :)



You are welcome. The version you guys have at vbulletin resources is an old one, be sure to update it for I think some people might want to use a more simple chatbox than one too full of stuff (some people might). This chatbox is aimed to be simple for people that don't need too many stuff.

Hi Dream. Yes, i will update your Chatbox on vbulletin-ressources because it's your first version. Yes, there are many interesting options and the Chatbox is simple. It's a good thing. Your Chatbox is one of Chatbox which I prefer for vBulletin. :) If a coder of vb-r had not created a chatbox, I shall have voted for you ;) (you're my second vote).

I tested it, and it works perfectly ;) I will translate it soon. If you want, i can post here the french language of the chatbox.

Regards, Sofia.

Dream
06-03-2007, 10:25 PM
Sure, if you post it I'll put it in the downloads. Also if VBDev wants to use any option in this chatbox in MGC Chatbox he has my permission.

Sofia
06-03-2007, 10:32 PM
Sure, if you post it I'll put it in the downloads. Also if VBDev wants to use any option in this chatbox in MGC Chatbox he has my permission.

Thank a lot for all. And ok for the translation. I'll post it tomorrow ;) I love your hacks :)

I'm going to go to bed. Good night :D

Dream
06-03-2007, 10:40 PM
no problem good night

achilies.biz
06-04-2007, 06:19 AM
no problem good night

Hello!

I just want to ask you one little stupid question:

where i can change title of window, i want to change everywehre 'Chatbox' to 'Chat' ?

thanks advance

Sofia
06-04-2007, 10:30 AM
Hello Dream :)

It's ok. I post the french translation of your Chatbox. You can put it in downloads.

Regards, Sofia.

Omega409
06-04-2007, 12:26 PM
Top Hack!

You can change the default text size quite easily by editing chatbox.php.

Please, what for code must i chance?

TrIn@dOr
06-04-2007, 01:06 PM
Dream, i still can't have moderators!

TrIn@dOr
06-04-2007, 01:09 PM
Dream, i still can't have moderators!

I know what is it.

If a user belongs to more than 1 usergroup, u need to put both or all usergroups to work.

TrIn@dOr
06-04-2007, 01:31 PM
I know what is it.

If a user belongs to more than 1 usergroup, u need to put both or all usergroups to work.

Is not this, usergropup need to be primary to work!

Dream
06-04-2007, 07:09 PM
Hello!

I just want to ask you one little stupid question:

where i can change title of window, i want to change everywehre 'Chatbox' to 'Chat' ?

thanks advance

Just change the GLOBAL phrase chatbox_chatbox. Also please mark as installed if you use this mod :)

Dream
06-04-2007, 07:11 PM
Hello Dream :)

It's ok. I post the french translation of your Chatbox. You can put it in downloads.

Regards, Sofia.
Thank you :)

Also I love your avatar =^_^=

Dream
06-04-2007, 07:13 PM
Top Hack!



Please, what for code must i chance?
Try changing this

echo '<div class="smallfont" id="shoutsDiv" align="left">';

for this

echo '<div id="shoutsDiv" align="left">';

In chatbox.php

Dream
06-04-2007, 07:14 PM
Dream, i still can't have moderators!
I'll look into fixing the secondary user groups for you.

TrIn@dOr
06-04-2007, 07:16 PM
I'll look into fixing the secondary user groups for you.

Thanks a lot!

Dream
06-04-2007, 07:36 PM
Thanks a lot!
Download the 1.9 zip file again and try the new chatbox.php please.

ForeverForums
06-05-2007, 05:05 AM
anyone know of a deceny shout box that will work for 3.5.2 ? or will this one work with that ?

Dream
06-05-2007, 05:32 AM
This one *should* work with 3.5, try using the 3.5 product file.

achilies.biz
06-05-2007, 06:57 AM
Just change the GLOBAL phrase chatbox_chatbox. Also please mark as installed if you use this mod :)

All is OK, thanks ;)

If you want you can see your product for russian customers here: www.fliz.ru ;)

p.s. where i can mark it like installed ?

Dream
06-05-2007, 07:02 AM
Awesome :) glad it worked for you, cheers

Don't forget to tell your users about the /me code :P

Dream
06-05-2007, 07:10 AM
Oh guys leave your live demos in this thread for me to use in the first post :) if your forum webpage isn't a secret and you have your chatbox visible to guests of course

ForeverForums
06-05-2007, 03:57 PM
working indeed in 3.5.2 thanks alot for this one. my members are going to love it.

Omega409
06-05-2007, 04:19 PM
Try changing this

echo '<div class="smallfont" id="shoutsDiv" align="left">';

for this

echo '<div id="shoutsDiv" align="left">';

In chatbox.php

Fine! This fix works! Thanks!