Page 1 of 1
BBcode without closing tags
Posted: 15 Jun 2010, 18:17
by denisesballs
Hey all,
Apologies if this has already been covered or if this is the wrong Forum. Does anyone know of a way to create a custom bbcode without an opening and closing tag? For instance like the stock bullet bbcode:
I want to simply have something like [newbbcode] insert some specific html without having to follow it with [/newbbcode]. Thanks.
Re: BBcode without closing tags
Posted: 15 Jun 2010, 18:24
by cisco007
i have never known of how to do that, but maybe Stoker know of a way!
Re: BBcode without closing tags
Posted: 15 Jun 2010, 19:31
by Stoker
If you did that, how would your users know when the bbcode ends?
You cant do it with the custom bbcode system. But you can probably hardcode it, that is only if you know how.
Re: BBcode without closing tags
Posted: 15 Jun 2010, 23:21
by denisesballs
Stoker » 15 Jun 2010, 19:31 wrote:If you did that, how would your users know when the bbcode ends?
You cant do it with the custom bbcode system. But you can probably hardcode it, that is only if you know how.
Well they wouldn't really need to know when the bbcode ends. It's really for a custom bbcode I'm making to make html tables. This particular bbcode would be for the </tr> or new row HTML. I'd be a lot nicer to have [newrow] instead of [newrow][/newrow] with nothing between the tags.
From the searching I've done, it looks pretty hard to hard code bbcodes. Oh well, I'll do a little more brainstorming I guess.
Re: BBcode without closing tags
Posted: 15 Jun 2010, 23:34
by cisco007
like Stoker said you cannot do that with custom bbcodes, have you tried to create a bbcode without a closing tag? you will always get an error. Like you were told previously it would have to be hardcoded withing the template and/or .php files for it to work!
Re: BBcode without closing tags
Posted: 16 Jun 2010, 01:20
by denisesballs
cisco007 » 15 Jun 2010, 23:34 wrote:like Stoker said you cannot do that with custom bbcodes, have you tried to create a bbcode without a closing tag? you will always get an error. Like you were told previously it would have to be hardcoded withing the template and/or .php files for it to work!
Yes, I understood his answer...I was answering his question to me.
Re: BBcode without closing tags
Posted: 16 Jun 2010, 01:30
by cisco007
ok i was just making sure you undertood!