vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Chat Modifications - MGC Chatbox Evo (https://vborg.vbsupport.ru/showthread.php?t=168992)

kyle787 08-23-2010 11:39 PM

I don't know what's going on but I can not get this to show up on my forum. I have it turned on and everything but to no avail. I'm using vb 4.0.6

http://www.tbkgaming.com/forum/

Lionel 08-24-2010 12:40 AM

Quote:

Originally Posted by Chewy954 (Post 2055240)
how would I go about creating a custom command for this version? I used to use <1.0 which had built in custom commands, not sure how I'd add it here.

Was that implemented?

Lionel 08-24-2010 01:59 AM

OK, never mind. I added the extra command /kiss.

I also made it truly multilingual by using a phrase in class_formatting.php. I used the same name as setting

$text = construct_phrase($vbphrase['mgc_cb_evo_cmd_slap_phrase'], $user['username'], $chat['text']);

$text = construct_phrase($vbphrase['mgc_cb_evo_cmd_kiss_phrase'], $user['username'], $chat['text']);

VBDev 08-24-2010 06:38 AM

Quote:

Originally Posted by Da-Vinci (Post 2086992)
That's great thanks, I've managed to get it to display on the Showthread & Forumdisplay templates, but I've also noticed that the Post New Thread button is displayed above the Chatbox & if you have any sub forums they are displayed above the chatbox as is the New Thread button.

Not sure I get you, can you post a screenshot ?

Quote:

Originally Posted by Da-Vinci (Post 2086992)
I really like the MGC, but could I suggest you simplify it slightly as there are so many settings it's hard to remember everything you've changed, plus if permissions could be added via the settings menu rather than via the Usergroup Manager.

The new options are highlighted by a little NEW in red so easy to follow.
There are a lot of settings because I want to allow user to customize the chatbox to their own needs.

About usergroups, I could perhaps do an own page to set the usergroup permissions of each groups at once only for chatbox part, a sort of extract from the usergroup permissions. Is this what you need ?

Quote:

Originally Posted by Da-Vinci (Post 2086992)
The text entry field doesn't change, I've set it to 600px but it's stayed on 200px there were one or two other things but I can't remember them off the top of my head.

This is in the reported bug list and this has been fixed in the next release.

Quote:

Originally Posted by Da-Vinci (Post 2086992)
Anyway great work VB-Dev I look forward to future releases of the best Chatbox release on the VB scene. :D

Thanks, I don't pretend to be the best chatbox release ;) At least I do my best to provide a good product and have fun doing it :D

Quote:

Originally Posted by rfsforums (Post 2087484)
My forum is made up of many private usergroup forums (companies), which I have created a channel for each. The problem is users forget that they are in the general channel and begin to discuss issues that should only be discussed in their private forum or private channel.

Thus the need to turn of or disable the general channel.

Thanks for your help!

Ok added to my todo list : http://www.forumcoding.com/project.php?issueid=10

Quote:

Originally Posted by ikki29 (Post 2087790)
Activating the Automatic Update not working properly, you have to press the refresh button so they load the talks, how could I solve this problem, thanks

Might be due to existing bugs.

Quote:

Originally Posted by furst (Post 2088532)
?? im unsure if there is a specific fix for this or am i trying all the reported bugs fixes?

You should apply all the bug fixes that exist.

VBDev 08-24-2010 06:43 AM

Quote:

Originally Posted by kyle787 (Post 2088558)
I don't know what's going on but I can not get this to show up on my forum. I have it turned on and everything but to no avail. I'm using vb 4.0.6

http://www.tbkgaming.com/forum/

Quick answers :
- Have you set usergroup permissions ?
- Have you tried different options of position ?

Quote:

Originally Posted by Lionel (Post 2088623)
OK, never mind. I added the extra command /kiss.

I also made it truly multilingual by using a phrase in class_formatting.php. I used the same name as setting

$text = construct_phrase($vbphrase['mgc_cb_evo_cmd_slap_phrase'], $user['username'], $chat['text']);

$text = construct_phrase($vbphrase['mgc_cb_evo_cmd_kiss_phrase'], $user['username'], $chat['text']);

That mean users have to go edit a phrase to edit the command syntax ?

For the slap that won't work as is in the next version as I implemented the possibility to add multiple slap sentences.

Your kiss command is interesting, I might implement that.

Lionel 08-24-2010 09:01 AM

Quote:

Originally Posted by VBDev (Post 2088718)



That mean users have to go edit a phrase to edit the command syntax ?

For the slap that won't work as is in the next version as I implemented the possibility to add multiple slap sentences.

Your kiss command is interesting, I might implement that.

I had actually added it as a vboptions then thought it would be better to use a phrase.

I simply created the phrase using the same setting name and replaced the call with

$text = construct_phrase($vbphrase['mgc_cb_evo_cmd_slap_phrase'], $user['username'], $chat['text']);

So all you would have to do would be to create the phrase if you are adding extra settings

I love the fact that when you switch language the command that was already sent also changes.

in English: userXX sends a kiss to YY

and switch language it displays

userXX envoie un bisou ? YY

If you are adding the slaps dynamically you could always insert the phrase like they do in notices, using slap_{slapid}_html.

If it's extra vBoptions then you already know the name

VBDev 08-24-2010 10:44 AM

Quote:

Originally Posted by Lionel (Post 2088748)
So all you would have to do would be to create the phrase if you are adding extra settings

I haven't created multiple settings, I just changed the input to a textarea in the options and each slap phrase is on a line so that ain't possible ;)

