User Color/Font In Posts Editable Via Profile
Whats Up,
I was looking for something like this and couldnt find it for 3.6. But i do give most of the credit to gio~logist for the idea even though i knew how to do this, dont wanna look like im taking credit for something i didnt do.Its like his for 3.5 except i added a color wheel link pop up. I dont have alot of coding experience, but template mods are not hard. Just wanted to kinda share this.
Details: Allows users to edit their font color and their font type for when they post. It also puts a link where your users can find a colorwheel next to the description!
Installation: 5 Mins
First Thing You Need To Do:
Code:
PHP Code:
Go to User Profile Fields > Add New User Profile Field
Choose: Single-Line Text Box
Title: Font Color In Posts
Description: This will be your font color when posting. (Ex: #000000 is black)<br /> <a href="http://html-color-codes.info/" onclick="window.open('http://html-color-codes.info/');
return false;" rel="nofollow" target="newWin"><b>Click Here For Color Codes</b></a>
Max length of allowed user input: 7
Click Save!
Second Thing You Need To Do:
Code:
PHP Code:
Go to User Profile Fields > Add New User Profile Field
Choose: Single-Line Text Box
Title: Font In Posts
Description: This font will appear when posting. (Example: Verdana)
Max length of allowed user input: 15
Click Save!
Last Edit your postbit or postbit legacy Template whichever one you use.
Find this code:
Code:
Replace it with this code:
Code:
PHP Code:
<if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''">
<font style="font-family:$post[fieldX]; color:$post[fieldX];">$post[message]</font>
<else />
$post[message]
</if>
Be sure to edit the X's with whatever field these are or this will not work! To edit, go to:
Profile > Edit Profile and it will probably be somewhere towards the bottom.