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)

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.


All times are GMT. The time now is 10:54 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.08974 seconds
  • Memory Usage 1,803KB
  • 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
  • (15)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