vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to edit the colors that appear in the WYSIWYG colors dropdown? (https://vborg.vbsupport.ru/showthread.php?t=184248)

StephenKay 07-03-2008 01:41 AM

How to edit the colors that appear in the WYSIWYG colors dropdown?
 
How/where would I go to edit precisely the shades of the colors that appear in the dropdown?

Or another way of saying it is: if a color has been specified as "yellow" in a bunch of threads, can I change the specification for "yellow" so that instead of being #FFFF00 it is #FFFF66 (for example)? Thanks.

--------------- Added [DATE]1215130651[/DATE] at [TIME]1215130651[/TIME] ---------------

Bump? Thanks!

StephenKay 07-07-2008 09:39 PM

bump...anybody?

Wayne Luke 07-07-2008 10:55 PM

These are listed in an array in the clientscript/vbulletin_textedit.js file. You will need to download from vBulletin.com with the Uncompressed Javascript package in order to edit this file. The list of colors starts at line 3517.

StephenKay 07-08-2008 01:56 AM

Thank you, but what is the URL for this file? I cannot find it on vBulletin.com. The Downloads area seems to only have versions of vBulletin....


Edit: nevermind, I found uncompressed JavaScript as an option in the downloads menu....

--------------- Added [DATE]1215486596[/DATE] at [TIME]1215486596[/TIME] ---------------

Quote:

Originally Posted by Wayne Luke (Post 1569584)
These are listed in an array in the clientscript/vbulletin_textedit.js file. You will need to download from vBulletin.com with the Uncompressed Javascript package in order to edit this file. The list of colors starts at line 3517.

OK, I have it.

It seems that I could also edit the normal compressed version, simply by going to the end of the file where the color values are clearly visible. Is this not advised? If not, how do I compress the uncompressed version edited file once again? I assume that compressing it somehow makes it load and execute faster?

--------------- Added [DATE]1215487384[/DATE] at [TIME]1215487384[/TIME] ---------------

Another question:

I edited the values in the compressed js file. I found the value #FFFF00 : Yellow, and I changed it to #FF0000. This should make it red (as a test). But after uploading the file, I see no change in the web site, no change in the drop down WYSIWYG menu, and no change when using it. Yellow is still yellow. What am I missing?

Dismounted 07-08-2008 05:38 AM

Make sure you clear your browser cache.

StephenKay 07-08-2008 03:56 PM

Thanks, I tried that - it still doesn't work...

Do I have to compile the .js or something? I know next to nothing about .js.

StephenKay 07-11-2008 01:02 AM

Bump. I cannot get this to work. I edited the .js file. I changed the yellow color, but the forum shows no change. I cleared my cache. Can anyone test this and see if it works for them? Thanks!

StephenKay 07-22-2008 08:02 PM

Bump. I sure would like to get this to work. It must be possible to put your own color variations into the drop down menus of the WYSIWYG Editors.

Opserty 07-22-2008 08:08 PM

  1. https://vborg.vbsupport.ru/showpost....68&postcount=3
  2. Maybe you are editing the wrong thing?
  3. How about start again from scratch?
  4. Make sure you are uploading to the correct place.
  5. Make sure the overwrite is actually happening. (Check the JS file on your site through the browser).
I haven't tried doing it myself so that is about all the help I can give.

StephenKay 07-23-2008 01:59 AM

It seems one problem is that this doesn't work the way people seem to think it does.

I was able to achieve some response to a change by editing one of the color *names* to some other web-standard color name. But editing the hex code of the associated color doesn't do anything to that color. If you change the name of "Yellow" to "SkyBlue", then that square becomes Sky Blue in the drop down menu, and selecting it inserts "SkyBlue" tags in the editor, and the resulting text is colored SkyBlue. It doesn't matter that the hex code is still #FFFF00 (which is Yellow). Very puzzling and ultimately not achieving anything like I want.

I want to make the Yellow "less brite" - instead of #FFFF00, #FFFF66 (for example). There seems to be a bunch more to making that happen than just changing this code in the drop down menu.

Opserty 07-23-2008 08:17 AM

Ah I see, if you look at the output for the editor all the colour boxes use web-standard color names instead of Hex codes. I think the hex codes may just be there for reference?

How about instead, you edit the word Yellow to the "#FFFF66" instead? (Or edit both even) - vbulletin_textedit.js.

StephenKay 07-23-2008 03:05 PM

Quote:

Originally Posted by Opserty (Post 1582103)
How about instead, you edit the word Yellow to the "#FFFF66" instead? (Or edit both even) - vbulletin_textedit.js.

Hey, that actually works - sort of. ;)

If I change one of the color titles to #FFFF66, then the square is indeed a lighter yellow, and selecting it puts {color=#"FFFF99"} tags into the text editing window. So you can change the names to hex values and this will change the colors displayed in the drop down menu. What the actual hex codes in the javascript are doing beats me. Changing them seems to have no effect.

But ultimately, this doesn't achieve what I wanted. And I can see that I am probably approaching this wrong.

I'll explain it a little better: I have an existing forum that used to have one type of skinned look. In various posts, Yellow was used, and it was the regular bright yellow #FFFF00. The forum had a medium gray background.

Now, the forum has a new skin that has a much darker almost black background. The yellow bits just look too bright and stand out too much. I was hoping to somehow modify the code so that whenever it finds a vBcode tag for yellow, instead of using #FFFF00, it would use #FFFF66.

I'm guessing this needs to be intercepted and modified in the code that actually parses all of the vBcode. If you have any idea which file that would be in, please let me know. I'll respond back to this thread if I ever figure out how to make it work. Thanks for the suggestions!


All times are GMT. The time now is 03:28 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.01022 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete