PDA

View Full Version : Chat Modifications - MGC Chatbox (with AJAX)


Pages : [1] 2 3 4 5 6 7 8 9 10

VBDev
05-29-2007, 10:00 PM
Last version - MGC Chatbox Evo available : here (https://vborg.vbsupport.ru/showthread.php?p=1431075#post1431075)

Description

When I had left the vBulletin world, I was in the past the co-author of a little chatbox (shoutbox), very well known in the vBulletin world.
This chatbox had been developed by Svaliotti (known as Poseidon on vb.org) for vB2 in the past and I had made the porterage (with is authorisation as we were both members of the same french non-official support forum) and the improvement for vB3.

It is thus normal that in my return in the vBulletin world, I begin by getting down to this hack. Even if several versions of chatbox are already present in the vBulletin world, I said to myself that it would be a good thing to make a made in France.

Naturally, I don't deal with a "copy" version of the other chatbox, I have any coded at the beginning (it was preferable because the front code wasn't so clean any more), and I integrated a good quantity of very interesting features.

New version features

The new version contains all the features from the previous version. Description of these versions can be found in Sofia's post hereabove (https://vborg.vbsupport.ru/showpost.php?p=1257510&postcount=3 (https://vborg.vbsupport.ru/showpost.php?p=1257510&postcount=3)).

Modifications from previous version are the following :
1.5 :
Fixed bugs :
Chatbox is shown two times in full page mode when the Display on all pages under the navbar option is selected.
"Fermer" is not in a sentence.
Overflow problem with Netscape.
Uppercase transformed to lowercase in the PM channel.
The ban cron debans user indefinitly banned.
Chatbox continuously loading on some forums.
Inactivity and guests problem.
Team icon blinking is not working properly.
Coma error in the who is online.
2 spaces instead of one between the date and the time.
New functionnalities :
Option to deactivate the random smilies.
Option to deactivate the automatic PM sending when banning a user.
New permission to allow or not the downloading of shouts.
Option to specify the name under which unregistered users shouts appear.
Syntax change for the /ban, /ignore, /del, /pm commands : Possibility to use them with the username or the userid (For more information about the new syntax, check the help button in the chatbox).
Removed functionnalities :
vBAdvanced integration [TEMPORARLY] => See this for integration with this version https://vborg.vbsupport.ru/showthread.php?t=163628 This hack is very light in term of queries : only one for every recharging / refreshment of the chatbox and 5 for the statistics in the load of the page if you actiate them. If you don't activate advanced options of course as stated aside each in the acp :)

Installation

Read the file "Installation" in the pack.

Once the installation is ended, go in usergroups and edit permissions to see the Chatbox.

By default, no group has access to the chatbox.

Screenshots

The screenshots are in french as I have made it on an online website which is in french. Don't hesitate to give me new one if you want in english :)

They are up to date of 1.3 version.

See the following post : https://vborg.vbsupport.ru/showpost.php?p=1292136&postcount=559 (https://vborg.vbsupport.ru/showpost.php?p=1292136&postcount=559)

User manual

Coming soon ...

Copyright

This hack is under copyright MGC (Mtor&Grog Corporation) 2007-forever and was developed for vBulletin-Resources.com & vb-hacks.org. Its redistribution on another forum that vbulletin-ressources.com, vb-hacks.org or vbulletin.org are prohibited without aggreement of the authors!

Evolutions and improvements

This sixth version of the chatbox is already very complete, but like each product, its evolution depends on all. Then don't hesitate especially to share your ideas of improvements so that we can improve even more this chatbox.

Languages

Actually available :
French
English
Arabic [Translator : alessai]
German [Translator : captainslater]
Vietnamese [Translator : Anhyeu12000]
Turkish [Translator : neutralizer and bocek]
Spanish [Translator : obmob] [TO BE UPDATED FOR 1.5]To be available [Translation in progress] :
Bosnian [Translator : Benjaminbih]For the translators : phrases with version number 1.5 in the English language file are the one that have been modified or added in the new version so you should probably find the modification for your language file easily.

Contact me if you want to participate and add your own country language file :)

Support

Several possible problems are explained in the file "Read Me" ;)
Chatbox in iBProarcade and vBadvanced CMPS

See the readme file for iBProarcade.

For vbadvanced, a module is available here : https://vborg.vbsupport.ru/showthread.php?t=163628.

FAQ

Q: I installed the chatbox but it doesn't display
R: Check if you have allowed users (permissions in usergroups)

Q: I see shouts but in the collapsed chatbox
R: You can specify number of shouts in the collapsed chatbox. If you don't want to see it, put "0" for this option.

Q: The chatbox doesn't display below or in the top of one of the pages while in the other position it displays
R: You use a style and it's possible that variables used in templates aren't present. (Read the file "Read Me")

Q: I have a problem with accents in the Chatbox
R: Read the file "Read Me"

Q: How to change the value of color for date and for command /me?
R: When you add additionnal CSS for each style, you can change color in class CSS.

Thanks to Sofia for her earlier help on the chatbox.

You can donate if you want to show your support

Last version - MGC Chatbox Evo available : here (https://vborg.vbsupport.ru/showthread.php?p=1431075#post1431075)

Adam21
05-30-2007, 11:11 AM
Good job,looks great!Installing it now,thank you!

*Clicks Install*

*Edited:Installed and works perfectly fine on 367PL1!Installation is easy and less than a minute!:)

Sofia
05-30-2007, 11:20 AM
Older version features

1.0 : Creation of the first version
MGC Chatbox Options:
Enable/Disable of the Chatbox
Chatbox Height and Widht of the field input
Choose the number of messages in collapsed chatbox and expanded chatbox
Enable/Disable automatic refreshment and you can specify a value of refreshment.
Allow text formatting BBCODE, URL and IMG
You can choose the number of smilies on the menu
Choice of number of smilies that an user can use in his shouts
You can choose the date color of the Chatbox
Display the chatbox on index, in the forums or in the theads
Choose the position of the chatbox on index/forums/threads
Enable/Disable command /me, choice of the command color
Enable/Disable command /team, choice of command color and usergroups who can see and use it
You can specify which usergroups can manage his shouts (delete and edit)
Enable/Disable the display of Chatbox statistics on the index
You can choose the number of days for the automatic deletion of messages (cron)
You can consult the archives of Chatbox
Choice of the number of messages per page for the archives
Usergroups permissions:

Usergroups who can use the Chatbox
You can specify a number of posts that an user must have to use the Chatbox
Usergroups who can manage his shouts
Banishment of users via the users manager
Enable/Disable the automatic deletion of old messages with the scheduled tasks manager
Automatic sending of a private message to the banned user
You can edit shouts by double-clicking on them in the Chatbox or in archives (AJAX)
Deletion of shouts via a little red cross in archives (AJAX)
Automatic/manual refreshment of Chatbox (AJAX)
Sending shouts without the loading of page (AJAX)
You can download archives in TXT, CSV or XML
Version 1.1:

Fixed bugs:
Enlarge Chatbox when you click on the display of BBCODES (IE)
Problem with the display of smilies (IE)
Display statistics in archives
Automatic parse of url when BBCODE URL is allowed
New features:

Banishment via the Chatbox with 3 new commands : /ban, /deban and /showban)
Automatic MP sending on user ban
You can see all banned users with the command /showban
You can ban an user for a specific period (you can lift a ban automatically by a scheduled task)
You can display the Chatbox on a full page (you can specify the full page chatbox height)
Add a chatbox menu in navbar when you enable the display of full page Chatbox
Split of shouts in two tabs: one for the general messages and the other one for shouts /team (use 2 channels)
BBCODE color is now included for the shouts /team
Colors of shouts /me et and shouts date for each style via the CSS
Options in the user profile for the selection of default font, color and size
You can add an announcement at the top of the Chatbox (for rules for example)
Deleted features:

Banishment via the users manager in the admincp
Color of command /team

Version 1.2 :

Fixed Bugs:
Problem with CSS overflow with Opera and Safari
Full mode permissions
Strange number of queries when unregistered users
Prevent downloads shouts when there isn't
Fonts size in Statistics
New features:

Command /del all independent according to channels (when the two channels are enabled).
Users can choose to display chatbox in the usercp (options).
Default BBcode B, I and U in usercp (options).
You can choose the number of users for the Top X Shouters.
Choose the display order of shouts (Newest or oldest at the top).
You can choose the editor position in the Chatbox (at the top or below).
Adding command /annonce. You can manage announce in the chatbox (and in the options).
You can choose to use chatbox with two channels (normal and team) or simply one general channel and team shouts appear in this channel.
You can change chatbox title.
New usergroups permissions for commands like team and me, ...
Enable/disable date in the chatbox.
You can specify users who can use command /team (if they don't have permissions in their usergroup).
Specify your team prefix (appear in the chatbox) when the team channel is disabled.
Choose your date format for the chatbox.
Deleted features:

Deletion of options for users can manage chatbox and use command /team (based on usergroups permissions now).

Version 1.3

Fixed bugs :
Ksort function error when chatbox is empty.
Error in the top shouters phrase in the archives.
Italic selection in the user control panel not taken into account.
Date local problem in the chatbox depending on server (% necessary and some server while not on others) - Thanks to Dream from here.
Browser sent to the top when clicking on a smiley on some forums (now a click on the smiley bump the browser to the top of the chatbox).
In the oldest shouts first mode, the scrolling bar is not at the bottom thus forcing the user to scroll in order to view new shouts.
"Can view" permission only not working properly.
Team image disapearance when clicking on it on IE6.
New features :

All chatbox buttons redesigned - Thanks to Raz from vbulletin-ressources.com
Opacity effect on select channel button.
New option to add a delete cross directly aside the shouts (in addition to the one in the archives).
Selection of the maximum size selectable by users for the SIZE BBCODE.
New option to select the items the users can choose for the default shouts formatting in their user control panel.
/announce command added as an equivalent of the /annonce one.
Possibility to hide the refresh displaying elements (animated gif and refresh button).
New options to hide the time or the date or both.
Option to activate the chatbox on all the pages (all or define ones through a list). Two implementation possibilities :
Above the navbar.
Or in the $mgc_chatbox global variable which can be used in the pages corresponding templates.
Idle mode which permits to disable the refresh of the chatbox when a user hasn't participated to the chatbox since a define time period (timeout). Can be enable/disabled from the acp, along with the time period value.
Dropdown menu in the archives to show only team shouts (if user has the right) or only generals or both.
Warning system when a new shout is available in the team channel with the chatbox in 2 channels mode (animated gif). Both activation/deactivation and time period for the new shouts presence checks can be done within the acp.
/ignore (ignore shouts from a particular user), /showignore (view ignored users list), /deignore (remove a user from your ignored users list) commands added.
New channel activable from the acp to allow defined usergroups to view who is actually online in the chatbox.
Split of options in four groups.
Removed features :

None
1.4 :

Fixed bugs :

Scrolling not working properly when oldest shouts first is selected.
Problem of page bumped to the top when clicking on smilies.
Inactive mode problem when chatbox is collapsed.
Js error when clicking on wol channel button (experienced only by Adam21).
When team command is not active, clicking on the wol button and then back to the normal button make a second normal button appears.
When a user disables the chatbox from its ucp, he can't activate it again.
Problem when having a smilieys smileys like : : D and \ : D /..
When delete cross is active in the chatbox there is an alignment problem.
In archives, when viewing team shouts only and deleting a shout, the page is back to the view all shouts page.
New features :


Random smilies - Thanks to stangger5 from vb.org.
Channel name shown on channel buttons' mouseover.
Option to align or not the username in the chatbox.
Full page mode link directly in the chatbox.
Don't count at all team shouts in top X shouters (actually they were counted but only when user viewing the stats has access to the team command).
Full page mode as popup or in the same browser window
Option to choose the number of shouts in the full page mode independently from the one in the normal mode.
Nex commmand : /pm or /mp which allow users to send private shouts (enabled through acp option + usergroup permissions).
For the user which have access to this command, a little pen is shown near others username in the chatbox to easier private shouts sending - Thansk to Teepiak from vbulletin-ressources.com for his inspiration on that part
Removed features :
Aucune

VBDev
05-30-2007, 11:23 AM
Reserved....:D Good job my darling ;)

