Large Font

Fixed dimension for everybody - Large Font

Fixed dimension for everybody

by Astore » Sat Apr 21, 2018 10:10 pm

Hi,since a couple of days I'm trying this extension with pleasure.

It could be interesting have the option to fix a new dimension for all the board and for all the users, leaving to them the possibility to change.
User avatar
Astore
Registered User
Posts: 28
Joined: Sun Jun 15, 2014 9:26 am

Re: Fixed dimension for everybody

by HiFiKabin » Sun Apr 22, 2018 9:40 am

The easiest way to achieve this for all members, future members and guests is to do the following.

Disable the extension and delete its data.

then using a text editor (not a word processor or dreamweaver type program)

OPEN

hifikabin/largefont/migrations/v1x/release_1_0_0_schema.php

FIND

Code: Select all

					'user_font'	=> array('BOOL', 0),
REPLACE WITH

Code: Select all

					'user_font'	=> array('BOOL', 1),
SAVE>UPLOAD>ENABLE

That will give everyone the default font size of 130% which they can then adjust/turn off as they wish.

Best to warn your users that this will happen as any settings they have made will be removed when you enable the edited extension.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4116
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Fixed dimension for everybody

by Astore » Sun Apr 22, 2018 4:45 pm

Thank you for your answer ;)

just two questions:

1) what will happen when I will install e new versione of phpBB?

2) what abour if I need a dimension of 110%?
User avatar
Astore
Registered User
Posts: 28
Joined: Sun Jun 15, 2014 9:26 am

Re: Fixed dimension for everybody

by HiFiKabin » Sun Apr 22, 2018 4:57 pm

1) Nothing in the extension will change (ie the default font size will be as you have set it) If you disable and delete data the extension will obviously not work and the board will be back to the default settings.

2) Before you do what I posted above, you will need to do this edit as well.

OPEN

hifikabin/largefont/migrations/v1x/release_1_0_1_schema.php

FIND

Code: Select all

					'user_font_size' => array('UINT', '104'),
REPLACE WITH

Code: Select all

					'user_font_size' => array('UINT', '102'),
That, together with the previous post will switch large font ON for all with a default size of ~110%

(I know 102 seems nothing like 110% but its the way the stylesheet works. 102 WILL increase the font size to about 110%)
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4116
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact: