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)

SoFresh 08-28-2008 02:35 PM

I installed the new version but I can't get it to show up anywhere on the forums... :(

e2s 08-28-2008 02:59 PM

Is it possible to have a specific channel appear above for a specific section of the forums. Take for example I have a moderators section of the forums. I want to have the chat at the top of that forum to be the moderator channel.

Just curious it would be cool because then you could have chats specific to a section of the forums

zelnik 08-29-2008 06:43 AM

Is anyone else having various wrong/odd descriptions in the who is online page?

I get things like this:

Unknown Location
/forum/clientscript/mgc_cb_evo_add/css/indicator.gif

etc

Ranger187 08-29-2008 06:59 AM

Quote:

Originally Posted by ispots (Post 1608343)
Can anyone who has it working and likes it please explain to me how the "Users in the Chatbox" feature works? What settings can I use to make it actually even CLOSE to accurate?

I can have 10 people actively chatting in it, and it tells there is no one in there....and the opposite is true as well. I have the refresh settings set fairly low, so there is not much time delay.

It just really seems to not function as designed.

This is due to the timelimit setting you can adjust. If I remember right, it adds sql queries. Refresh for the chat, and users in chat setting are 2 different settings.

Ranger187 08-29-2008 07:02 AM

Quote:

Originally Posted by pewp (Post 1608609)
I'm having an issue with my install of the latest version.

I have it so the newest posts display at the bottom, but the chat box doesn't seem to scroll down as new chats come in. If that explains my problem well enough.

Quote:

Originally Posted by SoFresh (Post 1609085)
I installed the new version but I can't get it to show up anywhere on the forums... :(

Look at the very top ;)

Quote:

Version 1.0.0 known bugs bugs
  • [Minor] Veuillez entrer l'email not translated
  • [Minor] When chats display option is "Oldest first", the chatbox doesn't scroll to new chats on load.
  • [Minor] Too much space between chats in collapsed mode
  • [Minor] Sticky chats not working
  • [Minor] Chatbox smileys row still show while smileys disabled (see here for a fix) Not a bug, can't be reproduced
  • [Minor] Possible issue with mod_security installed on the server (Post to help fixing it: http://www.chronosight.net/view/2007...ed-apache.html)



Quote:

Originally Posted by zelnik (Post 1609657)
Is anyone else having various wrong/odd descriptions in the who is online page?

I get things like this:

Unknown Location
/forum/clientscript/mgc_cb_evo_add/css/indicator.gif

etc

Bring up the error console in firefox or set ie to show errors and see if they display.


Quote:

Originally Posted by poolking (Post 1606814)
Yes, tested it myself in Internet Explorer and doesn't work.

2 people then? Test it across multiple to make sure the issue is replicable.

zelnik 08-29-2008 11:04 AM

Quote:

Originally Posted by Ranger187 (Post 1609667)
Bring up the error console in firefox or set ie to show errors and see if they display.

Thank you for taking the time in replying, I've had a look in the FF error console and although I've not located that that error I have found several of the other "unknown location" errors whilst viewing the whois and they are as follows:

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...d/js/jquery.js
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

-----

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...utocomplete.js
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

----

Error: vBulletin is undefined
Source File: http://www.myspain.es/forum/plaza/cl..._menu.js?v=373
Line: 11

------

Error: YAHOO is not defined
Source File: http://www.myspain.es/forum/plaza/cl...lobal.js?v=373
Line: 11

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

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...n-min.js?v=373
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

------

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...event.js?v=373
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

---------

The odd thing is I'm not sure why it is calling it from that location as the only place the shoutbox is located is on the main forum index page..

Any help would be greatly appreciated. Thanks.

Perhaps It's a problem with vBSEO?

Ranger187 08-29-2008 12:02 PM

Ohhhhhhhh...... Your running SEO too? Try disabling SEO.

zelnik 08-29-2008 03:40 PM

Quote:

Originally Posted by Ranger187 (Post 1609824)
Ohhhhhhhh...... Your running SEO too? Try disabling SEO.

Disable SEO completely? hell no :)