Good job too darling :p I post it thanks to your job on the french to english translation :)

beduino
05-30-2007, 11:26 AM
thanks !
a lot of options [including display modes] makes this hack a very useful code
joao barroca
aka beduino

Sofia
05-30-2007, 11:27 AM
Good job too darling :p I post it thanks to your job on the french to english translation :)

I made it with pleasure :o

Adam21
05-30-2007, 11:51 AM
In the Admincp options,there's the option for Refreshment Time (in seconds).Does that mean when other users enter their shouts,we wont see their shouts instantly until the shoutbox automatically refresh itself in the given value?

VBDev
05-30-2007, 11:58 AM
Yes you are right ! Anyway, you can set this time as you like but I don't think thats it is absolutoly mandatory to see the shout immediatly as it's only a chatbox not a chat :)

Anyway you can set it to the value you want so you've full freedom on this :)

gforce75
05-30-2007, 11:59 AM
Thanks! I installed it and works smoothly.

bela-meaad
05-30-2007, 12:02 PM
i like it
good job

Thanks

Adam21
05-30-2007, 12:10 PM
Yes you are right ! Anyway, you can set this time as you like but I don't think thats it is absolutoly mandatory to see the shout immediatly as it's only a chatbox not a chat :)

Anyway you can set it to the value you want so you've full freedom on this :)


Thanks,i got it.Very feature-rich chatbox!:up:
What's the Team Channel button for anyway?:confused:

VBDev
05-30-2007, 12:28 PM
On the chatbox, some usergroup are able to use the command called "/team" (usergroup parameter in the vbulletin options for the chatbox).

The chat sent with this command are shown in the Team channel ;)

I have done this coz when lots of people speak in the day you might miss some important team messages. So with the separation of the channels, this problem is solved (I plan to do an alert in the next version which tell the user that a new chat has been sent on this channel).

However, user are not obliged to you the /team prefix for their messages when they are located in the team channel.

TheBlackPoet
05-30-2007, 01:31 PM
installed!!! thanks...!! looks good!!!

itsblack
05-30-2007, 02:56 PM
Great mod! I'm going to install it.

Adam21
05-30-2007, 03:02 PM
I have left column blocks on my forumhome.Right now,the chatbox is sitting right on top of everything,on the left column blocks and my forums on the right.
How do i make it that the left column blocks sits on the left all the way up,while the chatbox sits on top of my forums on the right?:confused:

e.g see my screenshot

*Edited: Here's how you can solve that

Go in the admincp
-In the plugin manager, open the forumhome_complete plugin in the chatbox product
-Find $navbar and replace it by $chatbox_forumhome
-Then in your FORUMHOME template, add $chatbox_forumhome where you want the chatbox to appear

Thank you VBDev!:up::)

VBDev
05-30-2007, 03:42 PM
You told me about the integration in arcade main page, you spoke about ibproarcade or vbarcade one?

I could try to do it but not sure I got the time for it :( I have a lot of things to do.

Feckie (Roger)
05-30-2007, 03:50 PM
How Can We Have This On All Pages

VBDev
05-30-2007, 03:52 PM
Actually you can't, but I plan to add an option for this in the next version.

Adam21
05-30-2007, 03:53 PM
You told me about the integration in arcade main page, you spoke about ibproarcade or vbarcade one?

I could try to do it but not sure I got the time for it :( I have a lot of things to do.

I'm using ibproarcade.It'll be nice and useful to have in there i think.
:)

Feckie (Roger)
05-30-2007, 03:53 PM
And when is that due out

VBDev
05-30-2007, 04:08 PM
@ Adam21 : Yes I'll look that for the next version

I think the new version will be out in 2 weeks coz I am actually working on other projects :)

theOZer
05-30-2007, 04:16 PM
I have installed this beautiful, beautiful hack.
This is BOSS!
Chatbox V1.7 is an excellent simple chatbox. Inferno Shoutbox Lite had many attributes but was too server intensive for my forum. Couldn't get EWT vBChat to work.
Not to worry, now, though.
MGC Chatbox Rules!
Salue to VBDev!

bashy
05-30-2007, 04:16 PM
Hi

Installation has failed a tiny bit.

The navbar is not how it should be

here is part of my navbar code where the template changes are

<!-- / nav buttons bar -->

<br />
$adv_navbars
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<if condition="$vboptions[mgc_chatbox] && $chatbox_permission">
<td id="mgc_cb" class="vbmenu_control">
<a href="#">$vbphrase[mgc_chatbox]</a>
<script type="text/javascript">
vbmenu_register("mgc_cb");
</script>
</td>
</if>
<!-- NAVBAR POPUP MENUS -->

<if condition="$vboptions[mgc_chatbox] && $chatbox_permission">
<div class="vbmenu_popup" id="mgc_cb_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[mgc_chatbox]</td>
</tr>
<tr>
<td class="vbmenu_option">
<a href="mgc_chatbox.php?$session[sessionurl]do=view_chatbox" rel="nofollow">$vbphrase[mgc_cb_voir]</a>
</td>
</tr>
<tr>
<td class="vbmenu_option">
<a href="mgc_chatbox.php?$session[sessionurl]do=view_archive" rel="nofollow">$vbphrase[mgc_cb_voir_archives]</a>
</td>
</tr>
</table>
</div>
</if>


Please see the image as to what is happening

Any advice please?

RvG2
05-30-2007, 04:19 PM
wow! :eek:

VBDev
05-30-2007, 04:23 PM
Hi

Installation has failed a tiny bit.

The navbar is not how it should be

here is part of my navbar code where the template changes are

Please see the image as to what is happening

Any advice please?

I think you have installed a hack to add links to the navbar so the code is slightly different for you, no ?

If yes, you have to add a new menu called MGC Chatbox and then add the two following links:

name : $vbphrase[mgc_cb_voir]
url: mgc_chatbox.php?$session[sessionurl]do=view_chatbox

name : $vbphrase[mgc_cb_voir_archives]
url: mgc_chatbox.php?do=view_archive

Allan
05-30-2007, 04:29 PM
Great !!

Congrat poulet ;)

Azhrialilu
05-30-2007, 04:44 PM
I'm not generally a fan of chatboxes.. but this one is lovely!
*clicks install*

pewp
05-30-2007, 04:56 PM
is there anyway to get the messages to show up in ascending order... when i was running vbshout it would allow me to switch between new messages on top or bottom, and i want them on the bottom.

VBDev
05-30-2007, 05:00 PM
Nop actually there are not but I will do it :)

Anyway you could be a little more polite ;) I would ;)

Michael Biddle
05-30-2007, 05:11 PM
Great work on this :D

Sofia
05-30-2007, 05:14 PM
Great work on this :D

Hi, Mike :D yes, it's a good work, isn't it ? I am proud of him :p

slyreptile
05-30-2007, 05:28 PM
Very nice hack. Well done.

RFViet
05-30-2007, 06:30 PM
Can chat box show in every page ??

Sofia
05-30-2007, 06:37 PM
Can chat box show in every page ??

At present, You can display chatbox on index / forums / threads. And you can display the Chatbox in a full page.

For all pages, Mtor plan to add this option in the next version of the Chatbox ;)

bashy
05-30-2007, 07:41 PM
Hi, actually i think i will have to pass on this one, it adds 6 queries to forumhome, thanks any way, tis a big shame really as its a very good addition to any forum, well done!!

Zeitgeist
05-30-2007, 07:50 PM
I've installed the chatbox at the bottom of my forumhome. Is it normal that every time I click on a smiley I automatically will be returned to the very top of the page (the smiley code appears correctly)? I think this could be a problem for some of my chat-junkies. ;-)

1337_macro
05-30-2007, 08:01 PM
Is it possible to have the editor on the bottom instead of the top? If so how would I do that?

VBDev
05-30-2007, 08:10 PM
@ bashy :
It add 6 queries if you activate he stats ! It is said in the admincp that it adds lot of queries.

If you deactivate them, the chatbox takes only 1 query !!

@ Zeitgeist :

This is maybe due to the fact that the link on the smileys is a link with ref = #top and an onclick event. Open the functions_mgc_cb.php file in the includes directory and remove #top in the getchatboxsmileys function.

@1337_macro : in the next version yes

da420
05-30-2007, 08:15 PM
Awesome job on this man! Marked as installed installed.
But, I can't use it because it is slowing down some of my users browsers. Whenever it loads it will make everything slow down. If you are entering text in the text box when it loads it will just freeze up or slow way down.

VBDev
05-30-2007, 08:16 PM
Awesome job on this man! Marked as installed installed.
But, I can't use it because it is slowing down some of my users browsers. Whenever it loads it will make everything slow down.

Really ? None of our users on vbulletin-ressources.com have experienced that during the past 2 month.

What is their browser ?

da420
05-30-2007, 08:23 PM
Firefox 2.0.

1337_macro
05-30-2007, 08:27 PM
Woot man this is a fantastic shoutbox...i have a large forum with 300 people on and all other shotboxes lagged with such use...not this one and its fantastic on server load. Thanks

VBDev
05-30-2007, 08:31 PM
Firefox 2.0.

Really strange, it should work, I have tested it with firefox 2.0 and there is no problem at all.

Is this just when page loads and people enter chat during the page load that the problem occurs ? What if they wait for the loading end ?

da420
05-30-2007, 08:35 PM
You will be typing, and when the shout box loads the text will freeze up for a second till it's done loading. Sometimes, it works fine without hanging, but sometimes it will. It's not terrible, but it is a bit annoying.

VBDev
05-30-2007, 08:41 PM
You mean when the shouts have not been retrieved ? During the chatbox first refresh ?

da420
05-30-2007, 09:00 PM
No the shouts retrieve fine. Some of our users will be typing in the box replying in the shout box. While they are in the text box, and I have it set to refresh every 15 seconds, so when it refreshes and they are typing at the same time it will freeze up. Like you will be typing, but no letters are being typed even though I am still typing. This isn't just in the text box, it's also in the quick reply box it slows down when it loads. Also seems to slow down some users cursor in the browser. It's not so bad on mine, but some of my users make it seem like it's pretty bad for them, and it almost sounds intermittently.

VBDev
05-30-2007, 09:06 PM
If this is the same problem in the quick reply, then it is maybe of problem with your user's computer that may not support ajax or something like that I think.

You have tested it with Firefox 2.0 do you get the same problem ?

da420
05-30-2007, 09:32 PM
Anyways, I am going to give it a try, and see what my users say about it.

I'll give it a try. It was my other admin that was complaining as I enabled it for the admins only, and he was on his old laptop, so that might have had something to do with it. It was happening to me, but I opened my task manager and am seeing something majorly wrong with Firefox as it was using 450MB of RAM. So, I closed and reopened, so we will see what the other users say.

This is a really great product as it stands, and seems to be working flawlessly on others boards.
I do have some suggestions though. ;)


Idle function - after a set amount of time the user goes idle so the shouts stop refreshing. Then when the user comes back and he sees he's idle (message at the top of the shout box) he can hit a button that says "I'm back." and all will refresh again.
Users to have the option to disable the shout box all together from their user cp.
Active Users in The Shoutbox
Add a PM function (ex. /pm username;message)
Ignore feature to ignore users (ie. /ignore username then /unignore username to disable the ignore on that user)
Add an announcement that you can add from the shout box (ex. /announcement messagehere)
Change descending to ascending mode and editor position from top to bottom.Would really love to see these features add. Especially the first two.

Thanks and nominated for Mod Of The Month. :up:

1337_macro
05-31-2007, 12:52 AM
Maybe make it where the color you choose will become default untill you switch? that would be killer.

Thanks and nominated for Mod Of The Month.

da420
05-31-2007, 01:27 AM
Maybe make it where the color you choose will become default untill you switch? that would be killer.



