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 - VSa - ChatBox (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=235271)

Valter 02-24-2010 07:55 PM

Quote:

Originally Posted by Kickin' Wing (Post 1990531)
So the first color in the ACP list is always doubled.

No, it is not.

First color is added automatically - it's your style default color.

So if you have two blacks, for example:
- First one is added automatically
- Second one is added by you

Remove your Black, and it will not be doubled.

Playing with the code is not recommended unless you really know what are you doing.

Skreech94 02-24-2010 08:07 PM

Thanks valter! I reverted templates and it fixed the template.

Kickin' Wing 02-24-2010 08:41 PM

Quote:

Originally Posted by Valter (Post 1990679)
No, it is not.

First color is added automatically - it's your style default color.

So if you have two blacks, for example:
- First one is added automatically
- Second one is added by you

Remove your Black, and it will not be doubled.

Playing with the code is not recommended unless you really know what are you doing.

Looking at the code, the first color is subject to an IF statement: if (vB_Template_Runtime::fetchStyleVar('body_color'))

If that statement is TRUE will the first color be assigned to the Common > body_color StyleVar. If the statement is FALSE, it defaults to the first color you list--which is black by default.

On my live & test forums (both running 4.0.2), it always fails:

http://i130.photobucket.com/albums/p...tBox-Black.png
http://i130.photobucket.com/albums/p...atBox-Gold.png
http://i130.photobucket.com/albums/p...hatBox-Red.png

Valter 02-24-2010 09:44 PM

Here is what settings with or without 'Black' produces:

https://vborg.vbsupport.ru/external/2010/02/12.jpg => https://vborg.vbsupport.ru/external/2010/02/13.jpg

https://vborg.vbsupport.ru/external/2010/02/14.jpg => https://vborg.vbsupport.ru/external/2010/02/15.jpg

Or you have not defined body_color in your style at all?
In this case it's possible to have always first color doubled.

I'll change this in next version, even I thought all styles should have body_color defined.

karkey 02-24-2010 10:10 PM

Quote:

Originally Posted by cory_booth (Post 1990561)
Try changing Plugin: VSa - ChatBox - IL from "Global_Start" to "Process_Templates_Complete"

Hi Not sure where i'm looking for, as you described

Kickin' Wing 02-24-2010 10:56 PM

Quote:

Originally Posted by Valter (Post 1990759)
Or you have not defined body_color in your style at all?
In this case it's possible to have always first color doubled.

I'll change this in next version, even I thought all styles should have body_color defined.

That's pretty weird. I do have body_color defined in all my themes, but it seems to be an issue on my boards.

Just for a temporary fix, I took out the conditional. It displays the first color as clear but all the text shows up like it's supposed to.

Appreciate the help :)

Hippy 02-24-2010 11:04 PM

Same thing here as Kickin' Wing.. wierd

Michael Tsai 02-25-2010 02:18 AM

Installed and works fine, there's this little problem of alignment but i love this mod, finally for vb4, thanks!

pcljmk 02-25-2010 08:25 AM

Ive got [d m, H:i] on chat window, whats wrong? :x

RedHacker 02-25-2010 08:35 AM

Quote:

Originally Posted by pcljmk (Post 1991059)
Ive got [d m, H:i] on chat window, whats wrong? :x

https://vborg.vbsupport.ru/showpost....&postcount=298


All times are GMT. The time now is 09:10 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.02761 seconds
  • Memory Usage 1,745KB
  • 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_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
  • (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