vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Chat Modifications - Cyb - ChatBox (https://vborg.vbsupport.ru/showthread.php?t=177552)

slcsr 09-10-2008 07:57 PM

i did an update on my forum from 2.0>2.2 but i see no difference?

vbboarder 09-11-2008 07:19 PM

Bug: About a week ago I reported that the chatbox shifted the page down & up by ~2 pixels in IE7 whenever the "refreshing messages" appeared. Several other people have confirmed this bug, but no fix has yet been posted. Well, I finally got annoyed and decided to debug it myself.

Solution: Currently, when the chatbox is about to update messages, it hides the "Refreshing Messages" text. The solution simply displays "Updating Messages" instead - you can change this to whatever text you want. I prefer to change the color of the "Refreshing Messages" instead of changing the text so I added that code to the hack. Unfortunately, the color change does not work in IE7 (so IE7 will get the text change and other browsers will get the color change) - you can change the colors to whatever you want or even remove the condition to check for non-IE browsers. So finally here's the 3-steps fix on how to squash the bug - the problem is in the Ccb_getMessages() and Ccb_updateMessages() functions in the chatbox template (surprise, surprise ....): Go to Style Manager > Edit Templates > Cybernetec Templates > cyb_chatbox, and
1. FIND:

PHP Code:

                ccb_Messages = new vB_AJAX_Handler(true);
                
ccb_Messages.onreadystatechange(Ccb_updateMessages);
                
ccb_Messages.send('misc.php?show=ccbmessages');
            }
        }

        function 
Ccb_updateMessages()
        {
            if (
ccb_Messages)
            { 

.
REPLACE WITH:
PHP Code:

                if (navigator.userAgent.indexOf('MSIE') > -1)
                    
fetch_object('cybcb_infoarea').innerHTML ':: Updating Messages';
                else
                    
fetch_object('cybcb_infoarea').style.color 'aqua';
                
ccb_Messages = new vB_AJAX_Handler(true);
                
ccb_Messages.onreadystatechange(Ccb_updateMessages);
                
ccb_Messages.send('misc.php?show=ccbmessages');
            }
        }

        function 
Ccb_updateMessages()
            {
            if (
ccb_Messages)
            {
                
fetch_object('cybcb_infoarea').innerHTML ':: $vbphrase[cybcb_status_refreshing]';
                
fetch_object('cybcb_infoarea').style.color 'gray'

.
2. FIND AND DELETE:
PHP Code:

             if (!Ccb_nowLoading)
            {
                
fetch_object('cybcb_infoarea').style.display 'none';
                
fetch_object('ccb_entermessage').style.height '$cybcb_height_input';
            } 

.
3. FOR MAC USERS: to fix a mac sizing bug where the text area will contract & expand on refresh, find all:
Quote:

$cybcb_height_input_wstatus
and replace with:
Quote:

$cybcb_height_input
Hope that helps everyone from gettin' shifty eyes when using IE7 ;):rolleyes::D

itsmeroro 09-12-2008 02:54 AM

Could someone tell me in laymans terms how to manually move this chatbox below my Random Member Photos on my index page? I am having a tough time figuring out which template this needs to go on. Please help -- otherwise its working well! Thanks in advance, Rachelle

CLaNZeR 09-12-2008 11:02 AM

Quote:

Originally Posted by vbboarder (Post 1620069)
Bug: About a week ago I reported that the chatbox shifted the page down & up by ~2 pixels in IE7 whenever the "refreshing messages" appeared. Several other people have confirmed this bug, but no fix has yet been posted. Well, I finally got annoyed and decided to debug it myself.

Hi and thanks for this, but both options did not work for me :(

I still get the flicker.

Edited the Template as you advised on the Skin I am using and did a replace and saved.
Refreshed the Forum page and still the same movement.

I reset the template back to how it was and then tried option2 to increase the text area, but still the movement :(

Cheers

Sean.

CLaNZeR 09-12-2008 11:55 AM

Sorry my mistake.

I checked template and I had not deleted the last bits correctly.

All done now and fixed the problem.

Many thanks, as was driving me mad :up:

Cheers

Sean.

vbboarder 09-12-2008 03:05 PM

Quote:

Originally Posted by CLaNZeR (Post 1620481)
Sorry my mistake.
I checked template and I had not deleted the last bits correctly.
All done now and fixed the problem.
Many thanks, as was driving me mad :up:

Cheers
Sean.

Yup, it's very important to do the last step:
FIND AND DELETE:
PHP Code:

             if (!Ccb_nowLoading)
            {
                
fetch_object('cybcb_infoarea').style.display 'none';
                
fetch_object('ccb_entermessage').style.height '$cybcb_height_input';
            } 

.
But do the other steps too, listed in my post above. ;)

Masiello 09-12-2008 07:21 PM

Quote:

Originally Posted by vbboarder (Post 1620069)
Bug: About a week ago I reported that the chatbox shifted the page down & up by ~2 pixels in IE7 whenever the "refreshing messages" appeared. Several other people have confirmed this bug, but no fix has yet been posted. Well, I finally got annoyed and decided to debug it myself.

Thanks for this...

KorsatH 09-12-2008 08:32 PM

Quote:

Originally Posted by Mastergumble (Post 1616926)
i dont know what im missing but i installed and in main forums page works great, but on vBa CMPS the chat box appear but dont pass of loading...

Any help ?

anyone has fix it?

vbboarder 09-13-2008 01:43 AM

Quote:

Originally Posted by CLaNZeR (Post 1620481)
Sorry my mistake.
I checked template and I had not deleted the last bits correctly.
All done now and fixed the problem.
Many thanks, as was driving me mad :up:

Cheers

Sean.

Quote:

Originally Posted by Masiello (Post 1620722)
Thanks for this...

Glad it worked, and happy to help :D

kleinschwanz 09-13-2008 12:34 PM

Well it installed for me and it works in Firefox. But in IE I can only input but not see any content of the chatbox... any ideas why that could happen?
Honestly I tried this Chatbox only 'cause the other one I had installed for quite some time did not work in IE at all anymore - it showed up but did not work in IE just sais "loading" same here.. in IE it says loading... but there is nothing displayed even with your chatbox I have the chance to shout with IE even I can not see what I shout.

Coud this be something that has to do with the Updates of vBulletin and a file used by chatboxes?


All times are GMT. The time now is 01:20 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.02493 seconds
  • Memory Usage 1,772KB
  • 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
  • (8)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
  • (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