Thanks and nominated for Mod Of The Month.

You can do this in your User CP. But, it could be cookie or database set when you choose it I imagine?

Mastar
05-31-2007, 01:38 AM
Is there anyway to allow this to show in the ibp arcade? Thanks!

ssslippy
05-31-2007, 01:39 AM
Can you add the ability to set your default text with underline, bold, and italic. Thank you

69lakalle
05-31-2007, 01:43 AM
well it worked for me and its a great add but .... still have issues .. like
1) when sum one selects a costum font, color etc it stays like that
2) random smillies
3) been able to select the biggest size users can post
4) a refresh like shoutbox its like a live refresh...
5)still thinking

i will wait for the next update !
if u get this fixed it should b nominated for MOTM

Injektilo
05-31-2007, 03:40 AM
I have this problem... I've doubled checked all the edits and everything and still i have this problem... The chatbox is being displayed but inside the chatbox it shows my website again, instead of the actual shouts...

what am i doing wrong here?

https://vborg.vbsupport.ru/

VBDev
05-31-2007, 04:33 AM
Idle function - after a set amount of time the user goes idle so the shouts stop refreshing. Then when the user comes back and he sees he's idle (message at the top of the shout box) he can hit a button that says "I'm back." and all will refresh again.
Users to have the option to disable the shout box all together from their user cp.
Active Users in The Shoutbox
Add a PM function (ex. /pm username;message)
Ignore feature to ignore users (ie. /ignore username then /unignore username to disable the ignore on that user)
Add an announcement that you can add from the shout box (ex. /announcement messagehere)
Change descending to ascending mode and editor position from top to bottomI am going to have a look at the firefox thing for the next version, I'll see if I can encounter the same problem.
For your request, here are my answers:

The idle thing might be really hard to check, and I think it would add too many charges on the server. I'll see what is possible but I can't promise you anything on that one.
Yes that's a good idea and not that hard to do, OK for me.
Yes that was planned. However, I think I will do the check of the user online at page loading and add a button to refresh. However this would be deactivable through the admin as It would add a sql request for each online users refreshing.
I thought about if for the previous version, but I don't think it is a good functionnality for a chatbox, remember, this is not a chat ;) So I think I'll pass that one, the mp is here for that :)
This would add an sql request so I don't think it is a good idea, no ? I could make it inactive by default with a warning in the acp that says it adds a sql request at each chatbox refresh.
There is already an annoucment possibilty but configurable through the acp. However I could remove it from the acp and transform it in a command as you said. That's a good idea.
Yeah lots of people here already asked that I have noted it :)
Is there anyway to allow this to show in the ibp arcade? Thanks!

It previously said I would do that in the next version :)

Can you add the ability to set your default text with underline, bold, and italic. Thank you

Yes that's planned


1) when sum one selects a costum font, color etc it stays like that
2) random smillies
3) been able to select the biggest size users can post
4) a refresh like shoutbox its like a live refresh...
5)still thinking


Here are my answers :

I don't understand. What do you mean exactly ? There are actually warned of that coz their options are selected by default in the select box of the chatbox no ?
Yeah I will think to that anyway. However I plan to add a [More ...] link which does like in the posts
Yeah that's planned you're right on that point
It don't see what you mean there ?
Yeah not to much please ;)I have this problem... I've doubled checked all the edits and everything and still i have this problem... The chatbox is being displayed but inside the chatbox it shows my website again, instead of the actual shouts...

what am i doing wrong here?

https://vborg.vbsupport.ru/

You have uploaded the files at the irght places ? In the page shown in the chatbox, is this a normal page ? or do you get an error in it (like a nopermission). This seems really strange to me.
What version of vbulletin do you use ? Are you the only one to experiencethat problem on your forum ?

DementedMindz
05-31-2007, 04:41 AM
VBDev excellent mod Nominated for MOTM also. is there anyway to have this show up on a vbadvanced page and if not do you plan on releasing something to make it work?


4) a refresh like shoutbox its like a live refresh...


wtf are you talking about? what do you want it to refresh for everyone as soon as you post the message you need to explain that one more.

VBDev
05-31-2007, 04:45 AM
I have planned to do something to show it up on vbadvanced.

Anyway I can't tell you when It will be up as I do vbulletin as an afterwork thing you see ;) And I have lots of things to do with the support forum and the forum on which I sell some of my hacks with a friend.

But I don't think It'll be too much to do so the only thing is to be patient :)

da420
05-31-2007, 05:59 AM
[/list]I am going to have a look at the firefox thing for the next version, I'll see if I can encounter the same problem.
For your request, here are my answers:
The idle thing might be really hard to check, and I think it would add too many charges on the server. I'll see what is possible but I can't promise you anything on that one.
Yes that was planned. However, I think I will do the check of the user online at page loading and add a button to refresh. However this would be deactivable through the admin as It would add a sql request for each online users refreshing.
I thought about if for the previous version, but I don't think it is a good functionnality for a chatbox, remember, this is not a chat ;) So I think I'll pass that one, the mp is here for that :)
This would add an sql request so I don't think it is a good idea, no ? I could make it inactive by default with a warning in the acp that says it adds a sql request at each chatbox refresh.
There is already an annoucment possibilty but configurable through the acp. However I could remove it from the acp and transform it in a command as you said. That's a good idea.
Yeah lots of people here already asked that I have noted it :)Alright cool. I still notice it here and there, but, like I said, nothing terrible. After I closed and reopened FireFox it was a lot better, so maybe my FireFox or one of it's plugins maybe has a memory leak and that could be causing it? Possible, I guess.

Do what you can, one of my favorite features about the Inferno Shout found here, and it's also in the IPB shout box is the Idle feature.

The PM feature wasn't important, but always thought it was nice. Thanks for explaining. Neither is the ignore feature, but another user I was talking with told me to add it to my list.

Thanks for the positive response, this looks to be the best one yet.

Installed, 5 stars, and nominated.

VBDev
05-31-2007, 06:19 AM
I will put the TODO list in my post later in the day so that you can see what's planned.

For the leak Yes it is a possibility, I have asked my members if they encountered such problem, waiting for their answers ;)

For the idle I'll see I think It's possible so I'll tell you :)

bashy
05-31-2007, 09:12 AM
Now that sounds more realistic, will reinstall tonight, thanks... :)


@ bashy :
It add 6 queries if you activate he stats ! It is said in the admincp that it adds lot of queries.

If you deactivate them, the chatbox takes only 1 query !!

bashy
05-31-2007, 09:34 AM
Ok installed again, looks like it aded 2 queries...not a problem...

When the smilies are clicked ti be inserted into the text it takes you to the top of the screen, is there a fix please?
Also members cannot see the chatbox, permissions have been set for both of them
Only admin and seniors and mods are able to see the box, surely theres sommat amiss somewhere?

VBDev
05-31-2007, 10:07 AM
Ok installed again, looks like it aded 2 queries...not a problem...

When the smilies are clicked ti be inserted into the text it takes you to the top of the screen, is there a fix please?
Also Mods nor members cannot see the chatbox, permissions have been set for both of them
Only admin and seniors are able to see the box, surely theres sommat amiss somewhere?

Hum 2 queries ? That's strange coz there is only a query to retrieve the shouts, I'll check that out I'll start developping the new version.

For the smilies problem, there may be a fix but I didn't tested it yet, so maybe you could try:

Open the includes/function_mgc_cb.php file
Find the getChatboxSmileys function
In the line $chatbox_smileys .= '<a href="#" onclick="return ajout_smilie(\'' . $textsmilie . '\');" alt="' . $smilie['title'] . '"><img src="' . $smilie['smiliepath'] . '" border="0" /></a> ';
Replace # by #topI think it's because I didn't put a real link in it (keep my up to date on that part :))

For the mod and members, this is primary usergroup or additionnal ?

In case of additionnal usergroup, only the permissions in the primary usergroup works.

Anyway did you set both can use permission and number of post to use chatbox to correct values ?

bashy
05-31-2007, 10:39 AM
Smilies are perfect now thanks.....
Ah ok i have just set all secondary permissions and now it shows, so it looks like you have to set permissions for every group (primary and secondary) you have else some members might not see it

Thanks again, looks to be sorted now...

VBDev
05-31-2007, 11:36 AM
This is the problem with permissions, generally, the primary groups permissions are taken into account unfortunately.

I'll see if this is really normal or an error from my coding !

For all : TODO list added in the main post :)

NeutralizeR
05-31-2007, 12:55 PM
-The queries are still being executed for who doesn't have permission to view/use chatbox

-The query is still being executed for forumdisplay no matter if chatbox is disabled or enabled for forumdisplay

I've more than 2000 online users and these extra queries are a major issue for me. I can wrap the plugins with some php to prevent the query execution for the usergroups who don't have permission to view the chatbox but this must be built in.

Note: Ignore my post at the other website.

pewp
05-31-2007, 12:59 PM
Nop actually there are not but I will do it :)

Anyway you could be a little more polite ;) I would ;)


i was not trying to be impolite, i was just using the vbshout comparison as a reference so it could illustrate what i was talking about, and i forgot my please and thank yous.

it's a nice mod, i'm just putting in request from my users.

Mastar
05-31-2007, 01:07 PM
I Opera the chat text runs down into the forum.... like overflows :)

pewp
05-31-2007, 01:19 PM
ok i have yet another question for you. is there away to put custom BBcode buttons in the BBcode option?

VBDev
05-31-2007, 01:55 PM
-The queries are still being executed for who doesn't have permission to view/use chatbox

-The query is still being executed for forumdisplay no matter if chatbox is disabled or enabled for forumdisplay

I've more than 2000 online users and these extra queries are a major issue for me. I can wrap the plugins with some php to prevent the query execution for the usergroups who don't have permission to view the chatbox but this must be built in.

Note: Ignore my post at the other website.

Hum, really strange, I'll check that in the next version. I plan to start development tomorrow.

I Opera the chat text runs down into the forum.... like overflows :)

What do you mean exactly? Your post if really not understandable.

ok i have yet another question for you. is there away to put custom BBcode buttons in the BBcode option?

Including custom buttons is not in the scope of this chatbox as it would become to "fat".
Anyway I could tell you how to add custom bbcode so that they are parsed when they are present in the shouts

pewp
05-31-2007, 02:04 PM
that would be fantastic if you could!

VBDev
05-31-2007, 04:32 PM
To do so, open the includes/functions_mgc_cb.php, then find the construct_bbcode_tag_list function.

You'll see the supported bbcode, you juste have to add code like that :


$bbcode_list['option']['size'] = array(
'html' => 'your_html_code',
'option_regex' => 'your_regex',
'strip_empty' => true
);


You then just have to fill it to your wishes. You can add as much as you want ;)

But becareful when upgrading for the enxt version as the file will be updated.

solong2
05-31-2007, 04:47 PM
i try more then style put still i can't get the chat box

VBDev
05-31-2007, 04:54 PM
i try more then style put still i can't get the chat box

You might not have set the permissions ! You must set the can use chatbox to yes for your usergroup and then the number of posts to access the chatbox to a good value (less than the number of post you have ;))

VBDev
05-31-2007, 05:17 PM
-The queries are still being executed for who doesn't have permission to view/use chatbox

-The query is still being executed for forumdisplay no matter if chatbox is disabled or enabled for forumdisplay

I've more than 2000 online users and these extra queries are a major issue for me. I can wrap the plugins with some php to prevent the query execution for the usergroups who don't have permission to view the chatbox but this must be built in.

Note: Ignore my post at the other website.

Back at my home, I have just checked that. Are you sure of that ? Coz this is impossible, I have checked the conditions and if the chatbox doesn't show, then no sql queries can appear for user with no permissions.

NeutralizeR
05-31-2007, 06:21 PM
Back at my home, I have just checked that. Are you sure of that ? Coz this is impossible, I have checked the conditions and if the chatbox doesn't show, then no sql queries can appear for user with no permissions.
Chatbox 'product' completely disabled = 10 queries (forumhome)