Quote:

Originally Posted by Lionel (Post 2088748)
I love the fact that when you switch language the command that was already sent also changes.

in English: userXX sends a kiss to YY

and switch language it displays

userXX envoie un bisou ? YY

Yes I do agree with you but that means the admin has to be multilingual speaker ;)

Quote:

Originally Posted by Lionel (Post 2088748)
If you are adding the slaps dynamically you could always insert the phrase like they do in notices, using slap_{slapid}_html.

If it's extra vBoptions then you already know the name

You gotta explain this a bit more to me :)

Lionel 08-24-2010 11:03 AM

OK, I'll give you an example of what I just did. I am using Bobster tabbed forumhome mod.

Every time I add a tab, I do:

PHP Code:

        $tabid $db->insert_id();
    
$db->query_write("
        REPLACE INTO " 
TABLE_PREFIX "phrase
            (languageid, varname, text, product, fieldname, username, dateline, version)
        VALUES (
            0,
            'tab_
{$tabid}_html',
            '" 
$db->escape_string($vbulletin->GPC['name']) . "',
            'bobster_tfh',
            'global',
            '" 
$db->escape_string($vbulletin->userinfo['username']) . "',
            " 
TIMENOW ",
            '" 
$db->escape_string($vbulletin->options['templateversion']) . "'
        )
    "
);
    require_once(
DIR '/includes/adminfunctions_language.php');
    
build_language(-1); 

That inserts a phrase for that tab.

When I edit the tab, I already have the tabid, so I do

PHP Code:

        $phrase $db->query_first("
            SELECT phraseid, varname, text
            FROM " 
TABLE_PREFIX "phrase
            WHERE varname = 'tab_
{$vbulletin->GPC['id']}_html'
            AND languageid = 0
        "
); 

And below the tab name in edit mode, I do for translation link

PHP Code:

        print_description_row($vbulletin->GPC['id'] ? '<div class="smallfont" style="margin-top:6px"><a href="phrase.php?do=edit&amp;fieldname=global&amp;phraseid=' $phrase['phraseid'] . '" target="translate">' $vbphrase['translations'] . '</a></div>' ''); 

In forumhome, Bobster displays the tab like that

PHP Code:

$yui->add_tab($tab['name'], true'tabindex.php?' $content$active$tab['cache'], $tab['limitto']); 

So I simply did

PHP Code:

                $tabid $tab['tabid']; 
                
