Back to vBulletin 4.x Template Modifications

Default Post Color
Mod Version: 1.00, by Dave

vB Version: 4.0.3 Rating: (3 votes - 5.00 average) Installs: 13
Released: 17 Jun 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

I could only find bad descriptions of this mod in this section so I decided to make one with a better explanation.

Description: Let users have a default font color of their text in a post. (Also possible for default font size and family.)

Time needed: A few minutes.

How to:

1) First login into the admin cp and go to User Profile Fields > Add New User Profile Field

2)
Title: Post color
Description: Please fill in a color code in the box. Example: #FF0909
Uncategorized
Default Value: (Leave empty or fill in a color code)
Max length of user input: 7
Field length: 7
Profile field type: Single-line text box

The other options are up to you.



3) Press save and go to User Profile Field Manager to check the field number and write it in a notepad or something.


4) Now go to Styles & Templates > Style Manager > Open the skin you want the default color / font or size in > Postbit templates > Postbit

5) Find this:
HTML Code:
<blockquote class="postcontent restore">
	{vb:raw post.message}
</blockquote>
And replace with this:
HTML Code:
<blockquote class="postcontent restore">
	<font color="{vb:raw post.fieldX}">{vb:raw post.message}</font>
</blockquote>
You have to replace the X with your own field number.

6) Save and do step 5 for postbit_legacy too.

That's it!

You can also replace color with size or family but you will have to edit the user profile field.
Best is to use multiple-selection menu for font family.

Download

No files for download.

Similar Mods

Default Post Icons For ANY Background Color vBulletin Smilie Sets
Default Font/Size/Color in a Post. vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024