Chatbox 'product' enabled = 12 (10+2) queries (forumhome - statistics disabled)

Chatbox disabled for the guests = 8 (7+1) queries (forumhome)

Chatbox enabled for the guests = 8 (7+1) queries (forumhome)

Chatbox disabled @ forumdisplay = 15 (14+1) queries

Chatbox enabled @ forumdisplay = 15 (14+1) queries

VBDev
05-31-2007, 07:08 PM
I am really sorry you were right, I have just found what the problem was after a bit of search, I'll correct automatically in the next version but here is the fix :

Here is how you can fix this unuseful query problem:

Go in your acp in the manager of plugins and edit the MGC chatbox plugin linked to the global_start hook.

Then remove from it :


$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$vbulletin->options['mgc_cb_annonce'] = $parser->do_parse($vbulletin->options['mgc_cb_annonce'], true, true, true, true, false, false);


Once this is done, validate and edit the one linked to forumhome_complete and add the removed code of above just after that bit of code :


if ($chatbox_permission && $vbulletin->options['mgc_cb_forumhome']) {

Then validate again, and to the same operation with the one linked to forumdisplay_complete after :


if ($chatbox_permission && $vbulletin->options['mgc_cb_forumdisplay']) {


Validate and do it again with the one linked to showthread_complete, after :


if ($chatbox_permission && $vbulletin->options['mgc_cb_showthread']) {


Here it is fixed no :)

NeutralizeR
05-31-2007, 08:22 PM
Thank you :)

But it still executes 2 queries at forumhome...

Mastar
05-31-2007, 08:33 PM
Here is the screen shot for the issues with opera.

VBDev
05-31-2007, 09:33 PM
Thank you :)

But it still executes 2 queries at forumhome...

I have found the problem. Unfortunately, this is a vbulletin issue, a question of datastore.

Here is the description of the problem:

To parse chatbox announcment bbcode, I need to use the bbcode parsing php class to parse bbcode tags.

The problem is that this class needs the bbcodecache datastore which contains the custom bbcode.

And as plugins are part of the datastores, it is impossible to add a new datastore to be retrieved in a file which doesn't contain it actually.

There is a possible fix with a file modification :

Open the includes/global.php file and add just after :


define('CWD', (($getcwd = getcwd()) ? $getcwd : '.'));


the following code bits :


$specialtemplates[] = 'bbcodecache';


Here is the screen shot for the issues with opera.

This problem is due to the overflow-y property is use which is unfornately not yet supported by opera as I've just seen.

Anyway you can fix this with the following modification :

In the template mgc_chatbox, find overflow-y: auto; and replace it by overflow: auto;.

This will fix the problem but you will have a horizontal scrollbar and a vertical one, even though the horizontal one is of no use ...

In the next version, I'll put a detection mechanism which check the browser of the user and applies the compatible css so that user with browser supporting the overflow-y css property don't loose the beauty of having only the vertical scrollbar.

NeutralizeR
05-31-2007, 10:22 PM
What if i completely disable the announcement feature?

When i click on a smiley, it scrolls me to the top of the chatbox.

VBDev
06-01-2007, 04:56 AM
Yep you can also totally disable the chatbox announcement.

This can be done by removing the code bits I told you to copy in the 3 plugins.

I'll make it deactivable for the next version or at least give the possibility to allow or not the use of bbcodes so that it could be used without the unuseful query but with no bbcode or with the query (if peoples don't want to do the file modification) and the bbcode.

For the smiley, you mean that when you click on a smiley you are scrolled to the top of the page ? If this is the case, then look at the previous posts I already gave the solution to solve this bug :)

VBDev
06-01-2007, 07:10 AM
Hey guyz, my chatbox is nominated for the MOTM so plz vote for me ;)

NeutralizeR
06-01-2007, 07:16 AM
Hey guyz, my chatbox is nominated for the MOTM so plz vote for me ;)
Thanks again, trying your recommendations :)

I also voted for you.

cooldude714
06-01-2007, 08:44 AM
How do I edit it so it doesn't say MGC Chatbox at the top, and it just says Chatbox?

Sofia
06-01-2007, 08:59 AM
How do I edit it so it doesn't say MGC Chatbox at the top, and it just says Chatbox?

In the product_mgc_chatbox, find

<phrase name="mgc_chatbox" date="1176242966" username="mtor" version="1.0"><![CDATA[MGC Chatbox]]></phrase>


And replace by :

<phrase name="mgc_chatbox" date="1176242966" username="mtor" version="1.0"><![CDATA[Chatbox]]></phrase>


For the next version, users can choose their title

ragtek
06-01-2007, 09:11 AM
just search MGC Chatbox in the phrase system and replace it ;)
that would be easier as edit the product file & reinstall the product

Sofia
06-01-2007, 09:16 AM
just search MGC Chatbox in the phrase system and replace it ;)
that would be easier as edit the product file & reinstall the product

Yes, of course, if you have already install the hack, use Languages & Phrases >> Search in Phrases >> Search MGC Chatbox. The varname is "mgc_chatbox" :)

NeutralizeR
06-01-2007, 09:24 AM
Everything is ok for me now apart from the clicked smiley issue at IE.

This fix works for Firefox:
Replace # by #top

My ChatBox:
http://img507.imageshack.us/img507/306/snap1ml7.th.png (http://img507.imageshack.us/my.php?image=snap1ml7.png)
http://img507.imageshack.us/my.php?image=snap1ml7.png

cooldude714
06-01-2007, 09:29 AM
Yes, of course, if you have already install the hack, use Languages & Phrases >> Search in Phrases >> Search MGC Chatbox. The varname is "mgc_chatbox" :)

Thanks :)

Vizionz
06-01-2007, 09:50 AM
nice hack i wont be installing since i have a shoutbox and two chatrooms already but this is very nice hack. good job :)

Eagle Creek
06-01-2007, 10:04 AM
It's confusing me, also the screenshots.. What is it? A SHOUTbox or a CHATbox?

Vizionz
06-01-2007, 10:06 AM
looks like a pop up shoutbox . instead of being on the forum page it pops up to do the same thing as a shoutbox from my guess

Mastar
06-01-2007, 11:21 AM
It stays on the forum like any chat or shoutbox actually the best I've installed and used so far.

redlabour
06-01-2007, 11:30 AM
What i miss is a Function to use a special "Style, Colour" or anything else marking the Teamchat-Messages at global Chatview.

Know what i mean? Maybe a small Star or anything else at every beginning of Teamshout.

Sofia
06-01-2007, 11:38 AM
What i miss is a Function to use a special "Style, Colour" or anything else marking the Teamchat-Messages at global Chatview.

Know what i mean? Maybe a small Star or anything else at every beginning of Teamshout.

Yes but the teamshouts are posted on the team channel, not on the global channel. Only team can use team channel. And when you use the command /team, the shout appear on the team channel.

redlabour
06-01-2007, 11:49 AM
Yes but the teamshouts are posted on the team channel, not on the global channel. Only team can use team channel. And when you use the command /team, the shout appear on the team channel.

Yeah i know - but my Teamers like to have the Option to see anything on Global. It was nice if you add this as a Choice in a further Version.

ragtek
06-01-2007, 11:56 AM
i'm getting this error on install: Catchable fatal error: Object of class vB_Database_MySQLi could not be converted to string in /var/www/forum/admincp1234/plugin.php(1942) : eval()'d code on line 10

Mastar
06-01-2007, 11:59 AM
Yeah i know - but my Teamers like to have the Option to see anything on Global. It was nice if you add this as a Choice in a further Version.

I will have to agree with this one.

VBDev
06-01-2007, 12:47 PM
Yeah i know - but my Teamers like to have the Option to see anything on Global. It was nice if you add this as a Choice in a further Version.
I will have to agree with this one.


Don't worry guys ! On the v1.0 version which is not posted here, It was like that (a global channel only).

Due to people requests, I decided that for the v1.2, I'll make it possible for the admin to select through an option in the acp wether there is two channels or only a global one !


i'm getting this error on install:
Your database type is mysqli ?

NeutralizeR
06-01-2007, 01:24 PM
VBDev,

I need help with the IE & smilies problem:
https://vborg.vbsupport.ru/showpost.php?p=1258886&postcount=88

ragtek
06-01-2007, 01:58 PM
yes mysqli

NeutralizeR
06-01-2007, 02:45 PM
How to call a custom user profile field in the chatbox template?

<img src="$stylevar[imgdir_misc]/$post[field8].gif" alt="$post[field8]" />
<img src="$stylevar[imgdir_misc]/$userinfo[field8].gif" alt="$userinfo[field8]" />

These didn't work.

VBDev
06-01-2007, 03:24 PM
VBDev,

I need help with the IE & smilies problem:
https://vborg.vbsupport.ru/showpost.php?p=1258886&postcount=88

Hum, I'll check that out for the next version buddy. But I don't have this problem at home on IE7 or IE6. With which version of IE did you encountered that ?

yes mysqli

Hum I don't really know mysqli unfortunately. You encountered that problem with the installation of the bitfield product or the chatbox product ?

To try to solve this problem, could you remove the $db->hide_errors(); and $db->show_errors(); from the product files and do the import.

Then tell me if it shows any new error ?

How to call a custom user profile field in the chatbox template?

<img src="$stylevar[imgdir_misc]/$post[field8].gif" alt="$post[field8]" />
<img src="$stylevar[imgdir_misc]/$userinfo[field8].gif" alt="$userinfo[field8]" />These didn't work.


The userinfo is not an available variable in the templates ;) You must use the $bbuserinfo variable instead, so it would be for you: $bbuserinfo[field8].

NeutralizeR
06-01-2007, 03:43 PM
IE6.

I already have the fix and it works with firefox:
if ($vbulletin->db->num_rows($smileys)) {
while (($smilie = $vbulletin->db->fetch_array($smileys)) && $count_smileys < $vbulletin->options['mgc_cb_editor_nbsmileys']) {
$textsmilie = str_replace("'","\'",$smilie['smilietext']);
$chatbox_smileys .= '<a href="#top" onclick="return ajout_smilie(\'' . $textsmilie . '\');" alt="' . $smilie['title'] . '"><img src="' . $smilie['smiliepath'] . '" border="0" /></a> ';
$count_smileys++;
}

$bbuserinfo[field8] shows my own info to me, i need to use it for the message posters.

VBDev
06-01-2007, 03:54 PM
Oh I see ... this is quite more complicated !

For this you would need to edit the mgc_chatbox.php file to retrieved in the $_POST['do'] == 'ajax_refresh_chat' part :)

You must modify the sql request :

$chat_messages = $vbulletin->db->query_read("
SELECT id,username,usergroupid,date,chat,user.userid AS userid
FROM " . TABLE_PREFIX . "mgc_chatbox AS mgc_cb
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = mgc_cb.userid)
$where
ORDER BY date DESC
LIMIT " . ($cb_status == "open" ? $vbulletin->options['mgc_cb_nbchats']:$vbulletin->
options['mgc_cb_nbchats_fermee']));


Here you should add after:

LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = mgc_cb.userid)


This:

LEFT JOIN " . TABLE_PREFIX . "userfield AS uf ON(u.userid = uf.userid)


And at the end of:

SELECT id,username,usergroupid,date,chat,user.userid AS userid


You should add field8.

Then you can use $val[field8] in the mgc_chatbox_bit template.

NeutralizeR
06-01-2007, 04:20 PM
Thanks :)

Now i have gender icons near the usernames:
https://vborg.vbsupport.ru/ (http://img369.imageshack.us/my.php?image=snap1bf5.png)
Screenshot (http://img369.imageshack.us/my.php?image=snap1bf5.png)

I also moved the message section to the top. You can make it's location selectable on the next version.

Karabaja
06-01-2007, 04:21 PM
Thx VBDev, this looks great. I'll wait for the update to install, since there was some good suggestions. But voted for it in MOTM poll :)

VBDev
06-01-2007, 05:16 PM
Thanks :)

