Quote:
Originally Posted by Alfa1
Yes, that would be handy!
Searching templates for the code
PHP Code:
<div id="post_message_$post[postid]">$post[message]</div>
shows two templates that contain this code:
postbit and postbit_legacy
postbit works.
I only want members to be able to set font type, color and italic. The field number for this are:
font type: 23
color: 24
italic : 25
I have color and italic working, but not font type.
My current code is:
PHP Code:
<!--Custom Font-->
<if condition="$post['field23'] OR $post['field24'] OR $post['field25']">
<span style="font: $post[field23]; color: $post[field24];font-style: $post[field25];">$post[message]</strong></span>
<else />
$post[message]
</if>
<!--/Custom Font-->
Please advise.
Does higher / lower case matter when defining fonts?
|
Yes the code shows up in two templates because it depends on which you use Postbit or postbit legacy, this option can be toggled in vBOptions.
As for your problem, the way the code works it HAS to have the the size code in there. my suggestion to is leave the code the way it is and change the font size PX to the desired size you want like so:
Code:
<span style="font: 15px $post[fieldXX]; color: $post[fieldXX]; font-weight: $post[fieldXX]; font-style: $post[fieldXX]; text-decoration: $post[field17];">$post[message]</strong></span>
OR
You can also still make the profile field, but only make 1 option like 15 or whatever. Then set it to default first option and make it so the member can not edit. The first option might be easier.