Is there a way of getting it to ignore just the shoutbox?

Thanks for all your help ranger!

These rewrite rules don't seem to do anything with v1.0

'mgc_cb_evo\.php$' => 'chatbox.html'
'mgc_cb_evo\.php\?do=view_chatbox$' => 'chatbox.html'
'mgc_cb_evo\.php\?do=view_archives&page=(\d+)' => 'chatbox/archiv/page-$1.html'
'mgc_cb_evo\.php\?do=view_archives$' => 'chatbox/archiv/page-1/'

gpc10347 08-29-2008 04:25 PM

<can of worms>

I have talkerbot working on my site and of course, mgc chat is working well too.. Anyone else have both and - figured out some code to make the talkerbot a part of the chat?

</end worms>

glennybee 08-29-2008 06:30 PM

I am running VBSEO and I noticed that when someone pastes a url into the chatbox, it appears as a link (which is ok) but it shows up as the link and not the actual title of the page. Is there something I can do either in the mods or via vbseo cp that could make it show the title?

Thanks :)

Kaycee123 08-29-2008 07:45 PM

We're still having problems with the chatbox not working for some members. For some it locks on "loading" and their chats never come up. Others are not able to see any of the chats in the chatbox, only in Archives.

The members who are having problems have cleared their caches several times and it still doesn't work.

Sometimes switching from FF to IE helps, or vice versa. Any ideas?

Gamempire 08-29-2008 08:34 PM

i can't see the chat after i had installed..why? i tried witdh the mod to the template but it still doesn't work..

Ranger187 08-30-2008 07:51 PM

Quote:

Originally Posted by gpc10347 (Post 1609999)
<can of worms>

I have talkerbot working on my site and of course, mgc chat is working well too.. Anyone else have both and - figured out some code to make the talkerbot a part of the chat?

</end worms>

Who knows if that will be added.

Quote:

Originally Posted by Gamempire (Post 1610151)
i can't see the chat after i had installed..why? i tried witdh the mod to the template but it still doesn't work..

Because you like every other n00b doesn't READ the instructions. USERGROUPS > Edit ;)

Quote:

Originally Posted by Kaycee123 (Post 1610115)
We're still having problems with the chatbox not working for some members. For some it locks on "loading" and their chats never come up. Others are not able to see any of the chats in the chatbox, only in Archives.

The members who are having problems have cleared their caches several times and it still doesn't work.

Sometimes switching from FF to IE helps, or vice versa. Any ideas?

Loading or not showing at all = server. I think I asked, and you never replied. Is this running apache?

https://vborg.vbsupport.ru/showpost....postcount=2100

reitube 08-30-2008 10:39 PM

in order to fit the chatbox on a side column of a portal like vba, it would be nice to resize the chatbox to a minimum. Therefore, it should be possible to arrange the icons (via configuration) beow the input field and have smaller icons. Furthermore, a configurable width would be great.
Thanks for the Mod, great job..

Regards.

Ranger187 08-30-2008 10:43 PM

Sounds more like a plugin to this mod, then a function. Not a bad idea. But, it's already a module VBa as a shotbox on the main page ;)

zelnik 08-31-2008 06:02 AM

Quote:

Originally Posted by Kaycee123 (Post 1610115)
We're still having problems with the chatbox not working for some members. For some it locks on "loading" and their chats never come up. Others are not able to see any of the chats in the chatbox, only in Archives.

The members who are having problems have cleared their caches several times and it still doesn't work.

Sometimes switching from FF to IE helps, or vice versa. Any ideas?

I had this problem when upgrading from to 1.0 and solved it by re-ftping all the files over again (no need to reimport) just ftp upload all the associated files and it seem to fix it.

VBDev 08-31-2008 12:58 PM