Now i have gender icons near the usernames:
http://img369.imageshack.us/img369/9785/snap1bf5.th.png (http://img369.imageshack.us/my.php?image=snap1bf5.png)
Screenshot (http://img369.imageshack.us/my.php?image=snap1bf5.png)

I also moved the message section to the top. You can make it's location selectable on the next version.

Nice done :)

Don't worry, I am going to make the position of the editor part selectable for the next version.

Thx VBDev, this looks great. I'll wait for the update to install, since there was some good suggestions. But voted for it in MOTM poll :)

Thanks man :) And thanks to all thos who have already voted for me :D Continue to do so if it's not already done plz :rolleyes:

ragtek
06-01-2007, 05:31 PM
the 1. error was thet the tables and columns existed:D from the 1. install lol
the 2. was here:
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($vbulletin->$db);
build_forum_permissions();

ragtek
06-01-2007, 05:34 PM
is it possible to have more rooms or just team and normal?:D


another request: if the sitebackground is black, you cant see the help^^ because the helptext is black to

VBDev
06-01-2007, 05:35 PM
the 1. error was thet the tables and columns existed:D from the 1. install lol
the 2. was here:
require_once(DIR . '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($vbulletin->$db);
build_forum_permissions();

Oki, for the bit of code, it's strange !

Coz this bit of code is supposed to rebuild the bitfield for the permissions :)

So now it works ? If the bitfield regeneration makes an error, you can rebuild them manually by setting vbulletin in debug mode to make the rebuild bitfields menu appear :)


For all : I have started today the new version.

VBDev
06-01-2007, 05:37 PM
is it possible to have more rooms or just team and normal?:D


another request: if the sitebackground is black, you cant see the help^^ because the helptext is black to

For the help text, this is strange I think I use the smallfont class of vbulletin.

Anyway, I will check that :)

For the room, unfornately the answer is no because. Remember it's a chatbox not a chat ;)

ragtek
06-01-2007, 05:38 PM
yes i made this ;)

but as i know in never versions the cache is automaticaly build new after a productinstall ;)

ragtek
06-01-2007, 06:02 PM
second new idee
a whisperfunction
in the wbb3 shoutbox there is something like this built in
just write /w username and just he can see it

VBDev
06-01-2007, 06:10 PM
As I said in a previous post, I am not really up to that functionnality as I find it very "fat" for a chatbox.

I'll see what's possible if you click on Install lol ;) It's a joke of course :) I'll have a look at it anyway it's on my tothink list.

ragtek
06-01-2007, 06:13 PM
lol 10 postings off me:D

what my members say: the cpu usage jumps on every refresh to 12-50%

VBDev
06-01-2007, 06:21 PM
This is maybe due to the ajax feature or the javascript.

I'll try to track the problem ;)

10 posts of you proves you're are interested in my chatbox so for me It is a pleasure :)

DementedMindz
06-01-2007, 06:33 PM
VBDev I have a question for you I use yahoo smilies for all my smilies on my site now I use the same commands they do for there smilies now there is a problem for example when I use :"> for Embarrassment smiliey it will give a error on the shoutbox ');" alt="Embarrassment"> take a look at the sceen shot for what I mean.

65064

NeutralizeR
06-01-2007, 06:48 PM
VBDev I have a question for you I use yahoo smilies for all my smilies on my site now I use the same commands they do for there smilies now there is a problem for example when I use :"> for Embarrassment smiliey it will give a error on the shoutbox ');" alt="Embarrassment"> take a look at the sceen shot for what I mean.

65064
You should change the shortcut of that smiley. It shouldn't have ' character.

VBDev
06-01-2007, 06:49 PM
I understand your problem.

This is due to the use of " in the replacement.

This is the problem with html as the parameters value of a html tag is put between " or '.

I'll make my possible to find a way to pass that problem but I can't promise I'll find :(

DementedMindz
06-01-2007, 06:55 PM
ok no problem at all Im just trying to get it to show up now for members turned it on under usergroup options but its not showing to them for some reason or mods.

DementedMindz
06-01-2007, 06:56 PM
never mind figured it out lol Minimum number of posts required to use the Chatbox

DementedMindz
06-01-2007, 07:04 PM
going to try and clean some of these html errors up cause it gave me Failed validation, 41 errors from http://validator.w3.org

VBDev
06-01-2007, 07:12 PM
I must say that I forgot to do the validation ;)

I'll do it for the v1.2, shame on me :D

DementedMindz
06-01-2007, 07:16 PM
yeah alot are very easy for example everyone of the smilies is missing a alt so if you have 15 smilies then you have 15 errors. If you want I been saving my changes so far I can send them to you or post them when Im done. Im down to 15 errors now :)

VBDev
06-01-2007, 07:43 PM
yeah alot are very easy for example everyone of the smilies is missing a alt so if you have 15 smilies then you have 15 errors. If you want I been saving my changes so far I can send them to you or post them when Im done. Im down to 15 errors now :)

I prefer if you send me by pm :)

Thanks

DementedMindz
06-01-2007, 07:45 PM
ok no problem at all there is a few im having a bit of trouble with but im sure you will be able to figure them out but ill make a note of where they are for you.

Endurer
06-01-2007, 09:07 PM
It's displaying the day as 'yesterday' for shouts posted today. For instance, shouts posted on 2nd June (today) displays the following date: 06-01-2007

Is there a way to fix it?

VBDev
06-01-2007, 09:19 PM
The date in the chatbox are linked to the date on your forum.

So if you have not set the options to show today/yesterday on your forum, this won't be active in the chatbox either.

Endurer
06-01-2007, 09:27 PM
The date on my forum is 2nd of june and I have the yesterday/today option enabled. It still says yesterday for shouts posted today.

VBDev
06-01-2007, 09:44 PM
Hum ok, I am sorry I didn't understand your first post ;)

Does this problem of date appears only in the chatbox ? I mean, if you post a message on your forum you don't have this problem ?

Endurer
06-01-2007, 09:46 PM
No problems :)

Yes, the problem exists only in the chatbox.

VBDev
06-01-2007, 10:10 PM
This seems really strange because I insert the date in unixtime in the database with the TIMENOW php function of vbulletin.

And then I parse the date with the date building functions of vbulletin with the date so I don't see where it could come from. And as you say that it works perfectly with the rest of th vbulletin functionnalities this is really strange.

Anyway I am too tired now it's late hereby so I will take a look at it tomorrow, it may come from the options I use in the vbdate function, I'll check that.

Endurer
06-01-2007, 10:16 PM
Yes, it's strange actually. I double checked my server time, vbulletin time (ACP) and usercp's time zone. Everything is on its right place and members from different parts of the world are complaining about the same problem.

Sure, you may take your time. :)

DementedMindz
06-02-2007, 01:32 AM
Did a complete redesign of my shout box so far :) ever since I started changing the html to making it fully XHTML 1.0 Transitional here is what I have so far and hopefully this will become a new look to it also. All the inputs such as bbcode, smiley's and help are fully functional via admincp options where they can be turned on or off..

65082

would be nice to see a few options on what you can control on the bbcode such as options to shut off font size or even shut of another color

VBDev
06-02-2007, 05:59 AM
Did a complete redesign of my shout box so far :) ever since I started changing the html to making it fully XHTML 1.0 Transitional here is what I have so far and hopefully this will become a new look to it also. All the inputs such as bbcode, smiley's and help are fully functional via admincp options where they can be turned on or off..

65082

would be nice to see a few options on what you can control on the bbcode such as options to shut off font size or even shut of another color

That's nice man :)

For the size, yes I'll made something to allow to choose the max size and also a finer selection of which basic bbcode can be used.


I was thinking of how I would show the whosonline in the chatbox. What do you think of a new button above the others which would open kind of a whosonline channel ?

da420
06-02-2007, 06:09 AM
What do you think of a new button above the others which would open kind of a whosonline channel ?

Sounds like a great idea. Would love to see something like that.

DementedMindz
06-02-2007, 06:40 AM
Thanks man yeah I was messing with it for awhile also as for that tbody we were talking about that may have to be wrapped in a <if> this way it will pass cause its the only one i wasn't able to get so far without trying a <if> cause of the way it is. But I was thinking it should have been wrapped cause the tbody below it is wrapped in one. So maybe have it where it can be turned on or off that way this way it all uses the tbody and you can just do a <else />.

What kinda button you thinking of for the whos online? a javascript popup? or have it just show how many are using it with out there names?

VBDev
06-02-2007, 07:08 AM
Thanks man yeah I was messing with it for awhile also as for that tbody we were talking about that may have to be wrapped in a <if> this way it will pass cause its the only one i wasn't able to get so far without trying a <if> cause of the way it is. But I was thinking it should have been wrapped cause the tbody below it is wrapped in one. So maybe have it where it can be turned on or off that way this way it all uses the tbody and you can just do a <else />.


I don't understand exactly what you mean. This part is not in the if above cause it fakes the collapse system.

The other <if> is used to show the collapsed chatbox (a set number of post is shown) or the expanded one (where you can chat) depending of the state you left it last time.


What kinda button you thinking of for the whos online? a javascript popup? or have it just show how many are using it with out there names?

No not a popup, this would be a button like the one that apper when you set on the /team command.

When user clicks on the button, it then shows in the chatbox the user online instead of the chat and the number of user online in the chatbox.

DementedMindz
06-02-2007, 07:12 AM
Ill send you a pm this way you see what code I mean rather then posting it all on here. also Ill send you the text of the edits I have done its a nice size list lol.

As for the the button that would be a nice feature but would it add more queries or slow things down?

VBDev
06-02-2007, 07:36 AM
The thing would be like that :

1. the user is in the normal channel
2. it clicks on the button to see whosonline in the chatbox
3. his request is managed through ajax and the refresh is disable
4. once the request has been managed by ajax, the whosonline is shown (1 query only when user clicks on the whosonline button to retrieve the list of online users)

So that's not a big one I think :)

DementedMindz
06-02-2007, 07:46 AM
ahh that would be pretty nice. yeah last night before I called it quits at looking at html code I made it so it was on my vbadvanced page just have to fix a few things cause of the way vbadvanced is coded now but should have that done today.

crazycajun
06-02-2007, 01:01 PM
VBDev,

Would like to start out with saying great job!

I would like to know if this can be intergraded with vbAdvanced CMPS and the PhotPost Gallery? If so, how would I go about doing it.

Thank you in advance!

VBDev
06-02-2007, 01:31 PM
VBDev,

Would like to start out with saying great job!

I would like to know if this can be intergraded with vbAdvanced CMPS and the PhotPost Gallery? If so, how would I go about doing it.

Thank you in advance!

For the vbadvanced part it is planned that I do it.

About photopost gallery, as I am planning to make it possible to show on every page, this might help you figure that part :)

crazycajun
06-02-2007, 02:48 PM
Thank you I'll keep and eye out for the next version!

Roflstilzchen
06-02-2007, 04:28 PM
hi, how can i open the smilies in the usual smilie popup instead of the collapsable solution?

DementedMindz
06-02-2007, 04:47 PM
right now you cant unless you edit the code yourself I think for the next version you maybe able to.

Endurer
06-02-2007, 08:15 PM
Vbdev, have you found a solution for the date error? :)

snake-boy
06-02-2007, 08:29 PM
Installed. But....

This shoutbox has some great features, but the features I'm looking for don't seem to be possible? A code hack or future version maybe? This is my wish list:

- Allow the input field to be below the chat window, not at the top.

- Allow the order of the chats to be changed. I need to have the most recent chat at the bottom and the oldest at the top.

I hope this is possible.

Toggle of the time/date stamp's would be useful too... There just doesn't seem to be a chatbox that can do everything I need :(


-snake

da420
06-02-2007, 08:31 PM
Those suggestions have been requested several times, and if you look at vBDev's 'ToDo' list in the first post you will see they are planned for future versions. :)

DementedMindz
06-02-2007, 08:34 PM
moving the input field to be below the chat window is not hard at all if you look at the html code you will see it is very easy to move and have done it on my own already :) take a look at my post and you will see https://vborg.vbsupport.ru/showpost.php?p=1259516&postcount=135

