News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Font size BBC parameters

Started by blow, August 12, 2010, 04:44:20 PM

Previous topic - Next topic

blow

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.

CapadY

I am affraid this can be done.
The whole SMF2 forum is build on px, that's one of the renewels
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Kermit

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\'
}
}';
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

blow

@Duncan85: But that changes only the dropdown box choices. How to change also the parameters in the codes? ( [size=X] )

Deaks

they should work normal, you should be able to use in your bbc, I have on my rc3 forum :)
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Advertisement: