Go Back   vb.org Archive > Community Central > vBulletin.org Site Feedback
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Display Modes
  #21  
Old 07-14-2005, 04:53 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I said in my reply to your post about vb.org support on vb.com - make a nice easy for us to understand list of what your trying to accomplish in a new thread and we will try to help you out if we can. I think people are just starting to look over threads you've made at this point because its just too much already.

btw: were you looking for this
https://vborg.vbsupport.ru/showthread.php?t=63367
  #22  
Old 07-14-2005, 05:03 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The colours are defined in the javascript files in the "clientscript" folder ;

For vB 3.0.7 you need the vbulletin_editor.js, for 3.5.0 it's vbulletin_textedit.js

In the relevant file named above you will find a section defining the colours in an array ;

Code:
var coloroptions = new Array();
coloroptions = {
	"#000000" : "Black",
	"#A0522D" : "Sienna",
	"#556B2F" : "DarkOliveGreen",
	"#006400" : "DarkGreen",
	"#483D8B" : "DarkSlateBlue",
	"#000080" : "Navy",
	"#4B0082" : "Indigo",
	"#2F4F4F" : "DarkSlateGray",
	"#8B0000" : "DarkRed",
The above is just the first few lines.

Edit the colours in this array until your heart is content.
  #23  
Old 07-14-2005, 05:39 AM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Paul M>The World lol
  #24  
Old 07-14-2005, 07:29 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mholtum
Intersting how www.vbulletin.com will not help you add colors "because it is altering the code", blah blah, but they have no problem instructing you on how to "alter code" here
don't confuse template mods with file edits.
  #25  
Old 07-14-2005, 04:19 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yay for paul! I was looking for this last night and doing it by hand, I missed color options nad never thought that it would be at the very bottom
  #26  
Old 07-14-2005, 04:33 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sadly, I fear the information may have been posted in vain - the OP has not logged in since an hour before my post. Oh well, someone else may find it useful.
  #27  
Old 07-14-2005, 04:43 PM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
The colours are defined in the javascript files in the "clientscript" folder ;

For vB 3.0.7 you need the vbulletin_editor.js, for 3.5.0 it's vbulletin_textedit.js

In the relevant file named above you will find a section defining the colours in an array ;

Code:
var coloroptions = new Array();
coloroptions = {
	"#000000" : "Black",
	"#A0522D" : "Sienna",
	"#556B2F" : "DarkOliveGreen",
	"#006400" : "DarkGreen",
	"#483D8B" : "DarkSlateBlue",
	"#000080" : "Navy",
	"#4B0082" : "Indigo",
	"#2F4F4F" : "DarkSlateGray",
	"#8B0000" : "DarkRed",
The above is just the first few lines.

Edit the colours in this array until your heart is content.


Oooo, thanks, I'll try it now

Just curious, do you where to framework of that code is? I'm trying to add a 6th row.
  #28  
Old 07-14-2005, 04:54 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

Quote:
Originally Posted by Brinnie
Oooo, thanks, I'll try it now

Just curious, do you where to framework of that code is? I'm trying to add a 6th row.
All the WYSIWYG code is in the javascript files. Unfortunately, I wouldn't be able to tell you what to change or where to change it. My knowledge of Javascript is limited to cut and paste.
  #29  
Old 07-14-2005, 05:06 PM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again, Paul M... That was the easiest thing in the word to do.



Quote:
Originally Posted by Reeve of shinra
As I said in my reply to your post about vb.org support on vb.com - make a nice easy for us to understand list of what your trying to accomplish in a new thread and we will try to help you out if we can. I think people are just starting to look over threads you've made at this point because its just too much already.
Where to start a new thread?
Quote:
Originally Posted by Reeve of shinra
no, but I like it
  #30  
Old 02-01-2006, 02:05 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boy, there sure are some rude, lazy people in this thread.

Danny, COBRAws, Brad, TruthElixirX, Dream, and Gunshot all suggested "learning some HTML and hexcodes". It should be possible, easy in fact, to add colors to the palette.

If they are going to start saying that adding colors to JavaScript files is "unsupported", then I officially brand vBulletin tech support as LAZY.

Brinnie asks a lot of annoying questions, but adding colors to the color swatch palette in the Quick Editor and WYSIWYG editor is perfectly valid and should be built into vB.

Paul M was the first to show some maturity and identify where and how to modify the colors.

and it's easier to do than most of the template mods posted at vBulletin.com.

Now if I can just figure out how to ADD colors. Adding colors to that palette has strange results -- you get white boxes that do nothing. The 8 across and 5 down (40 total colors) limit is hard coded somewhere else and I have had no success overriding it.

And before anyone wants to flame me, I answer dozens of tech support questions at vBulletin a day.
Closed Thread


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 09:20 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.04713 seconds
  • Memory Usage 2,260KB
  • 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
  • (2)bbcode_code
  • (5)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
  • (3)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