$tabname 'tab_' $tabid '_html'
                if(
$tab['iden'] == 'm'
                { 
                
$tabname 'tabmodule_' $tabid '_html'
                } 
                
$tab['name'] = $vbphrase[$tabname]; 

(the extra code is for the modules which I also did but did not include in example)

--------------------------------------------------------------------------

Now, in your case, since you are doing one per line, then you'd have to insert them each with a unique id or that will not work, unless you tag them with an $i value. And that could be complicated.

kyle787 08-24-2010 11:43 AM

I got it, thanks.

Tailfeathers 08-24-2010 05:02 PM

I am having a small issue with this. If I have it set to display in forums, it works just fine; however if I try to limit it to just one forum (id 8), then it does not show in any forums (not even forum 8). Any ideas?

ikki29 08-24-2010 08:27 PM

Quote:

Originally Posted by VBDev (Post 2088716)
Might be due to existing bugs.

ok, how could I fix it please or else it may fix those bugs

furst 08-24-2010 11:23 PM

Quote:

Originally Posted by VBDev (Post 2088716)



You should apply all the bug fixes that exist.

Ive applied all fixes except:

Problem with missing class_display.php file in vB3 [See here for a fix]

Im using V4 so i skipped this one, is that correct?

Also this one doesnt seem to link to a fix?

Smilies don't get added to the chatbox when in the "more" windows [See here for a fix]

After applying the fixes i am still getting a white page on my forum with product enabled. If i disable the product the forum is working again.

Any more suggestions? I would really like this chatbox to work on my forum.

will555559 08-25-2010 04:21 AM

Quote:

Originally Posted by furst (Post 2089105)
Ive applied all fixes except:

Problem with missing class_display.php file in vB3 [See here for a fix]

Im using V4 so i skipped this one, is that correct?

Also this one doesnt seem to link to a fix?

Smilies don't get added to the chatbox when in the "more" windows [See here for a fix]

After applying the fixes i am still getting a white page on my forum with product enabled. If i disable the product the forum is working again.

Any more suggestions? I would really like this chatbox to work on my forum.

Have you tried reinstalling?

furst 08-25-2010 05:08 AM

yes ive tried uninstalling, deleting files and reinstalling several times, i really dont get whats up.

will555559 08-25-2010 05:23 AM

hmm idk then..maybe it conflicts with another mod you have installed but idk if that could happen just throwing stuff out there.

VBDev 08-25-2010 05:58 AM

Dear All,

As of the latest advance on the chatbox I was wondering if it would be better or not to move the notifications as a specific mod but still with the possibility to have those notifications in a column in the chatbox (but not melted with chats anymore).

Therefore I'd like to have your advice, what do you think ?

RobbieZ 08-25-2010 11:19 AM

Option to allow either/or VBDev??

morrow 08-25-2010 05:25 PM

Quote:

Originally Posted by Lionel (Post 2086764)
To solve the loading issue, edit the file mgc_cb_evo/classes/class_display.php

look for

PHP Code:

$jsvars    .= "var mgc_cb_evo_height = " $chatbox_height ";\n"

and change it to

PHP Code:

$jsvars    .= "var mgc_cb_evo_height = \"" $chatbox_height "\";\n"


Excellent. Thank You!

VBDev 08-25-2010 06:52 PM

Quote:

Originally Posted by RobbieZ (Post 2089299)
Option to allow either/or VBDev??

???

Barteh 08-25-2010 07:55 PM

Keep getting this:
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Shows up at the top of the page when you go to the archive -> actions -> view all chats of (user). Something seems to go wrong when checking for usergroup permissions.

I also noticed that even though "Log the chatbox management actions" is enabled in advanced options, the log viewer always stays empty. Tested this by deleting a couple of test chats both in the archive view and the full chatbox view.

RobbieZ 08-25-2010 08:56 PM

I meant have the option to allow notifications 'melted' or in their own column.

VBDev 08-26-2010 04:59 AM

Quote:

Originally Posted by Barteh (Post 2089500)
Keep getting this:
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Shows up at the top of the page when you go to the archive -> actions -> view all chats of (user). Something seems to go wrong when checking for usergroup permissions.

I tried and it's not displaying that error for me.
Do you have specific commands active ?

Quote:

Originally Posted by Barteh (Post 2089500)
I also noticed that even though "Log the chatbox management actions" is enabled in advanced options, the log viewer always stays empty. Tested this by deleting a couple of test chats both in the archive view and the full chatbox view.

Yep tested and it's indeed buggy, I'll look into it for next release.

Quote:

Originally Posted by RobbieZ (Post 2089532)
I meant have the option to allow notifications 'melted' or in their own column.

That's is already possible but if I was separating the notifications from the chatbox (in a own mod), then the chats couldn't be melted with the chats but still could be put in a separate column.

Barteh 08-26-2010 07:42 AM

Quote:

Originally Posted by VBDev (Post 2089707)
I tried and it's not displaying that error for me.
Do you have specific commands active ?

Commands?

VBDev 08-26-2010 11:09 AM

Yeah chatbox commands, see your acp

Barteh 08-26-2010 12:30 PM

Interesting. I have three of those commands disabled by default: announcement, pm and team. If I enable those (i.e. all commands enabled), I get twelve warnings instead of three:

Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

*EDIT*

And if I disable 'slap' in addition to the three above, all warnings disappear? I suppose I have my workaround now, but it is quite odd.

Rumpel 08-26-2010 01:16 PM

great work! Thank you!! :)

furst 08-27-2010 01:15 AM

guess this wont work in my forum then? ive applied all fixes and still white screens my forum. No one has any ideas?

Lionel 08-27-2010 11:03 AM

Quote:

Originally Posted by furst (Post 2090124)
guess this wont work in my forum then? ive applied all fixes and still white screens my forum. No one has any ideas?

usually white screen indicates missing templates. Have you imported product????

Deimos 08-28-2010 12:39 AM

Is it possible to display the FULL chat on a specific page? Rather than the standard/small chat?

I added $mgc_cb_evo_var to a page and it displays fine, but i'd rather see the full chat window

Or, is it possible to edit the template? or display of the full page, so I can add a video feed to it?

