Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: blow on August 12, 2010, 04:44:20 PM

Title: Font size BBC parameters
Post by: blow on August 12, 2010, 04:44:20 PM
I upgraded my forum to RC3 (from RC1.2) and now I noticed the font size parameters are like [size=18pt] instead of what it was like before: [size=3].

Can someone help me to keep the "=1", "=2", "=3" form like it used to be?

Thanks.
Title: Re: Font size BBC parameters
Post by: CapadY on August 12, 2010, 05:27:57 PM
I am affraid this can be done.
The whole SMF2 forum is build on px, that's one of the renewels
Title: Re: Font size BBC parameters
Post by: Kermit on August 13, 2010, 08:59:04 AM
Quote from: capady on August 12, 2010, 05:27:57 PM
I am affraid this can be done.
The whole SMF2 forum is build on px, that's one of the renewels

Nope,as far as i get,it can be done easily

./Themes/default/GenericControls.template.php

Code (find) Select

// Font sizes anyone?
if (!isset($context['disabled_tags']['size']))
echo ',
{
sType: \'select\',
sName: \'sel_size\',
oOptions: {
\'\': ', JavaScriptEscape($txt['font_size']), ',
\'1\': \'8pt\',
\'2\': \'10pt\',
\'3\': \'12pt\',
\'4\': \'14pt\',
\'5\': \'18pt\',
\'6\': \'24pt\',
\'7\': \'36pt\'
}
}';


Code (replace) Select

// Font sizes anyone?
if (!isset($context['disabled_tags']['size']))
echo ',
{
sType: \'select\',
sName: \'sel_size\',
oOptions: {
\'\': ', JavaScriptEscape($txt['font_size']), ',
\'1\': \'1\',
\'2\': \'2\',
\'3\': \'3\',
\'4\': \'4\',
\'5\': \'5\',
\'6\': \'6\',
\'7\': \'7\'
}
}';
Title: Re: Font size BBC parameters
Post by: blow on August 13, 2010, 07:38:18 PM
@Duncan85: But that changes only the dropdown box choices. How to change also the parameters in the codes? ( [size=X] )
Title: Re: Font size BBC parameters
Post by: Deaks on August 30, 2010, 01:33:10 PM
they should work normal, you should be able to use in your bbc, I have on my rc3 forum :)