Hi all,

Just back from holidays today.

Will start going through all your messages but I am currently a bit sick and thus am not sure If I can handle eveything.

VBDev 08-31-2008 02:06 PM

Ready boys ? Take a long breath and read all my answers :)

I hope i didn't forget anyone.

Quote:

Originally Posted by pedroenf (Post 1604531)
The issue is that when chatbox is enabled you do not receive vBulletin PM pop-up.

When you are in that condition, which javascript error do you see ?

Quote:

Originally Posted by NeutralizeR (Post 1604680)
I've just upgraded from the old version of this hack to evo version. I used to run my chatbox with only 1 query, now it executes 3 queries. 1 for the core hack, 1 for the smilies and 1 for something else. Is it possile to run the new version with only 1 query? (i disabled all settings need extra queries)

If you deactivate the chatbox smilies it will remove one query (used to build up the smilies toolbar).

To go down to one query you can try to remove one other query that should not be run in case of autocompletion mode inactive.
Here is what you can do to give it a try:
  1. Disable the autocompletion option
  2. Edit the functions_mgc_cb_evo.php
and replace :

PHP Code:

    $commands $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "mgc_cb_evo_command WHERE active='1'");
    
    while (
$command $vbulletin->db->fetch_array($commands))
    {
        if (
mgc_cb_evo_can_use_command($command))
        {
            
$show['mgc_cb_evo_command_' $command['identifier']] = true;

            
/* If autocompletion is active, add commands tips to autocompletion array */
            
if ($vbulletin->options['mgc_cb_evo_act_autocompletion'])
            {
                
$append_array get_command_autocompletion_array($command['identifier']);
                
$autocompletion_js_array array_merge($autocompletion_js_array,$append_array);
            }
        }
        else
        {
            
$show['mgc_cb_evo_command_' $command['identifier']] = false;
        }
    }
   
   if (
sizeof($autocompletion_js_array))
   {
       
/* Order table alphabetically */
       
sort($autocompletion_js_array);
   
       
/* Implode array */
       
$autocompletion_js implode(',',$autocompletion_js_array);
   } 

by

PHP Code:

    /* Retrieving of commands permissions to customize the chatbox displayed elements */
    
$autocompletion_js_array = array();
    
    if (
$vbulletin->options['mgc_cb_evo_act_autocompletion'])
    {
        
$commands $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "mgc_cb_evo_command WHERE active='1'");
        
        while (
$command $vbulletin->db->fetch_array($commands))
        {
            if (
mgc_cb_evo_can_use_command($command))
            {
                
$show['mgc_cb_evo_command_' $command['identifier']] = true;
    
                
/* If autocompletion is active, add commands tips to autocompletion array */
                
if ($vbulletin->options['mgc_cb_evo_act_autocompletion'])
                {
                    
$append_array get_command_autocompletion_array($command['identifier']);
                    
$autocompletion_js_array array_merge($autocompletion_js_array,$append_array);
                }
            }
            else
            {
                
$show['mgc_cb_evo_command_' $command['identifier']] = false;
            }
        }
       
       if (
sizeof($autocompletion_js_array))
       {
        
/* Order table alphabetically */
        
sort($autocompletion_js_array);
       
        
/* Implode array */
        
$autocompletion_js implode(',',$autocompletion_js_array);
       }
    } 

This should move things down to one query. I will update the chatbox code accordingly in the next version.

Quote:

Originally Posted by shot2bits (Post 1605012)
PS - does the shoutbox auto update after somebody posts a message?

No, it does refresh on the other users window each specified number of seconds (you set it as called "autorefresh" time).

Quote:

Originally Posted by BozzaJos (Post 1605067)
Thanks Andrew. I never noticed Dev answered my question. Anyway, here is a bigger screenshot!

http://img98.imageshack.us/img98/693...oxerroroy7.png

Yes this is what I thought, I miss that one out ;)