snake-boy
06-02-2007, 08:59 PM
Thanks. Yours looks great, that's exactly what I want to do. I'm no coder, but will take a look at the .html myself and see if I can figure it out.

Now if only I could get the shouts to order the opposite way they are being displayed now..

ie Most recent shout at the bottom... Anyone got that right yet?

-snake

DementedMindz
06-02-2007, 09:03 PM
no I haven't changed that on mine cause I want the newest on top cause if not then they will have to scroll down to see the newest one.

snake-boy
06-03-2007, 12:02 AM
Well, the way we normally read is from the top-down, not from the bottom upward.

Think about it: If you were writing a story, one sentence per hour. Where would you expect to find the most recent sentence of your story? At the bottom of the most recent page obviously... :)

People like to read the shoutbox from the top-down, and now I'm being inundated with requests to change it...

Maybe VBDev can help - ?

-snake

DementedMindz
06-03-2007, 01:35 AM
yeah I would never use it that way to be honest maybe he will include a option in his next update but dont expect it to happen overnight.

VBDev
06-03-2007, 07:28 AM
hi, how can i open the smilies in the usual smilie popup instead of the collapsable solution?

Yep this is on the next version todo list :)

Vbdev, have you found a solution for the date error? :)

No sorry, I was with my girlfriend yesterday and today so I'll check that tonight

Installed. But....

This shoutbox has some great features, but the features I'm looking for don't seem to be possible? A code hack or future version maybe? This is my wish list:

- Allow the input field to be below the chat window, not at the top.

- Allow the order of the chats to be changed. I need to have the most recent chat at the bottom and the oldest at the top.

I hope this is possible.

Toggle of the time/date stamp's would be useful too... There just doesn't seem to be a chatbox that can do everything I need :(
-snake

For the first two this is planned, the last one is strange, why don't you want to use the timestamp used everywhere else on the board ?

VBDev
06-03-2007, 07:29 AM
Well, the way we normally read is from the top-down, not from the bottom upward.

Think about it: If you were writing a story, one sentence per hour. Where would you expect to find the most recent sentence of your story? At the bottom of the most recent page obviously... :)

People like to read the shoutbox from the top-down, and now I'm being inundated with requests to change it...

Maybe VBDev can help - ?

-snake

I have started working on the new version, there is lots of things on the todo list, tell you user It will come soon (1 or 2 weeks max.).

I unfortunately doesn't code vbulletin all the day ;)

da420
06-03-2007, 02:44 PM
I unfortunately doesn't code vbulletin all the day ;)

Very unfortunate ;)

chuchukuttie
06-03-2007, 02:49 PM
I have started working on the new version, there is lots of things on the todo list, tell you user It will come soon (1 or 2 weeks max.)

Can you please PM me once your done the updates on your todo list :) Thank you.

P.S - I have voted for you, on the HOTM ;)

VBDev
06-03-2007, 02:59 PM
I'll send a version update notification through the vborg Send Update function once it'll be ok.

I'll update regularly the TODO list with the state of actual work :)

Thx for the vote ;)

solong2
06-03-2007, 03:12 PM
how can banned user

thanks

VBDev
06-03-2007, 03:41 PM
how can banned user

thanks

you type /ban followed by a space and the name of the user :)

You then can see the banned users with the /showban command and you can unban them within the show ban popup or by typing in the chatbox the /unban command followed by a space and the name of the user.

ragtek
06-03-2007, 04:16 PM
just look into the help ;)

bashy
06-03-2007, 04:46 PM
Hi

What can i add to this code to make the popup to the size i require please?
<span class="smallfont">$vbphrase[mgc_cb_aide]&nbsp;<a href="#top" onClick="return open_aide();"><img id="mgc_cb_aide" src="$stylevar[imgdir_button]/collapse_alt_collapsed.gif" alt="" border="0" /></a>
</span

VBDev
06-03-2007, 05:31 PM
You can't in this bit of code.

Go in the clientscript/mgc_chatbox.js file and the open_aide javascript function in the mgc_chatbox template (at the top).

There, you should find a window_open call in which you can change the width and height value :)

itdevil
06-03-2007, 06:11 PM
Hi, there is seems to be problem with the with Uninstall process. After uninstalling the hack it giving me DB error when try to update groups.

Database error in vBulletin 3.6.7:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = '(COPPA) Users Awaiting Moderation',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`forumpermissions` = '655375',
`genericpermissions` = '33554499',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '0',
`pmsendmax` = '0',
`calendarpermissions` = '1',
`wolpermissions` = '0',
`adminpermissions` = '0',
`genericoptions` = '56',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '0',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '1000',
`sigmaxchars` = '500',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '4',
`vbppermissions` = '0',
`vbp_discountrate` = '0.00000',
`vbp_paycheckamount` = '0.00000',
`vbp_secondarycost` = '0.00000',
`vbp_primarycost` = '0.00000',
`mgccustomusergroupperms` = '0',
`nbmsgshowchatbox` = ''
WHERE usergroupid=4;

MySQL Error : Unknown column 'mgccustomusergroupperms' in 'field list'



How can i Fix it ?

VBDev
06-03-2007, 06:23 PM
I think you haven't followed the uninstalling steps rightly ;)

You should have removed the files before removing the products, especially the files in includes/xml concerning the chatbox as they contains bitfields which are generated upon install and uninstall process.

The regeneration upon uninstall is here to remove the bitfield concerning the chatbox but before files must have been removed.

So to correct this, you must remove the xml files concenrnig the chatbox and then rebuild the bitfields by hand (activation of the debug mode and the in the options menu the rebuild bitfields link shall be there :))

bashy
06-03-2007, 06:45 PM
Hi VBDev

The only bit of code i can find in there with regards to a window is this
function attente_fin_envoi_chat() {
if(envoiAjax.handler.readyState == 4 && envoiAjax.handler.status == 200 && envoiAjax.handler.responseText) {
chatEnCours = 0;
if (envoiAjax.handler.responseText == 'do_showban')
window.open("mgc_chatbox.php?" + SESSIONURL + "do=showban" , "showban", "toolbar=no,scrollbars=no,resizable=yes,left=0 top=0,width=600,height=900");
else if(envoiAjax.handler.responseText != 'ok')
myAlert(envoiAjax.handler.responseText);
<!-- Clear du timeout pour lancer le refresh -->
clearTimeout(refreshTimeout);
chatbox_refresh('forced');
}
}problem is, the popup aint changing size, as you can see i made it quite big with no change?
It wernt at the top either, it was a little way down!

Also, this hack actually ppears to add 3 queries even without the stats enabled,

Hack active: 35 queries and server load of 4.64
Hack disabled: 32 queries and server load of 0.84

Killing my server if i may say so... Anyway of improving this please?

VBDev
06-03-2007, 07:27 PM
Hi VBDev

The only bit of code i can find in there with regards to a window is this
function attente_fin_envoi_chat() {
if(envoiAjax.handler.readyState == 4 && envoiAjax.handler.status == 200 && envoiAjax.handler.responseText) {
chatEnCours = 0;
if (envoiAjax.handler.responseText == 'do_showban')
window.open("mgc_chatbox.php?" + SESSIONURL + "do=showban" , "showban", "toolbar=no,scrollbars=no,resizable=yes,left=0 top=0,width=600,height=900");
else if(envoiAjax.handler.responseText != 'ok')
myAlert(envoiAjax.handler.responseText);
<!-- Clear du timeout pour lancer le refresh -->
clearTimeout(refreshTimeout);
chatbox_refresh('forced');
}
}problem is, the popup aint changing size, as you can see i made it quite big with no change?
It wernt at the top either, it was a little way down!

Also, this hack actually ppears to add 3 queries even without the stats enabled,

Hack active: 35 queries and server load of 4.64
Hack disabled: 32 queries and server load of 0.84

Killing my server if i may say so... Anyway of improving this please?

In the template mgc_chatbox, you should find this bit of code:


function open_aide() {
window.open("mgc_chatbox.php?" + SESSIONURL + "do=showaide" , "showaide", "toolbar=no,scrollbars=no,resizable=yes,left=0 top=0,width=600,height=375");
}


This is where you can change the size not as you mentionned above ;)

For the query part, how did you measure the server load and the queries ?

For the queries, the chatbox actually uses 2 queries on the forumhome page, one to retrieve the smilies and one to retrieve the custom bbcode. The one for the bbcode can be removed (see a previous post in the thread, about bbcodecache :)).

The other query might be for the refresh if you saw it by another way than the debug mode of vbulletin it might have appeared.

I think more information on the way you did it might be useful.

For the smiliey part, it could be removed in the next version by activating the smilie in a popup instead of on the page itself (queries would be run only in case of click on the button to show the page :))

bashy
06-03-2007, 08:56 PM
Yep thats the one lol, didnt see you mention the template, i only noticed ya mention the file int he clientscript folder lol me is blind :o

I have added 2 images for the server load as well, i also hace the refresh set to 30 seconds...(default setting)
Page loading jumps about up 3 seconds

Willl look foward to the update :)

Sofia
06-03-2007, 09:03 PM
Also, this hack actually ppears to add 3 queries even without the stats enabled,

Hack active: 35 queries and server load of 4.64
Hack disabled: 32 queries and server load of 0.84

Killing my server if i may say so... Anyway of improving this please?

On my forum, memory usage is less than 1 kb and the Chatbox add only 2 queries.

4,64 -> 0,84 = 3,80. What is it ? Kb ? It's rather big. Strange.


Edit : Ohh ok, no Kb but seconds :)

bashy
06-03-2007, 09:07 PM
On my forum, memory usage is less than 1 kb and the Chatbox add only 2 queries.

4,64 -> 0,84 = 3,80. What is it ? Kb ? It's rather big. Strange.

I aint got a clue about the kb side of it, i only break things lol

I did the edit to the global.php as explained in the post below and now my queries have
gone from 35 to 64 pmsl.... i am gonna undo that edit

Page generated in 0.86726 seconds with 64 queries

https://vborg.vbsupport.ru/showpost.php?p=1258608&postcount=79

VBDev
06-03-2007, 09:18 PM
There is an error on the code bit, its ( I correct the previou post) :

$specialtemplates[] = 'bbcodecache';

The 3 seconds seems enormous to me, I haven't experienced such added delays. What are the numberes between the []?

Sofia
06-04-2007, 10:36 AM
There is an error on the code bit, its ( I correct the previou post) :

$specialtemplates[] = 'bbcodecache';The 3 seconds seems enormous to me, I haven't experienced such added delays. What are the numberes between the []?

Yes, it's enormous. When the hack is enabled on my forum, it's only ~0.2 seconds more i think.

bashy
06-04-2007, 02:54 PM
There must be something else conflicting with the hack as well then
I have vbshout 2.1 installed but that is only for the staff and dont get used much.

Tis a puzzling one this, I would like a box for the members but its not looking good atm!!

DementedMindz
06-04-2007, 03:03 PM
yeah by far this is the best one I used so far dont even touch my server load. how many users are using it at once bashy? also what refresh rate do you have? maybe its something with the 2 shout boxes installed why not remove that one and just use this cause then you can use the team channel.

here is my server load

GZIP ON (level 1) | 0.02 : 0.04 : 0.01 | Uncached Templates: None

VBDev
06-04-2007, 03:16 PM
There must be something else conflicting with the hack as well then
I have vbshout 2.1 installed but that is only for the staff and dont get used much.

Tis a puzzling one this, I would like a box for the members but its not looking good atm!!

We used to have vbshout 2.1 and my chatbox on vbulletin-ressources when we were using the first release (v1.0) as the double channel principle was not introduced. And we didn't experienced any load problem.

I didn't understand your second phrasen could you explain it please ? I think you're using current language words I am not used to as a french guy ;)

