The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
User Color/Font In Posts Editable Via Profile Details »» | |||||||||||||||||||||||||||
User Color/Font In Posts Editable Via Profile
Developer Last Online: Aug 2012
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:
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;" 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:
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! Find this code: Code:
$post[message] Code:
<if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''"> <font style="font-family:$post[fieldX]; color:$post[fieldX];">$post[message]</font> <else /> $post[message] </if> Profile > Edit Profile and it will probably be somewhere towards the bottom. PLEASE CLICK INSTALL ENJOY! SCREENSHOT: The Red Blur Is The Link For The Colorwheel Show Your Support
|
Comments |
#42
|
|||
|
|||
Quote:
|
#43
|
||||
|
||||
does is support font size ?
|
#44
|
|||
|
|||
This is wonderful, I cannot tell you how helpful this is I was pulling my hair out trying to make font colors work.
Thanks so much for this. |
#45
|
||||
|
||||
This works for 3.8 also. I am trying to figure out how to add font size. And, you can do a dropdown menu for the font. It makes it much easier for the members to choose a font.
|
#46
|
||||
|
||||
Not sure if anyone can help me here. I did get this to work on 3.8.1. I tried to add font size and got some success, but not complete success.
I create a profile field called font size. I did a drop down menu just like I did for the font. A little different than this mod, but it makes it much easier for the members instead of writing in the font. Anyway. I changed the code to the following PHP Code:
$post[message] in postbit or postbit legacy It works if you post in the quick reply, but when the page is refreshed, it goes back to normal. It is not staying the font size. I am not a coder at all. I just tried to duplicate what was done for the other two fields. If anyone can tell me what is wrong with the code, I would greatly appreciate it. |
#47
|
|||
|
|||
Thanks, i like it a lot
|
#48
|
|||
|
|||
First off I'm not at all a coder but messed with this for days till I got font size to work.. I made a 3rd custom field for the font size and added to the code.. Its working fine for me..
Title = Font Size In Posts Description = This font size will appear when posting. Example: 2pt, 3pt, 4pt, 5pt, 6pt, 7pt Max length = 15 Field Length = 25 Single-Line Text Box Field Required = no Field Searchable on Members List = yes Show on Members List = yes Last Edit your postbit or postbit legacy Template whichever one you use. Find this code: Code: $post[message]Replace it with this code: Code: Code:
<div id="post_message_$post[postid]"> $ad_location[ad_showthread_firstpost_start] <if condition="$post['fieldx']!= '' OR $post['fieldx']!= '' OR $post['fieldx']!= ''"> <font style="font-family:$post[fieldx];color:$post[fieldx];font style="font-size:$post[fieldx];">$post[message]</font> <else /> $post[message] </if> </div> When you edit the font size in usercp enter value like this <font size = 3pt> Not sure if you need the pt or not but it works for me.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|