STORMS 08-28-2010 11:59 AM

How do you unban someone? There's no option for it that I can see..

kathie 08-28-2010 04:13 PM

Thanks for this; it seems i've actually loaded it properly the first time (which is a miracle in and of itself, let me tell you!) but I do have a couple of issues I hope you can help me solve.

I did import the Lang file, and followed all those directions; however, the initial 'type chat here' is in French, as well as all other 'fill in box' phrases/words. Also, in the admin control panel, while all the directions/individual pages are in English, the pulldown box titles under 'MGC Chatbox Evo' are also in French.

I can't seem to find an option to change those to English, other than translating them individually. Any suggestions?

One other stupid question - where can I change the color of the box?

Thanks again!

STORMS 08-29-2010 12:31 AM

Is there a way to unban someone in the MGC Chatbox?

We were testing the ban process on our site and it permanently banned a helpful member from the chatbox?

Please respond, any info welcome.

midnz 08-29-2010 12:51 AM

Quote:

Originally Posted by STORMS (Post 2090906)
Is there a way to unban someone in the MGC Chatbox?

We were testing the ban process on our site and it permanently banned a helpful member from the chatbox?

Please respond, any info welcome.

The answer is available to you by clicking the "?" icon on your chatbox:
/ban show : Open a popup window containing the list of users banned from the chatbox with the possibility of unban users simply through buttons in this window.

ikki29 08-29-2010 09:23 AM

The error of the chat is not automatically updated and talks a hard time maintaining a conversation with people, please help me with this, I'm totally lost.

Sorry for my English, I use translator

ikki29 08-29-2010 10:36 AM

sorry I've solved by editing the permissions of the user group I've fixed it, very simple, sorry for questions

Iguana Goddess 08-29-2010 04:42 PM

Quote:

Originally Posted by kathie (Post 2090765)
Thanks for this; it seems i've actually loaded it properly the first time (which is a miracle in and of itself, let me tell you!) but I do have a couple of issues I hope you can help me solve.

I did import the Lang file, and followed all those directions; however, the initial 'type chat here' is in French, as well as all other 'fill in box' phrases/words. Also, in the admin control panel, while all the directions/individual pages are in English, the pulldown box titles under 'MGC Chatbox Evo' are also in French.

I can't seem to find an option to change those to English, other than translating them individually. Any suggestions?

One other stupid question - where can I change the color of the box?

Thanks again!

You can change chat here in Chats formatting and sending in the admincp, look around and you will see where to edit the other fill in boxes.

vilhiem 08-30-2010 11:12 PM

Seems odd ... but it appears as though the ability to "SEARCH" chat messages is missing form this tool.

Perhaps I don't see it ...?

Thanks!

MylesM 08-31-2010 11:07 PM

nice, thanks for this!

VBDev 09-01-2010 05:49 AM

Quote:

Originally Posted by Barteh (Post 2089822)
Interesting. I have three of those commands disabled by default: announcement, pm and team. If I enable those (i.e. all commands enabled), I get twelve warnings instead of three:

Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/mgc_cb_evo.php on line 1412

*EDIT*

And if I disable 'slap' in addition to the three above, all warnings disappear? I suppose I have my workaround now, but it is quite odd.

Marked in the bug list here

Quote:

Originally Posted by Deimos (Post 2090566)
Is it possible to display the FULL chat on a specific page? Rather than the standard/small chat?

I added $mgc_cb_evo_var to a page and it displays fine, but i'd rather see the full chat window

Or, is it possible to edit the template? or display of the full page, so I can add a video feed to it?

Not sure what you mean ?

Quote:

Originally Posted by kathie (Post 2090765)
I did import the Lang file, and followed all those directions; however, the initial 'type chat here' is in French, as well as all other 'fill in box' phrases/words. Also, in the admin control panel, while all the directions/individual pages are in English, the pulldown box titles under 'MGC Chatbox Evo' are also in French.

There are options that need to be set to your expected text in english.

I'll in the next release provide translation to those who only want default text (with instructions of course on how to install it).

QUOTE=kathie;2090765]
One other stupid question - where can I change the color of the box?
[/QUOTE]

Which box ? Chatbox is using default style colors and so on.

Quote:

Originally Posted by vilhiem (Post 2091794)
Seems odd ... but it appears as though the ability to "SEARCH" chat messages is missing form this tool.

Go on the archives page :)

18lama 09-01-2010 07:47 AM

This is the only CB that works superb with imgur hosted images either in GIF or jpeg formats. All other CBs including cyb etc fail when dealing with imgur.com


All times are GMT. The time now is 01:55 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09019 seconds
  • Memory Usage 1,904KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_php_printable
  • (30)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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