SOLVED How To Add Custom BBCodes?


Goto page Previous  1, 2

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

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?

Profile PM  
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 :oops:

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? :roll:

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

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.

Profile PM  
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. :oops:

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: [Download] [Hide] [Select]
[t1]{TEXT}[/t1]


In field HTML replacement, input this:
Code: [Download] [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

Subject: Re: How To Add Custom BBCodes?
aplauso Thanks, avatar Mighty Gorgon

Goto page Previous  1, 2

Page 2 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.4501s (PHP: 5% SQL: 95%)
SQL queries: 15 - Debug Off - GZIP Enabled