vBulletin Modifications

How to limit / select the numbers of colors in BB Code ?

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 10-21-2006, 09:55 AM   #1
vB Newbie
Join Date: Sep 2006
DigitALL is on a distinguished road

Question How to limit / select the numbers of colors in BB Code ?

Hello,

I have searched this forum but could not find something related to the issue I have...

I have dark and light skins installed and when posting, if it is used the default text color, the post appears fine under each skin.
Here is my problem: for example, a member posts a text with grey color text to have a better contrast under the dark skin he prefers. But under a light skin where the background is light grey, the same text could be hardly seen.
Example: this message is written in default color but if you use "this color" or "this color" it is not so visible anymore.
For that reason I have disabled the the "Allow Color BB Code" from ACP/Options/BB Code Settings so the members could post only in a default color. This looks fine but many members told me that they want the colors back, or at least few of them.
I found that there are few colors that could be used under all skins.

How can I edit the color palette for text and use only the colors I want? The palette has currently 40 colors displayed. Is there a hack or info on how to control these colors, or make it to be only 10 or 12 colors, please?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10-27-2006, 02:05 PM   #2
vB Newbie
Join Date: Sep 2006
DigitALL is on a distinguished road

Arrow

I am surprised that nobody replied to this request. This is the vBHackers right?
The collor palette provided by vBulletin contains many colors that probably are never used. It is nice of course to have plenty of colors but why not provide support on how to adjust the pallete for your needs? Even on the default skin, some colors are not readable.
Also, it amazes me that there is no hack or some info on any of the related forums on how to edit/change the color pallete.

Anyway, I did some trial and error and wish to share it, hopefully somebody will come with more complete info on how to do it, or why not, a nice hack. I will post it in other similar forums too.

It was suggested to look into "vbulletin_textedit.js" and look for color HEX defintion. The code fragment is:

You must first be a registered member to view any code.
I started to change the colors definiton and noticed the palette it still display 40 squares but some colors are the same. Then I replaced the word "White" with "DeepSkyBlue" but with the same HEX and noticed that instead of 40 colors palette, I have 39.
I went further with the mods and I currently have only 12 colors left. I realize that this is just trial and error.

I have finalized the script to this form:

You must first be a registered member to view any code.
Obviously this script relates to another script. I wanted to get rid of black and in fact it is not in the pallete anymore but it still is in the reference color. See the final in the attached image. The colors are OK now to be used under multiple skins BUT the black still appears under "A" (color selection) and by just pressing the button without displying the palette, the black is still there.



Hopefully these changes will gives some ideas to others and see something more...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Cp Critical Error Nick R Site Feedback 6 08-03-2006 09:39 AM
Websites to upload Your files . navid Off Topic 7 06-12-2006 07:09 PM


All times are GMT -3. The time now is 09:26 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)