Log in

View Full Version : Mini Mods - Default Post Color


Dave
06-16-2010, 10:00 PM
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.

https://vborg.vbsupport.ru/external/2010/06/23.png

3) Press save and go to User Profile Field Manager to check the field number and write it in a notepad or something.
https://vborg.vbsupport.ru/external/2010/06/24.png

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:

<blockquote class="postcontent restore">
{vb:raw post.message}
</blockquote>


And replace with this:

<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.

Kolbi
06-17-2010, 11:20 AM
Nice description :)

The font tag is an old standard I guess?

Wouldn?t there be a modern xhtml version?

merk_aus
06-17-2010, 02:42 PM
I am sure Kolbi if you want the xhtml version you could easily do it for your site. To the Original Poster thanks for this it is greatly appreciated.

1320Nation
12-26-2011, 07:53 PM
This mod works perfect on my 4.1.9 version board.

However I Replaced the text the developer used in the Description area with the following text:

This will be your font color when posting. (Ex: #FFFFFF is white)<br /> <a href="http://html-color-codes.info/" onclick="window.open('http://html-color-codes.info/');
return false;" target="newWin"><b>Click Here For Color Codes</b></a>

You will see what this does is add a color wheel type option which will allow your members to easily come up with ANY color they choose. I have a Dark Style board, so if you have a bright color board you might change the text (Ex: #FFFFFF is white) to (Ex: #000000 is black).

With this added info you should end up with a nice clean looking mod to your board. :up:

Webrunner
12-28-2011, 01:13 PM
is there a way to make this working in the social groups?

HHelp1
12-28-2011, 02:00 PM
May any 1 here show me some SS please? :/

doctorsexy
12-28-2011, 05:59 PM
May any 1 here show me some SS please? :/

+1 on that....

Webrunner
02-19-2012, 05:37 AM
Since this mod is just about adding standard vb profile fields, what would be the point in showing screenshots.
The text in post just change into color the user entered in these fields.
I myself also added font and font size.