Customizing SMF > Tips and Tricks
Default posting color
[Unknown]:
Well, if you read my tutorial on how to create custom profile fields, that will show you how to do the basics of it.
Then all you have to do is something like this in the postbox sub template under the Post template, find:
if ($context['show_bbc'])
Add just above that:
if ($message == '')
$message = '[color=' . $options['post_default_color'] . ']<br /><br />[/color]';
This way, even if you upgraded, it would keep working - as long as you make things changes to a new theme - not default.
-[Unknown]
PlayGroundFor.us:
Thank you for your help and I will read the tutorial.
Navigation
[0] Message Index
[*] Previous page
Go to full version