How To Add Custom BBCodes? »  Show posts from    to     

Icy Phoenix


General Support - How To Add Custom BBCodes?



Cristianita [ Wed 18 Oct, 2017 20:25 ]
Post subject: Re: How To Add Custom BBCodes?
Informpro wrote: [View Post]
Ok, I see what you mean. Do you want them to output actual <h2>, or something with a different size and color?
Well, actually I want two of them: <h1> and <h2>. Usually the first one font is bigger than the second one, about 18px and 14px respectively.

But I notice that you refer to HTML code, not BBCode


Informpro [ Tue 24 Oct, 2017 15:24 ]
Post subject: Re: How To Add Custom BBCodes?
Yes, because HTML comes with title tags I wanted to know if you wanted these tags, or if you wanted your own versions with different mesurements?


Cristianita [ Tue 24 Oct, 2017 19:49 ]
Post subject: Re: How To Add Custom BBCodes?
Quote:
Yes, because HTML comes with title tags
I don't know what are you talking about... I wrote <h1>TITLE</h1> but it shows as a code, not a title... So I don't know what are you talking about definitely

Quote:
I wanted to know if you wanted these tags, or if you wanted your own versions with different mesurements?
Due I'm not sure what do you mean, I have to explain what I want to.

For example:
[h1] = Color red, bold, 18px
[h2] = Color black, bold, 14px

Does it answer your question?

But if this matter is very difficult or not convenient, better if I keep going without this tags. It's not a big deal, actually


Informpro [ Wed 25 Oct, 2017 11:15 ]
Post subject: Re: How To Add Custom BBCodes?
I wanted to ask if you wanted [h1] to translate to html <h1> or not, but now you've explained it.

The HTML h1/h2/... are not coloured, so you don't want to use them. I need to check if you can replace a bbcode template with another bbcode template.


Cristianita [ Wed 25 Oct, 2017 18:14 ]
Post subject: Re: How To Add Custom BBCodes?
Informpro wrote: [View Post]
I wanted to ask if you wanted [h1] to translate to html <h1> or not, but now you've explained it.

The HTML h1/h2/... are not coloured, so you don't want to use them. I need to check if you can replace a bbcode template with another bbcode template.

Thank you, Informpro... I hope this is not much problem.


Mighty Gorgon [ Sat 04 Nov, 2017 10:17 ]
Post subject: Re: How To Add Custom BBCodes?
avatar Cristianita, here is an example to get what you need:

In field BBCode usage, input this:
Code: [Hide] [Select]
[t1]{TEXT}[/t1]


In field HTML replacement, input this:
Code: [Hide] [Select]
<span style="color: #ff0000; font-size: 16px; font-weight: bold;">{TEXT}</span>


And when you use [t1]MY TITLE[/t1] you will get something like this:
MY TITLE


Cristianita [ Sun 05 Nov, 2017 05:54 ]
Post subject: Re: How To Add Custom BBCodes?
aplauso Thanks, avatar Mighty Gorgon




Powered by Icy Phoenix