vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=264)
-   -   Customize 4x6 Text Color Palette (https://vborg.vbsupport.ru/showthread.php?t=328154)

Drucifer 07-26-2020 04:45 AM

Customize 4x6 Text Color Palette
 
I have several local team colors I use over and over again in posts?

Is there any way to customize the 4x6 palette of text colors in the edit menu box?

In Omnibus 07-26-2020 10:46 PM

You can hack the ckeditor but you won't get out the colors you put in because web browsers convert whatever you put in to the closest "web safe" color.

The best way to do it is to use HTML markup.

You can surround any post element with HTML and get the color you want.

<span style="color:#FF0000">Text</span>

Obviously, you need the exact hex values for each color for this to work as desired.

Drucifer 07-26-2020 11:20 PM

Quote:

Originally Posted by In Omnibus (Post 2603603)
You can hack the ckeditor but you won't get out the colors you put in because web browsers convert whatever you put in to the closest "web safe" color.

The best way to do it is to use HTML markup.

You can surround any post element with HTML and get the color you want.

<span style="color:#FF0000">Text</span>

Obviously, you need the exact hex values for each color for this to work as desired.

I only use safe colors.


Actually there is one color I really used over and over #0044aa.

How do I make a simple BBcode to change one line of text to that color?

In Omnibus 07-27-2020 12:17 AM

1 Attachment(s)
In the AdminCP under Custom BBCodes

Add New BBCode

These are the fields from top to bottom in case you can't read the attachment.

Color

color

<span style='color:#0044AA;'>Text</span>

[color]Text[/color]

Changes text color to #0044AA

images/misc/button.png

You can leave the radio buttons as they are defaulted.

Make sure you put an image somewhere on your server and have your path going to that image. Otherwise you will have a blank square.

Drucifer 07-27-2020 01:47 AM

Quote:

Originally Posted by In Omnibus (Post 2603605)
In the AdminCP under Custom BBCodes

Add New BBCode

These are the fields from top to bottom in case you can't read the attachment.

Color

color

<span style='color:#0044AA;'>Text</span>

[color]Text[/color]

Changes text color to #0044AA

images/misc/button.png

You can leave the radio buttons as they are defaulted.

Make sure you put an image somewhere on your server and have your path going to that image. Otherwise you will have a blank square.

I did that. Except I did BLUE instead of COLOR before. It put visible bbcode tags on both sides of what I'm trying to color.

I just did yours exactly and the results were the same - visible tags and no color change.

NEVERMIND it works. I should have looked at Preview.

https://metsglobal.org/Forums/Pix/vB...e_BlueText.jpg


All times are GMT. The time now is 03: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.01296 seconds
  • Memory Usage 1,722KB
  • 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
  • (5)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