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)

Digital Jedi 01-13-2011 03:58 AM

Quote:

Originally Posted by Heretiko (Post 2148159)
just did it and nothing it does not come up :( i dont know at this point what can be a solution :(

Turn your other modifications off and browse in the newly created style. If you still don't see it, it has to be a setting somewhere.

Heretiko 01-13-2011 05:39 PM

Quote:

Originally Posted by Digital Jedi (Post 2148294)
Turn your other modifications off and browse in the newly created style. If you still don't see it, it has to be a setting somewhere.

did it and... again... nothing :( sorry mate but dunno what else can do :(

Digital Jedi 01-13-2011 11:37 PM

Quote:

Originally Posted by Heretiko (Post 2148562)
did it and... again... nothing :( sorry mate but dunno what else can do :(

Well, silly question, but it's all I can think that's left. You're sure it's turned on?

Admin CP ? MGC Chatbox ? General Settings ? Activation of the chatbox :)

Also, check that you have a width set in % or px and that in Ids of the forums in which the chatbox shall be displayed under Display and position, you have it blank. That's about all I can think of other than you need to do re-install.

lazydesis 01-14-2011 12:24 AM

Quote:

Originally Posted by Lifesupporters (Post 2083848)
The one question I do have however is in regards to bot configuration. I know how to use the bot and have it configured to answer specific questions but I don't know how to configure the bot for wildcard questions?

Is there a way to configure the bot to reply to wildcard queries that have a portion of text that matches what's been programed in the ACP?

I have a solution for this and it seems to be working fine

Edit the includes/class_dm_mgccbchat.php file.

Search for :
PHP Code:

                        if (strcasecmp($bot['question'],$this->raw_chat) == 0

and replace it by
PHP Code:

                        if (stripos($this->raw_chat,$bot['question']) === 0

Simple ..isn't it? :up:

However this only works on PHP5 ..
Quote:

Originally Posted by VBDev (Post 2085680)

Edit the includes/class_dm_mgccbchat.php file.

Search for :
PHP Code:

                        if (strcasecmp($bot['question'],$this->raw_chat) == 0)
                        {      
                            
// Do some replacements
                            
$bot['answer'] = str_replace('{username}',htmlspecialchars($this->registry->userinfo['username']), $bot['answer']);
                            
$bot['answer'] = str_replace('{time}',vbdate($this->registry->options['timeformat'],TIMENOW,true,false), $bot['answer']);            
                            
$bot['answer'] = str_replace('{date}',vbdate($this->registry->options['dateformat'],TIMENOW,false,false), $bot['answer']);
                            
// Save the bot answer for sending
                               
$this->bot_answer $bot['answer'];
                            
$notfound    0;
                        } 

Replace this by :

PHP Code:

$found 0;
if (
strlen($bot['question']) == strlen($this->raw_chat))
{
    if (
strncasecmp($bot['question'],$this->raw_chat) == 0)
    {
        
$found 1// Same length string and string equals
    
}
}
else if (
strlen(stristr($this->raw_chat,$bot['question']))>0)
{
    
$found 1// Bot question included in part of the chat
}
    
if (
$found)
{
    
// Do some replacements
    
$bot['answer'] = str_replace('{username}',htmlspecialchars($this->registry->userinfo['username']), $bot['answer']);
    
$bot['answer'] = str_replace('{time}',vbdate($this->registry->options['timeformat'],TIMENOW,true,false), $bot['answer']);            
    
$bot['answer'] = str_replace('{date}',vbdate($this->registry->options['dateformat'],TIMENOW,false,false), $bot['answer']);
    
// Save the bot answer for sending
    
$this->bot_answer $bot['answer'];
    
$notfound    0;


I haven't tested the code and did it quickly @work but if you can try it that would be nice :)

The code that you have posted did not seem to work well for some reason. :down: It does pick up the text from the string and I get a response from the bot, but for any message I try to post after that, it keeps giving me an error "A previous chat is being posted" :eek:

Thanks for this awesome mod :)

sweetpotato 01-14-2011 08:55 AM

I have this error when try to view archive of one member or help
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

Anyone know how to fix it please?
Thanks,

Drake Splinter 01-14-2011 12:43 PM

Quote:

Originally Posted by jbd (Post 2043639)
Installed this, but it seems to sporadically stop working in IE. It's fine in Firefox. Even if I don't upload any further plugins or change any other files at all, after a day or so it causes "object expected" errors in IE7 and the chatbox just hangs.

It's still working fine in Firefox for me, .

I'm having the same problem, but with Internet Explorer 8. I use Firefox at home, so I wasn't aware of the issue until I tried loading my website at work. It causes the error icon to be displayed down in the left hand corner of the screen with the following message:

Message: Object required
mgc_cb_evo_functions.js


Error details:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Timestamp: Fri, 14 Jan 2011 14:40:40 UTC

Message: Object required
mgc_cb_evo_functions.js
Line: 2109
Char: 3
Code: 0
URI: http://mywebsite.com/forums/mgc_cb_e...o_functions.js

Has a cause/fix been found for this yet?

Heretiko 01-14-2011 12:46 PM

Quote:

Originally Posted by Digital Jedi (Post 2148707)
Well, silly question, but it's all I can think that's left. You're sure it's turned on?

Admin CP ? MGC Chatbox ? General Settings ? Activation of the chatbox :)

Also, check that you have a width set in % or px and that in Ids of the forums in which the chatbox shall be displayed under Display and position, you have it blank. That's about all I can think of other than you need to do re-install.

uhm i'm about to cry.... :( please think to something else :( thanks for all your support mate :)

zelnik 01-14-2011 02:37 PM

Quote:

Originally Posted by Drake Splinter (Post 2148914)
I'm having the same problem, but with Internet Explorer 8. I use Firefox at home, so I wasn't aware of the issue until I tried loading my website at work. It causes the error icon to be displayed down in the left hand corner of the screen with the following message:

Message: Object required
mgc_cb_evo_functions.js


Error details:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Timestamp: Fri, 14 Jan 2011 14:40:40 UTC

Message: Object required
mgc_cb_evo_functions.js
Line: 2109
Char: 3
Code: 0
URI: http://mywebsite.com/forums/mgc_cb_e...o_functions.js

Has a cause/fix been found for this yet?

Having the similar problem all of a sudden with IE & Chrome..

I've changed nothing in months and all of a suddenly my site has started crawling using IE and in an infinite loop of contacting site with chrome.

Disabled the chatbox and site is back to normal and much quicker, have had to disable the modification now and use someone else's.

Digital Jedi 01-14-2011 02:43 PM

Quote:

Originally Posted by Heretiko (Post 2148916)
uhm i'm about to cry.... :( please think to something else :( thanks for all your support mate :)

Hrm, I'm really at loss at this point. I would wait for the developer to come back and see if it's just a bug with your version of vB. Generally, we would have figured it out by now.

Heretiko 01-14-2011 06:26 PM

Quote:

Originally Posted by Digital Jedi (Post 2148962)
Hrm, I'm really at loss at this point. I would wait for the developer to come back and see if it's just a bug with your version of vB. Generally, we would have figured it out by now.

ok lets wait, dont forget my problem please :) and thanks btw for all your support :)


All times are GMT. The time now is 11:01 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.13400 seconds
  • Memory Usage 1,791KB
  • 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_php_printable
  • (10)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