DementedMindz
06-04-2007, 03:39 PM
he has vbshout for his staff and the second part hes saying that its getting him confused he wants a shoutbox for his members but right now its not looking to good I guess cause of his server loads. that is why I said he should remove vbshout and just install this one and use the team channel for the staff and the regular channel members only see.

VBDev
06-04-2007, 03:51 PM
he has vbshout for his staff and the second part hes saying that its getting him confused he wants a shoutbox for his members but right now its not looking to good I guess cause of his server loads. that is why I said he should remove vbshout and just install this one and use the team channel for the staff and the regular channel members only see.

Hum I see !

Try to deactivate the vbshout and just see how much server load you have with only the mgc chatbox active bahsy to see.

bashy
06-04-2007, 04:24 PM
Yeah i will try that and see how it pans out,
when it was enabled there was actually no one using it at all!!

VBDev
06-04-2007, 04:29 PM
when it was enabled there was actually no one using it at all!!

Yep so that's event stranger as as you might have seen, Sofia and DementedMindz have a small server load even with the chatbox enabled.

Maybe an incompatibility with both chatbox together activated at the same time but I doubt it.

DementedMindz
06-04-2007, 04:34 PM
bashy what refresh rate do you have it on? cause I have even lowered mine down to 5 seconds and my server load dont jump or nothing. also do you have it enabled on all parts of the forum?

Snatch
06-04-2007, 05:13 PM
I get an MySQL error when I edit the Usergroup permissions.


