Edit Profile Customize Font Size

Is there a way I can limit the font size from 8 to 16.. not 24.  24 is a bit ridiculous. If they choose 24 for Link for example, it will explode the header and footer and make it very difficult to read. I was thinking about removing the font size completely but then why not just limit from 8 to 16 if it's possible.  Any idea?

 

fontc.png

Quote · 18 Oct 2010

If it's easier to remove the font size than adjusting the font size limit, I can do that.  Not sure where to do that.  Thanks!

Quote · 18 Oct 2010

modules/boonex/profile_customize/classes/BxProfileCustomizeTemplate.php

At about line 754 you will find this.

'inputs' => array(
'size' => array(
'type' => 'select',
'name' => 'size',
'values' => array(
-1 => _t('_bx_profile_customize_default'),
8 => '8',
9 => '9',
10 => '10',
11 => '11',
12 => '12',
14 => '14',
16 => '16',
18 => '18',
20 => '20',
22 => '22',
24 => '24',
),


Those are the values. Remove what you don't want.

https://www.deanbassett.com
Quote · 18 Oct 2010

You'll have to edit the Function that displays that form.

Open /modules/boonex/profile_customize/classes/BxProfileCustomizeTemplate.php

Search for:

function _customPageFont

Then remove the Options from the select array seen there.

8 => '8',
9 => '9',
10 => '10',
11 => '11',
12 => '12',
14 => '14',
16 => '16',
18 => '18',
20 => '20',
22 => '22',
24 => '24',

 

EDIT:  lol while i was typing this deano pumped his answer in there...

sup
Quote · 18 Oct 2010

AWESOME!  two answers in one! :D  thanks Deano and Martinboi!!

Quote · 18 Oct 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.