Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2008, 01:41 AM
StephenKay StephenKay is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 07-07-2008, 09:39 PM
StephenKay StephenKay is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump...anybody?
Reply With Quote
  #3  
Old 07-07-2008, 10:55 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-08-2008, 01:56 AM
StephenKay StephenKay is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 View Post
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?
Reply With Quote
  #5  
Old 07-08-2008, 05:38 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you clear your browser cache.
Reply With Quote
  #6  
Old 07-08-2008, 03:56 PM
StephenKay StephenKay is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-11-2008, 01:02 AM
StephenKay StephenKay is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 07-22-2008, 08:02 PM
StephenKay StephenKay is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 07-22-2008, 08:08 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

  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.
Reply With Quote
  #10  
Old 07-23-2008, 01:59 AM
StephenKay StephenKay is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 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.04715 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete