Topic: ¿Font size in PunBB?
Hello!
I wanted to know how to increase the font size when creating a Topic
example:
[size = large] Message [/ size]
Greetings!...
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.4 troubleshooting → ¿Font size in PunBB?
Hello!
I wanted to know how to increase the font size when creating a Topic
example:
[size = large] Message [/ size]
Greetings!...
that you cant change unfortunately
And adding BBCodes in .php be possible?
Write extensions.
Can you make these extension?
No time, sorry.
Dimkalinux can you tell what hook should be used for creating bbc extensions? I couldn't find find it myself
create /extension/fontsize folder put there this manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">
<extension engine="1.0">
<id>fontsize</id>
<title>fontsize</title>
<description>-</description>
<author>-</author>
<version>1.5</version>
<minversion>1.4</minversion>
<maxtestedon>1.4.2</maxtestedon>
<hooks>
<hook id="ps_preparse_tags_start"><![CDATA[
$tags[] = 'size';
$tags_opened[] = 'size';
$tags_closed[] = 'size';
$tags_inline[] = 'size';
$tags_trim[] = 'size';
]]></hook>
<hook id="ps_do_bbcode_replace"><![CDATA[
if (!$is_signature) {
$pattern[] = '#\[size=([6-9]{1}|[1-40-9]{2})](.*?)\[/size\]#ms';
$replace[] = '<span style="font-size: $1px !important; line-height: $1px !important;">$2</span>';
}
]]></hook>
</hooks>
</extension>
It shall work for [size=6] to [size=48]. But You can change it in regular expression.
Sorry, no time for creating button for pun_bbcode.
I will go for it after my Exam
Thanks Kushi I'll try it out ;D
Good Luck @Dr. Deejay
Got it
$pattern[] = '#\[size=([6-9]{1}|[1-40-9]{2})](.*?)\[/size\]#ms';
$replace[] = '<span style="font-size: $1px !important; line-height: $1px !important;">$2</span>';
Thanks Kushi, you are really very good, very thanks
exacto jaizu es como el mycode... creare una que puedas crear MyCodes...
PD: Jaizy and I speak Spanish
http://dl.dropbox.com/u/56038890/punbb/fontsize.zip
fancybox?
I can´t viewn the font size icon in the help and in the BBCode buttons
pardon, wrong link
http://dl.dropbox.com/u/56038890/punbb/fontsize.zip
Why don't you create a topic for your extension Kushi? I've been looking for something like this for hours!
I want to change size permanently in source. Where do I go?
I think that the style file. Search for code like this
body {
font-size: 100%;
}
I think that the style file. Search for code like this
body { font-size: 100%; }
Sorry.
I mean for posting. The font is small. And it will be stressful to always have to change font size everytime someone wants to post.
What font-size do I edit in CSS?
And for example, if the current font-size is: 1.084em, what do I change it to, in order to be size=13 ?
PunBB Forums → PunBB 1.4 troubleshooting → ¿Font size in PunBB?
Powered by PunBB, supported by Informer Technologies, Inc.