vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - MGC Chatbox (with AJAX) (https://vborg.vbsupport.ru/showthread.php?t=148472)

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

Quote:

Originally Posted by da420 (Post 1257894)
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

Quote:

Originally Posted by 1337_macro (Post 1258027)
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

Quote:

Originally Posted by da420 (Post 1257946)
  • 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

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:
  1. 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.
  2. Yes that's a good idea and not that hard to do, OK for me.
  3. 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.
  4. 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 :)
  5. 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.
  6. 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.
  7. Yeah lots of people here already asked that I have noted it :)
Quote:

Originally Posted by Mastar (Post 1258061)
Is there anyway to allow this to show in the ibp arcade? Thanks!

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

Quote:

Originally Posted by ssslippy (Post 1258062)
Can you add the ability to set your default text with underline, bold, and italic. Thank you

Yes that's planned

Quote:

Originally Posted by 69lakalle (Post 1258063)
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 :
  1. 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 ?
  2. Yeah I will think to that anyway. However I plan to add a [More ...] link which does like in the posts
  3. Yeah that's planned you're right on that point
  4. It don't see what you mean there ?
  5. Yeah not to much please ;)
Quote:

Originally Posted by Injektilo (Post 1258123)
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?

Quote:

Originally Posted by 69lakalle (Post 1258063)
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

Quote:

Originally Posted by VBDev (Post 1258140)
[/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:
  1. 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.
  2. 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.
  3. 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 :)
  4. 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.
  5. 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.
  6. 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... :)


Quote:

Originally Posted by VBDev (Post 1257880)
@ 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

Quote:

Originally Posted by bashy (Post 1258236)
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:
  1. Open the includes/function_mgc_cb.php file
  2. Find the getChatboxSmileys function
  3. In the line
    PHP Code:

    $chatbox_smileys .= '<a href="#" onclick="return ajout_smilie(\'' $textsmilie '\');" alt="' $smilie['title'] . '"><img src="' $smilie['smiliepath'] . '" border="0" /></a> '

  4. Replace # by #top
I 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

Quote:

Originally Posted by VBDev (Post 1257739)
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

Quote:

Originally Posted by NeutralizeR (Post 1258327)
-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.

Quote:

Originally Posted by Mastar (Post 1258333)
I Opera the chat text runs down into the forum.... like overflows :)

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

Quote:

Originally Posted by pewp (Post 1258343)
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 :

PHP Code:

  $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

Quote:

Originally Posted by solong2 (Post 1258467)
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

Quote:

Originally Posted by NeutralizeR (Post 1258327)
-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

Quote:

Originally Posted by VBDev (Post 1258484)
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 :

Code:

  $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 :

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 :

Code:

if ($chatbox_permission && $vbulletin->options['mgc_cb_forumdisplay']) {
Validate and do it again with the one linked to showthread_complete, after :

Code:

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

Quote:

Originally Posted by NeutralizeR (Post 1258588)
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 :

PHP Code:

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

the following code bits :

PHP Code:

$specialtemplates[] = 'bbcodecache'

Quote:

Originally Posted by Mastar (Post 1258595)
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
Code:

overflow-y: auto;
and replace it by
Code:

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.


All times are GMT. The time now is 10:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02661 seconds
  • Memory Usage 1,877KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (4)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete