BBCodeBox3

prosilver | subsilver2

Willkommen und Guten Morgen, Guest  Beim nächsten Piep ist es zwischen 9:00 und 10:00 Uhr

It is currently Sun 26. Oct 2025, 10:19

All times are UTC + 1 hour [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Sat 1. Mar 2008, 15:54 
Administrator
User avatar

Posts: 427

Last 3 Topics:
Tabmenu Test
[Snippet] Avatar Ev...
[DEV] Zero and X-P...

Joined:
Sun 13. Jan 2008, 23:44

___________________________________________
________________________________________________
________________________________________________________


Anleitung zum Installieren des Plugins > Auswahlmenü für Schriftgröße in px


Dieses Plugin ermöglicht, die Schriftgröße in px statt, wie im Standard-phpBB3, in % anzugeben. In px kann man die Schriftgröße exakter steuern (das betrifft insbesondere die Schriftarten Spezial)und sie sieht unter allen Betriebssystemen und Browsern gleich groß aus. Ein weiterer Vorteil: Wenn man vom 2er auf das 3er Board konvertiert, brauchen keine MySQL-Korrekturen o.ä. durchgeführt zu werden, denn eine Schrift, die im 2er mit 18 px formatiert wurde, entspricht im 3er 18% der Normalgröße (also rel. winzig). Im "alten" 2er ist nämlich, wie hier auf phpbb.de (noch) "size=px" Standard.

Achtung: Wenn ihr auf einem aktiven 3er-Board schon viel mit der normalen 3er-%-Einstellung formatiert habt, tritt der umgekehrte Fall ein: Eine Schrift die auf 200% formatiert wurde, ist dann 200px groß (also riesig). Also entscheidet euch beizeiten. Ein wenig Nacharbeit ist warscheinlich nicht problematisch, zur Not könnte man eine SQL-Update-Anweisung machen. Dennoch, je weniger Nacharbeit, desto besser ;-)

Hier nun die Anleitung:

Öffnet

includes/bbcode.php

Findet

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


Ersetzt mit

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


Öffnet (Änderung pro Style nötig)

styles/xxxxx/template/bbcode.html

Findet

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


Ersetzt mit

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


Öffnet (Änderung pro Style nötig)

styles/xxxxx/template/posting_buttons.html

Findet

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>


Ersetzt mit (beliebig veränderbar > Höchstwert 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>


Öffnet

language/de/posting.php

Findet

Code:
   'BBCODE_F_HELP'            => 'Schriftgröße: [size=85]kleiner Text[/size]'


Ersetzt mit

Code:
   'BBCODE_F_HELP'            => 'Schriftgröße in px: [size=12]normaler Text[/size]',


Das wars

lg
4seven


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 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:
cron
POWERED_BY
[ Time : 0.011s | 15 Queries | GZIP : Off | Board-Version: 3.0.7 PL1 ]