1

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!...

Re: ¿Font size in PunBB?

that you cant change unfortunately big_smile

3

Re: ¿Font size in PunBB?

And adding BBCodes in .php  be possible?

Re: ¿Font size in PunBB?

Write extensions.

5

Re: ¿Font size in PunBB?

Can you make these extension?

Re: ¿Font size in PunBB?

No time, sorry.

Re: ¿Font size in PunBB?

Dimkalinux can you tell what hook should be used for creating bbc extensions? I couldn't find find it myself

8 (edited by Kushi 2012-02-17 19:04)

Re: ¿Font size in PunBB?

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.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

9 (edited by Abir 2012-02-17 14:19)

Re: ¿Font size in PunBB?

I will go for it after my Exam hmm big_smile

Re: ¿Font size in PunBB?

Thanks Kushi smile I'll try it out ;D

11

Re: ¿Font size in PunBB?

Good Luck @Dr. Deejay big_smile big_smile

12

Re: ¿Font size in PunBB?

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>';
If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

13

Re: ¿Font size in PunBB?

Thanks Kushi, you are really very good, very thanks big_smile

Re: ¿Font size in PunBB?

exacto jaizu es como el mycode... creare una que puedas crear MyCodes...

PD: Jaizy and I speak Spanish

15 (edited by Kushi 2012-02-18 11:12)

Re: ¿Font size in PunBB?

http://dl.dropbox.com/u/56038890/punbb/fontsize.zip
http://i.minus.com/ip7SkgRHLaVNI.png
http://i.minus.com/iMLWRZgMz5l6N.png
http://i.minus.com/i9T1YGQns75cy.PNG

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

16

Re: ¿Font size in PunBB?

fancybox?
I can´t viewn the font size icon in the help and in the BBCode buttons

17

Re: ¿Font size in PunBB?

pardon, wrong link hmm
http://dl.dropbox.com/u/56038890/punbb/fontsize.zip

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

18

Re: ¿Font size in PunBB?

Why don't you create a topic for your extension Kushi? I've been looking for something like this for hours!

19

Re: ¿Font size in PunBB?

I want to change size permanently in source. Where do I go?

20

Re: ¿Font size in PunBB?

I think that the style file. Search for code like this

body {
    font-size: 100%;
}
Parserus, UserAgentAnalyzer.
I speak only Russian  :P

21

Re: ¿Font size in PunBB?

Visman wrote:

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 ?