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