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?


All times are GMT. The time now is 01:47 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.14576 seconds
  • Memory Usage 1,792KB
  • 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
  • (5)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (7)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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