Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 14:43

All times are UTC + 1 hour




Post new topic TOPIC_LOCKED  [ 1 post ] 
Author Message
PostPosted: 01 Oct 2011, 18:17 
Offline
Tiptop
Tiptop
User avatar

Joined: 11 Feb 2008, 11:49
Posts: 241
[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:
'size'        => '<span style="font-size: $1%; line-height: normal">$2</span>',


replace with

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


open (counts for both standard-styles)

styles/xxxxx/template/bbcode.html

find

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


replace with

Code:
<!-- 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:
<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:
<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>


Quote:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic TOPIC_LOCKED  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.010s | 23 Queries | GZIP : Off ]