![]() |
User Font/Color Post Addon
This is my first ever Mod i've ever written, i'm very new to PHP and template modding so don't expect an Uber code :P
There was a thread released on a mod that allowed users to change the font color and font of their posts. with this addon your users will be able to choose how big their font will be. How it works: To prevent users from using overly sized fonts, i've tried to limit font sizes to just double figures, yes i know you can still put 72 for a huge font but i'm not advanced enough yet to provide a solution to this. What you need to do: Ok firstly Log into your ACP and create a new custom field. Option: Single Line Text Box Title: Post Font Size Description: Change the Size of your Post font here (EG 8,12,14). Private: NO Default Value: 12 Field Required: NO Searchable: NO Editable By Users: YES Max User Input: 2 Field Length: 3 Show on Memeber List: No Now Note Down the Field Number (example Field ID: 12) Next Open up you Postbit_legacy template and find the following: Code:
$post[message] Code:
<div id="post_message_$post[postid]"><if condition="$post['fieldX'] != ''> If your using the Mod for changing Color of text and font then do the following. Find: Code:
<div id="post_message_$post[postid]"><if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''"> Code:
<div id="post_message_$post[postid]"><if condition="$post['fieldX'] != '' OR $post['fieldX'] != '' OR $post['fieldX'] != ''"> Code:
<font style="font-family:$post[fieldX]; color:$post[fieldX];"></font> Code:
<font style="font-family:$post[fieldX]; color:$post[fieldX]; font-size: Enjoy! |
Creative, good work
|
thanks, i know its not something special but its a starting point of me learning to code properly. hopefully now i know this i can use it to master other things. its main purpose is an addon for the other hack. otherwise its only worth installing if you needed something like that.
|
Thanks!!!!
Me clicks install!! |
Hmm... i think it can be quite special :p
I'll try it, thanks. |
glad to see its come in useful ^_^
|
Thanks alot, Going to Install it :)
|
this cod only font size setting but dont change colour or font but thread title is user font color post add on :S:S:S help me
|
This mod will not change the color of your posts nor the font of posts, it'll only change the SIZE of the font.
|
All times are GMT. The time now is 07:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|