Datenbankfehler in vBulletin 3.6.7:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administratoren',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '180',
`passwordhistory` = '360',
`forumpermissions` = '1048575',
`genericpermissions` = '1073741759',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '7',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericoptions` = '55',
`profilepicmaxwidth` = '300',
`profilepicmaxheight` = '350',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '100',
`avatarmaxheight` = '100',
`avatarmaxsize` = '20000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`profileviewpermissions` = '15',
`photoplogpermissions` = '32767',
`photoplogmaxfilesize` = '512000',
`photoplogmaxfilelimit` = '100',
`mgccustomusergroupperms` = '3',
`nbmsgshowchatbox` = '1'
WHERE usergroupid=6;

MySQL-Fehler : Unknown column 'mgccustomusergroupperms' in 'field list'
Fehler-Nr. : 1054
Datum : Monday, June 4th 2007 @ 08:07:50 PM
Skript : http://www.gratis-chat.org/forum//admincp/usergroup.php?do=update
Referrer : http://www.gratis-chat.org/forum//admincp/usergroup.php?do=edit&usergroupid=6
IP-Adresse : xx.xx.xx.xx
Benutzername : Snatch
Klassenname : vb_database

VBDev
06-04-2007, 06:09 PM
This is because you haven't put the xml files in the includes/xml directory before importing the products !

Here are the possible solutions to solve this problem:
- Check that the files are in the includes/xml directory (the one from the zip archive) and then activate the debug mode (through a modification in the config.php file) and then in the vbulletin options menu, you just have to click on Rebuild bitfields !
- Remove the product, check that the files are in the includes/xml directory and then import the product again.

solong2
06-04-2007, 06:28 PM
heelo

i have arabic fourm when i write english it's ok but when i try arabic nothing happen i cat ues arabic in it

thanks alo

vitrag24
06-04-2007, 07:27 PM
can u show me demo or give link of any forum installed with this addon

bashy
06-04-2007, 07:29 PM
check mine in my signature....not sure if it shows for guests though, i cant remember and i aint no guest so dont see that side of things often lol

Endurer
06-04-2007, 07:37 PM
Vbdev, is the date bug fixed? :)

VBDev
06-04-2007, 07:45 PM
Vbdev, is the date bug fixed? :)

Ooopps really sorry I forgot you :( Going to check that out right now.

heelo

i have arabic fourm when i write english it's ok but when i try arabic nothing happen i cat ues arabic in it


thanks alo

Sofia is doing some test to check that, she'll get some feedback soon.

can u show me demo or give link of any forum installed with this addon

Unfortunately not unless you register as chatboxes are rarely shwon to guests as bashy mentionned. Anyway you could see it fi you register to my forum (vb-hacks), it is shown to registered users.

soniceffect
06-04-2007, 07:52 PM
I get same error m8 ... have rebuilt bitfields .. uninstalled, reinstalled the lot :( ... shame coz looks like some excellent work ya done there m8

VBDev
06-04-2007, 07:54 PM
you have installed both products given in the zip file ?

VBDev
06-04-2007, 07:55 PM
Vbdev, is the date bug fixed? :)

Could you try that:

Open the mgc_chatbox.php file, find :

/* Mise en forme de la date */
$chatbit['date'] = vbdate($vbulletin->options['dateformat'], $val['date'], true, true, false);
$chatbit['date'] .= "&nbsp;&nbsp;" . vbdate($vbulletin->options['timeformat'], $val['date']);


Replace by :

/* Mise en forme de la date */
$chatbit['date'] = vbdate($vbulletin->options['dateformat'], $val['date'], true);
$chatbit['date'] .= "&nbsp;&nbsp;" . vbdate($vbulletin->options['timeformat'], $val['date']);


Tell me if that changes something

soniceffect
06-04-2007, 07:55 PM
one of only ..... is that what Im doin wrong?

EDIT:- dosey git ... it is n all LOL ... my appologies .. cheers for the pointer :)

Sofia
06-04-2007, 08:02 PM
heelo

i have arabic fourm when i write english it's ok but when i try arabic nothing happen i cat ues arabic in it


thanks alo

On my forum, arabic characters works perfectly (example : ستايل روعه لمنتديات)

But try this :

In includes/functions_mgc_cb.php,

Find:

$chatbox_utf8 = 0;

Replace by:

$chatbox_utf8 = 1;

solong2
06-04-2007, 08:24 PM
On my forum, arabic characters works perfectly (example : ستايل روعه لمنتديات)

But try this :

In includes/functions_mgc_cb.php,

Find:

$chatbox_utf8 = 0;

Replace by:

$chatbox_utf8 = 1;


i try still not working

thanks for help

Sofia
06-04-2007, 08:27 PM
i try still not working

thanks for help

And when you post a message with arabic characters, what happens? Nothing?

VBDev
06-04-2007, 08:29 PM
Maybe you could change the following bit of code in the mgc_chatbox.php file :


header('Content-type: text/html; charset=ISO-8859-15');


By the charset corresponding to your charset.

Unfortunately I am not really used to arabian characters but I know that with ajax, this a real problem as it might not be really well supported :(

solong2
06-04-2007, 08:32 PM
sorry

but in my databaes i'm not uesing loclhost i'm uesing IP server

Sofia
06-04-2007, 08:35 PM
Edit the mgc_chatbox.php file :

Find:

header('Content-type: text/html; charset=ISO-8859-15');

Replace by:

header("Content-Type: text/xml; charset=windows-1256");

solong2
06-04-2007, 08:52 PM
Edit the mgc_chatbox.php file :

Find:

header('Content-type: text/html; charset=ISO-8859-15');

Replace by:

header("Content-Type: text/xml; charset=windows-1256");

thanks Sofia but still seam nothing happen

Endurer
06-05-2007, 12:18 AM
Could you try that:

Open the mgc_chatbox.php file, find :

/* Mise en forme de la date */
$chatbit['date'] = vbdate($vbulletin->options['dateformat'], $val['date'], true, true, false);
$chatbit['date'] .= "&nbsp;&nbsp;" . vbdate($vbulletin->options['timeformat'], $val['date']);


Replace by :

/* Mise en forme de la date */
$chatbit['date'] = vbdate($vbulletin->options['dateformat'], $val['date'], true);
$chatbit['date'] .= "&nbsp;&nbsp;" . vbdate($vbulletin->options['timeformat'], $val['date']);


Tell me if that changes something

Absolutely fixed it :D Thank you so much :)

Lilyandy
06-05-2007, 03:51 AM
install error........
安裝錯誤........

sorry my english very pool................

VBDev
06-05-2007, 04:57 AM
Absolutely fixed it :D Thank you so much :)

No problem, this was a bad utilization of the vbdate function in my code, I will apply this correction to the 1.2 :D

install error........
安裝錯誤........

sorry my english very pool................

If you don't tell me more about your error during installation, I won't be able to help you ;)

Is this the plugin import that doesn't work ?

VBDev
06-05-2007, 04:59 AM
thanks Sofia but still seam nothing happen

Unfortunately your probleme might be a server problem.

We experienced the same thing on vb-hacks with our previous host, chats were not send when they contained special characters like : ? ? ?. So this is the same problem with arabic characters.

However I don't see what parameters on the host is in cause. Do you experience problems with the quick reply on your forum ?

Ranger187
06-05-2007, 05:44 AM
Installed and this mod rocks. I hope you continue to support it, and update it. WEWT.

Voted as MOTM.

VBDev
06-05-2007, 06:03 AM
Installed and this mod rocks. I hope you continue to support it, and update it. WEWT.

Voted as MOTM.

Thank you very much :)

Yes I continue support it, I am actually working on the v1.2, I have not had the time to update the todo list with the work already done but I will do it as soon as possible so that you can know how far in the work I am.

Ranger187
06-05-2007, 06:04 AM
Sounds good. I was using VBshout, but this owns that... The users keep saying they love this one so much better. ;)

Sofia
06-05-2007, 10:55 PM
Progress of version 1.2 :

1. /del all clearing command independent for each channel (ie: if typed in team channel, only team chats are deleted) or add of /del team and /del gen commands [Done]
2. List of users actually online in the chatbox
3. Possibility to view team and general archives separately
4. Option in the user cp in order to choose to show or not the chatbox [Done]
5. Random smilies or possibility to choose the smilies pack used
6. IE 6 problem of channels image disapearance
7. Think of the possibility to warn the user when new messages are avaible in the other channel
8. Option in the acp to choose which text formatting options can be selected through the user cp and possibility to choose the max size for the size bbcode
9. Add of b, i et u bbcode selection in the user cp [Done]
10. Correct full mode permissions [Done]
11. Option in the acp to choose the number of top shouters shown on forumhome [Done]
12. Put the chatbox in a global var in order to be able to show it everywhere
13. Smilies in a popup like in new post or new thread (More ... link)
14. Integration with ibproarcade
15. Option in the acp to choose to see chats in descending or ascending order [Done]
16. Option in the acp to choose the editor position [Done]
17. Think of an idle mode implementation
18. Think of the possibility to add /ignore and /unignore commands
19. Chatbox announcement management directle from the chatbox and not through acp
20. Smilies button possibility to open a popup only insteed of collapsable line
21. Mood of the day in the chatbox
22. See the queries unsuseful problem [Done]
24. Problem with Opera, ie5.5 , consors... (overflow) [Done]
25. Choice of double channels or simple channel. [Done]
26. Prevent the download of shouts when there isn't [Done]
27. Statistics size too big [Done]
28. Edit Chatbox Title in options [Done]
29. popup smiley, custom height and widht popup
30. /me /ignore (usergroup permissions)
31. Enable/disable delete cross near usernames in the Chatbox to delete shouts
32. Enable/Disable display of the date [Done]
33. specific users which can use team command
34. 50% cpu
35. Options de date sp?cifiques ? la chatbox

Messages prefix for one channel [Done]

Tulsa
06-06-2007, 02:02 AM
Where can we just pull the date out of there altogether? The time is great but if my members don't know what day it is, they need more help than they can receive in this chatbox. :D

Tulsa
06-06-2007, 02:44 AM
You also may want to take a look at this in Safari.

Safari is not responding to the size of the chatbox setting. So where I have it set to show 50 messages in the expanded mode, it's showing all 50 without a slider bar.

VBDev
06-06-2007, 04:57 AM
Where can we just pull the date out of there altogether? The time is great but if my members don't know what day it is, they need more help than they can receive in this chatbox. :D

You mean be able to be able to set this parameters independently for the chatbox ? If this is the case yeah that's and the todo list.

Actually, this is just shown in the same way than on your forum.

When do you mean by "They need more help than they can receive in this chatbox"

You also may want to take a look at this in Safari.

Safari is not responding to the size of the chatbox setting. So where I have it set to show 50 messages in the expanded mode, it's showing all 50 without a slider bar.

I should have tested that on Safari with my laptop (an ibook), you experience the same problem than the one pointed on opera, or all the chats are shown and entirely in the chatbox. Could you try the same fix I suggested for opera, it should also solve problems with safari plz ?

shanevas2
06-06-2007, 05:03 AM
Any way to make it where you only pick your text color once. Not every time.

unitedpunjab
06-06-2007, 06:35 AM
i followed the installation instructions and tried installin this mod on my board but nothin happend. Nothin showed up.

I m running Vb 3.6.4 and VB SEO . Please help.

Sofia
06-06-2007, 06:58 AM
i followed the installation instructions and tried installin this mod on my board but nothin happend. Nothin showed up.

I m running Vb 3.6.4 and VB SEO . Please help.

You must edit templates (Read Me >> Installation) and edit usergroups permissions to see the Chatbox. It's ok? :)

VBDev
06-06-2007, 07:00 AM
Any way to make it where you only pick your text color once. Not every time.

Yes, If you look at the screenshots, when bbcode are enabled, users can select their default chat color through the option menu in their user control panel :)

Tulsa
06-06-2007, 10:45 AM
You mean be able to be able to set this parameters independently for the chatbox ? If this is the case yeah that's and the todo list.

Actually, this is just shown in the same way than on your forum.

When do you mean by "They need more help than they can receive in this chatbox"

What I was asking about was removing just the date and leaving the time only when the post was made.. The reference to them needing help was just a joke of sorts, they should all know what day it is without needing to see it in the chatbox.



I should have tested that on Safari with my laptop (an ibook), you experience the same problem than the one pointed on opera, or all the chats are shown and entirely in the chatbox. Could you try the same fix I suggested for opera, it should also solve problems with safari plz ?

I'll go back through the posts when I get home from work and find that Opera reference and test it out and let you know if it worked or not.

Tulsa
06-06-2007, 11:14 AM
Well I found it quickly enough and tried it. Works perfectly on Safari now! Thanks. This really is a superior chat/shout box. I can't wait for the update to it, my users really prefer the new posts at the bottom.

VBDev
06-06-2007, 11:34 AM
What I was asking about was removing just the date and leaving the time only when the post was made.. The reference to them needing help was just a joke of sorts, they should all know what day it is without needing to see it in the chatbox.

I will put an option for that in the next version

Well I found it quickly enough and tried it. Works perfectly on Safari now! Thanks. This really is a superior chat/shout box. I can't wait for the update to it, my users really prefer the new posts at the bottom.

Ok the I think I'll have to add a new condition in my javascript for the type of overflow when the browser is safari ;)

Karabaja
06-06-2007, 03:07 PM
Ok I installed it but removed since it seemed to have caused higher server load. But that might have just been coincidence. Since I had database errors after uninstalling it. I installed again and server load didn't increase. Anyway I removed the files then uninstalled again and that got rid off database errors.
Anyway, I have few suggestions. If possible for refresh button to not appear when automatic refresh is chosen in options.
Another thing that might be just me but that refresh progress thing(not sure what it is called) is annoying.
And maybe it could be without url button as url is automatically parsed if it is enabled.

VBDev
06-06-2007, 03:51 PM
Ok I installed it but removed since it seemed to have caused higher server load. But that might have just been coincidence. Since I had database errors after uninstalling it. I installed again and server load didn't increase. Anyway I removed the files then uninstalled again and that got rid off database errors.
Anyway, I have few suggestions. If possible for refresh button to not appear when automatic refresh is chosen in options.
Another thing that might be just me but that refresh progress thing(not sure what it is called) is annoying.
And maybe it could be without url button as url is automatically parsed if it is enabled.

The database errors were normal if you didn't removed the files before uninstalling ;)

Do you still have higher server load problem ?

For the refresh button, the refresh progress thing and the url button could be as options. For the url button, I could remove it when autoparse is active.

Noted on my brain todo list ;)

Karabaja
06-06-2007, 04:00 PM
I didn't really keep it on for long enough to be objective about server load. It just went over 2.00 after I installed it with very few members online. But today when I installed again there wasn't any increase in server load. I removed it mainly for above mentioned things I didn't like about it, not server load. I'll give next release a god when it is out. Still think this is a great product and hope that it will be supported for a long time.
One suggestion I forgot. Maybe an option to define alt1 and alt2 colors for the box, rather then use style defined colors.
Thanks for considering them.

ps. It is not that common to have database errors after uninstalling hacks, because forgetting to remove the files. At least I didn't encounter it.

VBDev
06-06-2007, 04:14 PM
The error you encoutendered where in the usergroups manager of the acp no ? If yes, this is due to my hack coz if you don't remove the xml files in the includes/xml folder, then when bitfields are rebuild the one for the chatbox are still present but the database fields aren't ! So this is absolutely normal.

The option to define the alt1, alt2 colors, humm maybe but as there are already many options, I don't know if I should. Anyway I'll think at it :)

Karabaja
06-06-2007, 04:39 PM
Yes, errors appeared when I tried to update user group permissions. But never mind, as long as it is sorted now.
And never mind the colors, it's probably better not to bother with that. I can change them myself to suit my needs.

Karabaja
06-06-2007, 04:49 PM
Sorry, I keep bothering you :)
But just remembered something. Are smilies loaded automatically with the chatbox?
That is one thing I don't like with vbshout2.1. Random smilies are always loaded, and since I have some big smilies it unnecessarily increases the page loading time considering that some members won't use chatbox at all or won't use smilies. It would be much better imho if possible for them to be loaded only after smilies button is pressed?
Maybe that is not being objective again, that depends on how many admins have smilies other then default ones installed. But I imagine there is some.

VBDev
06-06-2007, 05:33 PM
Sorry, I keep bothering you :)
But just remembered something. Are smilies loaded automatically with the chatbox?
That is one thing I don't like with vbshout2.1. Random smilies are always loaded, and since I have some big smilies it unnecessarily increases the page loading time considering that some members won't use chatbox at all or won't use smilies. It would be much better imho if possible for them to be loaded only after smilies button is pressed?
Maybe that is not being objective again, that depends on how many admins have smilies other then default ones installed. But I imagine there is some.

The loading on button press would add user side load (more ajax again ;))

However, I am going to add the possibilty for admins to have a chatbox with a windows opening on click on the smilies buttons, so the smileys won't be loaded at each page load ;) I think this would fit your needs no ?

Karabaja
06-06-2007, 06:18 PM
The loading on button press would add user side load (more ajax again ;))

However, I am going to add the possibilty for admins to have a chatbox with a windows opening on click on the smilies buttons, so the smileys won't be loaded at each page load ;) I think this would fit your needs no ?

Yes, that would be great. I for example have some gif animations in separate smiley category which can be up to 15-20kb. So it can add like 50-60kb to the page depending on which are pulled by random.

So good solution is either loading them in a separate window on button click or pulling them from specified category which would contain only small smilies.

VBDev
06-06-2007, 07:30 PM
Yes, that would be great. I for example have some gif animations in separate smiley category which can be up to 15-20kb. So it can add like 50-60kb to the page depending on which are pulled by random.

So good solution is either loading them in a separate window on button click or pulling them from specified category which would contain only small smilies.

For the second point, I was thinking of such a selection of the active packs in which taking random smilies.

DeadBeet
06-06-2007, 10:27 PM
Great Plugin! THanks

DevilzFan
06-07-2007, 02:43 AM
Love this addition. Slight problem, seems to have freezing issues in IE. Works flawlessly in Firefox though.

VBDev
06-07-2007, 04:42 AM
I haven't experience freezing issues in IE.

Could you tell me more about those issues ? (when do they occurs, what exactyl you call a freezing ?)

Tuga??
06-07-2007, 01:48 PM
hi very nice chat wath is the chance to put a background image.

Thanks

nominate for HOTM

VBDev
06-07-2007, 04:18 PM
To do so, you would have to edit the templates !

You could try that :

Removing the alt class from the mgc_chatbox_bit and then editing the mgc_chatbox template by adding style="css code here to add a background image" in the table tag of the following part of the template :


<table width="100%" cellpadding="0" cellspacing="2">
<tr>
<if condition="$can_use_team">

Magnumutz
06-07-2007, 04:28 PM
Good work man... i love it.
Though this is my first post here... i'd like to nominate it for the MOTM.

VBDev
06-07-2007, 05:26 PM
It is already nominated for the june 2007 MOTM contest !

Magnumutz
06-07-2007, 06:56 PM
Thanks, i already did.

DementedMindz
06-07-2007, 08:22 PM
It is already nominated for the june 2007 MOTM contest !

You can vote for it (see the link on top of the hack description :)).


voted for it and it should win since the support and the script are both great.

obmob
06-07-2007, 08:52 PM
Looks awesome, I'll try it, thanks!

VBDev
06-07-2007, 08:59 PM
Thanks for your support guys :)

I hope I'll be able to release the next version soon but my timetable is quite full actually so I don't have lots of time !

Anyway, I promise I'll do my best to make you wait as less as possible ! At least, would you be interested in partial releases ? I mean, as there are many things to do, would you like me to post new versions regularly or do you prefer a full release when all new things in the todo list will be finished ?

I propose this as it could help you wait more easily :D

Tulsa
06-07-2007, 10:24 PM
With all of the suggestions that are turning into additional features, if it keeps up at the rate your todo list is growing, you're never going to have time to actually release the next version.

I'm all in favor of a partial release as long as that first partial release has the entries being read from top to bottom with the newest entry at the bottom.. :) Okay, I'm all in favor of a partial release anyway but that's the feature my users want the most.

VBDev
06-07-2007, 10:55 PM
Actually this functionnalitie is done in the current working version I have ;)

da420
06-07-2007, 10:57 PM
I have no problem with partial releases.

Tulsa
06-07-2007, 11:35 PM
Actually this functionnalitie is done in the current working version I have ;)

I will be more than happy to beta test it for you as my users are calling it the "Topsy Turvey" chatbox.. :D

wardsweb
06-08-2007, 01:52 AM
Anyone know why when I try to import the XML files I get an error "Invalid File Specified". This happens both when trying to import from the XML folder on the server (files uploaded via FTP) and when trying to upload via the admin console under the import plugin.

DementedMindz
06-08-2007, 01:57 AM
I have no problem with partial releases either.

VBDev
06-08-2007, 04:56 AM
I will be more than happy to beta test it for you as my users are calling it the "Topsy Turvey" chatbox.. :D

What does topsy turvey means ?

Anyone know why when I try to import the XML files I get an error "Invalid File Specified". This happens both when trying to import from the XML folder on the server (files uploaded via FTP) and when trying to upload via the admin console under the import plugin.

Do you experience that problem only with my chatbox ?
Have you tried to import them directly from your computer ? (could be a problem of url as I can see from your error).

As you seem ok for partial releases, I think I might make one for this weekend !

gothicuser
06-08-2007, 05:03 AM
As you seem ok for partial releases, I think I might make one for this weekend !
Waiting with bated breath. Especially if 'To-Do' number 12 has been implemented :D
Put the chatbox in a global var in order to be able to show it everywhereWhich hopefully will enable us to include it in vBAdvanced.

VBDev
06-08-2007, 06:13 AM
Gaspppppp ...

Unfortunately, it is not for the moment ! But i'll try to include that !

Tulsa
06-08-2007, 09:43 AM
topsy turvey means upside down which is how they feel about the new entries are when coming in from the top.

alessai
06-08-2007, 10:23 AM
:( doesnt apear down the page only in the header....

it there a way to make it show where ever i want?

wardsweb
06-08-2007, 11:14 AM
Do you experience that problem only with my chatbox ?
Have you tried to import them directly from your computer ? (could be a problem of url as I can see from your error).

Yes this only happens with this mod. I get the same error when I try to import from my computer and from files already on the server.