[Snippet] Menu for Font-Size in px

Little Mods and Snips 3

[Snippet] Menu for Font-Size in px

Postby Sekuro » 01 Oct 2011, 18:17

[Snippet] Menu for Font-Size in px ( 4seven/2008 )

Demo: http://4seven.kilu.de/forum/phpbb3/post ... =post&f=16

Hint: It's only good if u have a relative new board, bcs. all size-formattings u posted before can go very big. so u must re-edit the old-sized post by hand.

Instruction

open

includes/bbcode.php

find

Code: Select all
'size'        => '<span style="font-size: $1%; line-height: normal">$2</span>',


replace with

Code: Select all
'size'        => '<span style="font-size: $1px; line-height: normal">$2</span>',


open (counts for both standard-styles)

styles/xxxxx/template/bbcode.html

find

Code: Select all
<!-- BEGIN size --><span style="font-size: {SIZE}%; line-height: normal">{TEXT}</span><!-- END size -->


replace with

Code: Select all
<!-- BEGIN size --><span style="font-size: {SIZE}px; line-height: normal">{TEXT}</span><!-- END size -->


open (counts for both standard-styles)

styles/xxxxx/template/posting_buttons.html

find

Code: Select all
<span class="genmed nowrap"><select style="height:22px" class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 0;" onmouseover="helpline('f');" onmouseout="helpline('tip');">
            <option selected="selected" value="">{L_FONT_SIZE}</option>
            <option value="50">{L_FONT_TINY}</option>
            <option value="85">{L_FONT_SMALL}</option>
            <option value="100">{L_FONT_NORMAL}</option>
            <option value="150">{L_FONT_LARGE}</option>
            <option value="200">{L_FONT_HUGE}</option>
            </select></span>


replace (change as u want. but > important: max size is 200 (px))

Code: Select all
<span class="genmed nowrap"><select style="height:22px" class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 0;" onmouseover="helpline('f');" onmouseout="helpline('tip');">
       <option selected="selected" value="">{L_FONT_SIZE}</option>
       <option value="6">6</option>
       <option value="8">8</option>
       <option value="10">10</option>
       <option value="12">12 Normal</option>
       <option value="14">14</option>
       <option value="16">16</option>
       <option value="18">18</option>
       <option value="20">20</option>
       <option value="24">24</option>
       <option value="28">28</option>
       <option value="30">30</option>
       <option value="40">40</option>
       <option value="60">60</option>
       <option value="80">80</option>
       <option value="100">100</option>
       <option value="150">150</option>
       <option value="200">200</option>
</
select></span>


maybe u want to change the description for this bbcode in

language/xxx/posting.php

its name is 'BBCODE_F_HELP'


Clear all Board-, Template-, Style- and Browser-Caches
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900


Return to Snip Cl@ss III

Who is online

Users browsing this forum: No registered users and 1 guest

cron