I have added it to the bug list and will correct it in the next version !

Quote:

Originally Posted by NeutralizeR (Post 1605115)
I also have the same issue with BozzaJos. Plus...

By default, vbulletin asks for confirmation after clicking log out and the page turn into gray in IE. When MGC Chatbox Evo is enabled, it doesn't asks for confirmation and directly logs me out. I can see the yellow javascript error icon in the bottom left corner of IE. Maybe a conflict with the JS files.

The problem is that I am a mac user and thus can't test that :(. Could you try to tell me which kind of error is displayed in ie ?

I add it in the list of known bugs.

Quote:

Originally Posted by gpc10347 (Post 1609999)
<can of worms>

I have talkerbot working on my site and of course, mgc chat is working well too.. Anyone else have both and - figured out some code to make the talkerbot a part of the chat?

</end worms>

Honestly this is not something I would, I don't know talkerbot at all and prefer to concentrate on bringing the chatbox to even further completness.

Quote:

Originally Posted by reitube (Post 1610864)
in order to fit the chatbox on a side column of a portal like vba, it would be nice to resize the chatbox to a minimum. Therefore, it should be possible to arrange the icons (via configuration) beow the input field and have smaller icons. Furthermore, a configurable width would be great.
Thanks for the Mod, great job..

Regards.

Quote:

Originally Posted by Ranger187 (Post 1610868)
Sounds more like a plugin to this mod, then a function. Not a bad idea. But, it's already a module VBa as a shotbox on the main page ;)

I agree with Ranger187, the VBa chatbox module for my chatbox released by stangger5 already does it.

Fireproof 08-31-2008 05:41 PM

Quote:

Originally Posted by redtailboas (Post 1467537)
Installed. Great product and working great!

Is there a way to disable Chatbox in one style? I have a mobile style (and chat does not work on mobile devices that I have tested) so I would just like to disable it only for the mobile style.

Any suggestions?

I have this same need.

Any hope on getting some help with this?



Also - separately, is your next release likely to solve the "non-scrolling" issue when using "oldest first"?

SnapOff Racing 08-31-2008 08:41 PM

Concerning the issue about the private messages, that is happening for me as well. No popup window for new private messages. Just an FYI

NeutralizeR 08-31-2008 11:19 PM

Thanks for the file edit for disabling that query. The old version didn't require any queries for the smilies but it's no big deal.

About the javascript error. Here's a screenshot of forumhome after clicking the logout link:
http://img527.imageshack.us/img527/8899/jserrorsu0.jpg


Besides these already known three bugs...:
[Major but non blocking] vBulletin confirm popup (logout or PM) have been reported by somes users as not displayed in IE when the chatbox is active (IE javascript triangle appears)
[Medium] Chats doesn't get removed from the chatbox when the inactivity mode message is displayed
[Minor] When chats display option is "Oldest first", the chatbox doesn't scroll to new chats on load.

i need the updated code for this to have a perfectly running chatbox:
https://vborg.vbsupport.ru/showpost....&postcount=105

Welcome back and thanks for your support :)

VBDev 09-01-2008 04:29 AM

Quote:

Originally Posted by Fireproof (Post 1611345)
I have this same need.

Any hope on getting some help with this?

Without the javascript error it will be hard to find ;)

Quote:

Originally Posted by Fireproof (Post 1611345)
Also - separately, is your next release likely to solve the "non-scrolling" issue when using "oldest first"?

Yes yes I hope to ! I think I'll perhaps need the help of some javascripts guru on that one coz I have tried different ways and nothing did it...

Quote:

Originally Posted by NeutralizeR (Post 1611545)
Thanks for the file edit for disabling that query. The old version didn't require any queries for the smilies but it's no big deal.

Hum really ?? Then it's not that sql query we are speaking of. Perhaps it's the one for the announcement in the chatbox if you have activated it and the imagecache is not already called by a vBulletin file on that page. Have you activated announcement and bbcode in announcement ?

