How To Add Custom BBCodes? »  Show posts from    to     

Icy Phoenix


General Support - How To Add Custom BBCodes?



Cristianita [ Sat 23 Sep, 2017 00:48 ]
Post subject: How To Add Custom BBCodes?
I was posting a topic in my forum needed to add a table, and noticed that are not those bbcodes

I've looked around the search, but I didn't find the way to add my custom BBCodes...

This is the page:
5152411826

I added at the first space a BBCode code like this:
Code: [Hide] [Select]
[table border="1"][tr][td][/td]
[td][/td]
[/tr]
[tr][td][/td]
[td][/td]
[/tr]
[/table]

And added this code at the second one:
Code: [Hide] [Select]
<table border="1">
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>


When I pick "Send", this is the result
Quote:
Información
Debe especificar la etiqueta de BBCode

« Volver a Pagina previa

It means:
Quote:
information
You must specify the BBCode tag

«Back to previous page

I have no idea what is "BBCode Tag"


Informpro [ Tue 26 Sep, 2017 11:46 ]
Post subject: Re: How To Add Custom BBCodes?
The bbcode tag is the "name" of the bbcode, in the brackets, i.e.:

[the name is here]


Cristianita [ Tue 26 Sep, 2017 18:54 ]
Post subject: Re: How To Add Custom BBCodes?
Informpro wrote: [View Post]
in the brackets, i.e.:

[the name is here]
I'm so sorry what is "the brackets"? I don't know where should I write this tag


Mighty Gorgon [ Sun 01 Oct, 2017 11:49 ]
Post subject: Re: How To Add Custom BBCodes?
You cannot add multiple tags like you did...

Anyway TABLES are not part of standard BBCodes for a reason! It's not easy to create cells within tables making sure you close all tables correctly...

Follow the examples on that page... here is another one:

Code: [Hide] [Select]
BBCODE: [background={COLOR}]{TEXT}[/background]
HTML: <span style=\"background-color: {COLOR};\">{TEXT}</span>


Cristianita [ Mon 02 Oct, 2017 07:18 ]
Post subject: Re: How To Add Custom BBCodes?
Well, I know how to make tables using BBCode and HTML also... but I think is not a good idea to allow HTML in my forum, am I right? That's why I want to add this BBCode


Informpro [ Mon 02 Oct, 2017 11:49 ]
Post subject: Re: How To Add Custom BBCodes?
The issue is that, if someone doesn't properly close a table or a cell, the whole forum will look bad... And you can't easily check if they did a table properly or not.


Cristianita [ Mon 02 Oct, 2017 20:01 ]
Post subject: Re: How To Add Custom BBCodes?
oooh, I got it!

So, the only option is to use HTML, right?

Is not a risk to the forum? Because I have to make tables sometimes...


Informpro [ Mon 02 Oct, 2017 22:59 ]
Post subject: Re: How To Add Custom BBCodes?
You can enable HTML only for administrators. Then it's not much of an issue.


Cristianita [ Tue 03 Oct, 2017 01:20 ]
Post subject: Re: How To Add Custom BBCodes?
Yes, I can do that, and I will... Thanks, Informpro


Cristianita [ Tue 10 Oct, 2017 20:25 ]
Post subject: Re: How To Add Custom BBCodes?
I used to use a big titles in the beginning or my posts. There are some BBCodes (h1, h2, h3...) that make bigger the titles, and I'd like to know how can I add this BBCode to the forum.

Because they are not dangerous to the forum, right? Not like tables, for example...


Informpro [ Wed 11 Oct, 2017 11:38 ]
Post subject: Re: How To Add Custom BBCodes?
Nope, these aren't dangerous :). You can add those as bbcode, but you can also just change the size?


Cristianita [ Fri 13 Oct, 2017 02:16 ]
Post subject: Re: How To Add Custom BBCodes?
Quote:
but you can also just change the size?
Is this a question?

If yes... Well, I don't know how can I do that, but I guess you could help me


Informpro [ Fri 13 Oct, 2017 09:06 ]
Post subject: Re: How To Add Custom BBCodes?
Definitely! When you post a full message, you see a bot to select font / size / color right under the subject:

g13g2km

To make text big, here's how you do it:
jpq8vae9yd


Cristianita [ Sat 14 Oct, 2017 04:15 ]
Post subject: Re: How To Add Custom BBCodes?
Oh, I understood!!

Sorry... Yes, I know how to make the text bigger applying BBCode size and bold, and everything else...

But if I had a BBCode h1, h2, or h3, with different sizes and color, it could be easier and faster to post a message...


Informpro [ Wed 18 Oct, 2017 12:50 ]
Post subject: Re: How To Add Custom BBCodes?
Ok, I see what you mean. Do you want them to output actual <h2>, or something with a different size and color?


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