I think the number of queries in the next version will be a little higher on page load as I am thinking on modifying the chatbox in order to have the chats loaded on startup such avoiding the little delay of first loading the page and then retrieving them through ajax. This would certainly be appreciated by some people around there :)
So don't worry if you see that the number of queries in the next version is a bit higher (1 or 2 I think), this will mean that I have implemented that feature.

Overall it will do the same number of queries than in the other way as the retrieving of chats through ajax does a number of queries equivalent to a load of a minimal vBulletin page. But you don't see them ;)

Quote:

Originally Posted by NeutralizeR (Post 1611545)
About the javascript error. Here's a screenshot of forumhome after clicking the logout link:
http://img527.imageshack.us/img527/8899/jserrorsu0.jpg

Is it possible to have the english translation please :)

Quote:

Originally Posted by NeutralizeR (Post 1611545)
Besides these already known three bugs...:
[Major but non blocking] vBulletin confirm popup (logout or PM) have been reported by somes users as not displayed in IE when the chatbox is active (IE javascript triangle appears)
[Medium] Chats doesn't get removed from the chatbox when the inactivity mode message is displayed
[Minor] When chats display option is "Oldest first", the chatbox doesn't scroll to new chats on load.

i need the updated code for this to have a perfectly running chatbox:
https://vborg.vbsupport.ru/showpost....&postcount=105

I'll tell you where do to the similar changes later today or tomorrow.

reitube 09-01-2008 11:22 AM

Quote:

Originally Posted by VBDev (Post 1611194)
I agree with Ranger187, the VBa chatbox module for my chatbox released by stangger5 already does it.

Thanks for answering, but:
I might be misunderstood.
I know stangger's vba mod for MGC Chat and I use it. The prob is, the vba mod is designed for the center column of vba, because it's impossible to right-size the Chatbox that far it fits the left or right column. Stangger's mod only wraps your Chatbox, therefore the only place it fits on vba is center column (or you risk a layout mess )
What I suggested was: A bit more configuration of chatbox itself.(e.g. separation of input line and Icon line, using smaller icons, setting a width etc.) to get the whole thing fit in a side column. And that can't be done by stangger's mod.

Regards.

NeutralizeR 09-01-2008 11:28 AM

Quote:

Originally Posted by VBDev (Post 1611716)
Without the javascript error it will be hard to find ;)



Yes yes I hope to ! I think I'll perhaps need the help of some javascripts guru on that one coz I have tried different ways and nothing did it...



Hum really ?? Then it's not that sql query we are speaking of. Perhaps it's the one for the announcement in the chatbox if you have activated it and the imagecache is not already called by a vBulletin file on that page. Have you activated announcement and bbcode in announcement ?

I think the number of queries in the next version will be a little higher on page load as I am thinking on modifying the chatbox in order to have the chats loaded on startup such avoiding the little delay of first loading the page and then retrieving them through ajax. This would certainly be appreciated by some people around there :)
So don't worry if you see that the number of queries in the next version is a bit higher (1 or 2 I think), this will mean that I have implemented that feature.

Overall it will do the same number of queries than in the other way as the retrieving of chats through ajax does a number of queries equivalent to a load of a minimal vBulletin page. But you don't see them ;)



Is it possible to have the english translation please :)



I'll tell you where do to the similar changes later today or tomorrow.

All extra features added in this version are disabled. Announcement and bbcode in announcements features are disabled, too. When i disable the smilies, i see the chatbox is running with only 1 query. In the old version (3.6 version), i had smilies enabled and it was still running with only 1 query. Maybe it's because you added "by random order or by admincp order" selection ?

Javascript error says: "Object doesn't support this property or method" i don't think it's helpful :)

Alright, waiting for your answer for the similar changes...

VBDev 09-01-2008 12:05 PM

Quote:

Originally Posted by reitube (Post 1611907)
Thanks for answering, but:
I might be misunderstood.
I know stangger's vba mod for MGC Chat and I use it. The prob is, the vba mod is designed for the center column of vba, because it's impossible to right-size the Chatbox that far it fits the left or right column. Stangger's mod only wraps your Chatbox, therefore the only place it fits on vba is center column (or you risk a layout mess )
What I suggested was: A bit more configuration of chatbox itself.(e.g. separation of input line and Icon line, using smaller icons, setting a width etc.) to get the whole thing fit in a side column. And that can't be done by stangger's mod.

Regards.

Ah yes in that case you're right !

I could add the following options :
  • Small icons/Big icons
  • Separate input lines and buttons
But perhaps it won't be enough ?

Quote:

Originally Posted by NeutralizeR (Post 1611909)
All extra features added in this version are disabled. Announcement and bbcode in announcements features are disabled, too. When i disable the smilies, i see the chatbox is running with only 1 query. In the old version (3.6 version), i had smilies enabled and it was still running with only 1 query. Maybe it's because you added "by random order or by admincp order" selection ?

Javascript error says: "Object doesn't support this property or method" i don't think it's helpful :)

Alright, waiting for your answer for the similar changes...

No this new option has nothing to do with this query, humm.

Na this ain't very useful :( ... as long as I don't now which object it is ...

reitube 09-01-2008 02:15 PM

Quote:

Originally Posted by VBDev (Post 1611935)
Ah yes in that case you're right !

I could add the following options :
  • Small icons/Big icons
  • Separate input lines and buttons
But perhaps it won't be enough ?

Thanks, it would be great to have this and may be a configurable width of the the box. A config to separate username and timestamp (2 lines instead of one) could help either.
I really appreaciate this!!

Regards

Fireproof 09-01-2008 02:37 PM

Quote:

Originally Posted by VBDev (Post 1611716)
Without the javascript error it will be hard to find ;)

I think you misunderstood my request, or I misunderstood your answer. I wasn't talking about any error.

My request: I have a mobile-device optimized skin and would like the chatbox to NOT show when using this skin. But I do want it to show on my other default skin.

Is there anything we can do to get it to not show on a certain skin (in my case, the mobile skin)?

Drocr 09-01-2008 07:27 PM

I cant get the smilies to work can someone help?

VBDev 09-01-2008 08:02 PM

Quote:

Originally Posted by reitube (Post 1612016)
Thanks, it would be great to have this and may be a configurable width of the the box. A config to separate username and timestamp (2 lines instead of one) could help either.
I really appreaciate this!!

Regards

The option for the width of the chatbox is interesting, I will add that request.

However I don't see the point of separating the username and timestamp. Btw it would really complicate the chatbox template and I am not that up to.

Quote:

Originally Posted by Fireproof (Post 1612034)
I think you misunderstood my request, or I misunderstood your answer. I wasn't talking about any error.

My request: I have a mobile-device optimized skin and would like the chatbox to NOT show when using this skin. But I do want it to show on my other default skin.

Is there anything we can do to get it to not show on a certain skin (in my case, the mobile skin)?

Yes you can by following the chatbox style issue and adding the variable as explained only in your needed style's templates.

Quote:

Originally Posted by Drocr (Post 1612268)
I cant get the smilies to work can someone help?

You have to activate the smilie bbcode for the chatbox it's an option of the chatbox.

VBDev 09-01-2008 08:14 PM

Quote:

Originally Posted by NeutralizeR (Post 1611909)
All extra features added in this version are disabled. Announcement and bbcode in announcements features are disabled, too. When i disable the smilies, i see the chatbox is running with only 1 query. In the old version (3.6 version), i had smilies enabled and it was still running with only 1 query. Maybe it's because you added "by random order or by admincp order" selection ?

Javascript error says: "Object doesn't support this property or method" i don't think it's helpful :)

Alright, waiting for your answer for the similar changes...

Here you go :

Edit the mgc_chatbox_ajax.php file and search in the code contained into the condition $_POST['do'] == 'ajax_refresh_chat' :

You must modify the sql request :

PHP Code:

      $chats $vbulletin->db->query_read("
            SELECT c.*,fromu.userid AS fromuserid,fromu.username AS fromusername,fromu.usergroupid AS fromusergroupid,fromu.displaygroupid AS fromdisplaygroupid,
            tou.userid AS touserid,tou.username AS tousername,tou.usergroupid AS tousergroupid,tou.displaygroupid AS todisplaygroupid
            FROM " 
TABLE_PREFIX "mgc_cb_evo_chat AS c
            LEFT JOIN " 
TABLE_PREFIX "user AS fromu ON (c.fromuid=fromu.userid)
            LEFT JOIN " 
TABLE_PREFIX "user AS tou ON (c.touid=tou.userid)
            WHERE 
$where_clause
            ORDER BY sticky DESC,c.dateline DESC
            LIMIT 
$limit
      "
); 

By adding after :

PHP Code:

            LEFT JOIN " . TABLE_PREFIX . "user AS tou ON (c.touid=tou.userid

This:

PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userfield AS uf ON(fromu.userid uf.userid

And after :

PHP Code:

,tou.displaygroupid AS todisplaygroupid 

You should add field8.

Then you can use $chat[field8] in the mgc_cb_evo_chatbit template.

Fireproof 09-01-2008 08:52 PM

Quote:

Originally Posted by VBDev (Post 1612286)
Yes you can by following the chatbox style issue and adding the variable as explained only in your needed style's templates.

I really hate to bug you, but I am such a newbie, and that advice, while it sounds promising, is not enough for me to do anything with.

Can you be a little more specific? What variable should I be looking for and where might I find it? I'm assuming that the "installation process" added some variable to all my styles somewhere. So it sounds like I can go find whatever that is in the mobile style and just manually remove it.

Please let me know.

thanks in advance.

NeutralizeR 09-01-2008 10:57 PM

Quote:

Originally Posted by VBDev (Post 1612300)
Here you go :

Edit the mgc_chatbox_ajax.php file and search in the code contained into the condition $_POST['do'] == 'ajax_refresh_chat' :

You must modify the sql request :

PHP Code:

      $chats $vbulletin->db->query_read("
            SELECT c.*,fromu.userid AS fromuserid,fromu.username AS fromusername,fromu.usergroupid AS fromusergroupid,fromu.displaygroupid AS fromdisplaygroupid,
            tou.userid AS touserid,tou.username AS tousername,tou.usergroupid AS tousergroupid,tou.displaygroupid AS todisplaygroupid
            FROM " 
TABLE_PREFIX "mgc_cb_evo_chat AS c
            LEFT JOIN " 
TABLE_PREFIX "user AS fromu ON (c.fromuid=fromu.userid)
            LEFT JOIN " 
TABLE_PREFIX "user AS tou ON (c.touid=tou.userid)
            WHERE 
$where_clause
            ORDER BY sticky DESC,c.dateline DESC
            LIMIT 
$limit
      "
); 

By adding after :

PHP Code:

            LEFT JOIN " . TABLE_PREFIX . "user AS tou ON (c.touid=tou.userid

This:

PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userfield AS uf ON(fromu.userid uf.userid

And after :

PHP Code:

,tou.displaygroupid AS todisplaygroupid 

You should add field8.

Then you can use $chat[field8] in the mgc_cb_evo_chatbit template.

Thank you! :)

VBDev 09-02-2008 05:38 AM

Quote:

Originally Posted by Fireproof (Post 1612330)
I really hate to bug you, but I am such a newbie, and that advice, while it sounds promising, is not enough for me to do anything with.

Can you be a little more specific? What variable should I be looking for and where might I find it? I'm assuming that the "installation process" added some variable to all my styles somewhere. So it sounds like I can go find whatever that is in the mobile style and just manually remove it.

Please let me know.

thanks in advance.

No no your install process shouldn't have added variables to your style for the chatbox display :)

However, if you follow the little how to which is in the chatbox readme for the style issue this should be possible to only display the chatbox in the styles you want.

I think you should give it a try but I can perhaps add a new option in the next chatbox release.

zelnik 09-02-2008 07:25 AM

Hi VBDev,

Firstly welcome back from your holiday I hope you had a great time..

I was wondering if you could help me on the following issues:

https://vborg.vbsupport.ru/showpost....postcount=2363
https://vborg.vbsupport.ru/showpost....postcount=2366

Thank you..

reitube 09-02-2008 10:16 AM

Quote:

Originally Posted by VBDev (Post 1612286)
The option for the width of the chatbox is interesting, I will add that request.

However I don't see the point of separating the username and timestamp. Btw it would really complicate the chatbox template and I am not that up to.


Thanks for adding that as a request!
I know, separating timestamp and username will complicate the template but would reduce the necessary width of the box (in order to get the whole thing fit on the side columns).

Reagrds

VBDev 09-02-2008 12:20 PM

Quote:

Originally Posted by zelnik (Post 1609795)
Thank you for taking the time in replying, I've had a look in the FF error console and although I've not located that that error I have found several of the other "unknown location" errors whilst viewing the whois and they are as follows:

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...d/js/jquery.js
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

-----

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...utocomplete.js
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

----

Error: vBulletin is undefined
Source File: http://www.myspain.es/forum/plaza/cl..._menu.js?v=373
Line: 11

------

Error: YAHOO is not defined
Source File: http://www.myspain.es/forum/plaza/cl...lobal.js?v=373
Line: 11

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

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...n-min.js?v=373
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

------

Error: syntax error
Source File: http://www.myspain.es/forum/plaza/cl...event.js?v=373
Line: 1
Source Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

---------

The odd thing is I'm not sure why it is calling it from that location as the only place the shoutbox is located is on the main forum index page..

Any help would be greatly appreciated. Thanks.

Perhaps It's a problem with vBSEO?

Hum it's odd.

It's only on that page that you get those errors ?

VBDev 09-02-2008 12:21 PM

Quote:

Originally Posted by reitube (Post 1612675)
Thanks for adding that as a request!
I know, separating timestamp and username will complicate the template but would reduce the necessary width of the box (in order to get the whole thing fit on the side columns).

Reagrds

Yes but in that case, how would the chat looks like ??

Could you make a small drawing ?

Fireproof 09-02-2008 12:21 PM

Quote:

Originally Posted by VBDev (Post 1612515)
No no your install process shouldn't have added variables to your style for the chatbox display :)

However, if you follow the little how to which is in the chatbox readme for the style issue this should be possible to only display the chatbox in the styles you want.

I think you should give it a try but I can perhaps add a new option in the next chatbox release.

Oh - okay, I get it now. :)

And yes, that would be a very CONVENIENT feature in the next version if it's not too difficult to implement.

Keep up the great work!!

sturdy 09-02-2008 02:28 PM

Imported the german lang-pack, why do I get "entrez voutre chat" in the textfield before entering any text the first time ?

zelnik 09-02-2008 02:46 PM

Quote:

Originally Posted by VBDev (Post 1612756)
Hum it's odd.

It's only on that page that you get those errors ?

Yes I just get those in the error console, but if think it's a VBSEO issue with that as it mentions forum/plaza and there is not a directory called plaza but we have a section called the plaza on the forum.

But we get this error when you're watching the whois online when someone posts a message :

Unknown Location
/forum/clientscript/mgc_cb_evo_add/css/indicator.gif


All times are GMT. The time now is 01:38 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.07707 seconds
  • Memory Usage 1,992KB
  • 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
  • (10)bbcode_php_printable
  • (44)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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