BBcode without closing tags

Support for PhpBB3. Post here to get help with any phpBB3 related issue here
There is no support here! Only Read Access!
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Locked
denisesballs
BBCoder II
BBCoder II
Posts: 9
Joined: 22 Apr 2010, 15:40

BBcode without closing tags

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

Code: Select all

[*]
I want to simply have something like [newbbcode] insert some specific html without having to follow it with [/newbbcode]. Thanks.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: BBcode without closing tags

Post by cisco007 »

i have never known of how to do that, but maybe Stoker know of a way!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3558
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: BBcode without closing tags

Post 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.
Board rules! No PM support
denisesballs
BBCoder II
BBCoder II
Posts: 9
Joined: 22 Apr 2010, 15:40

Re: BBcode without closing tags

Post 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.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: BBcode without closing tags

Post 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!
denisesballs
BBCoder II
BBCoder II
Posts: 9
Joined: 22 Apr 2010, 15:40

Re: BBcode without closing tags

Post 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.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: BBcode without closing tags

Post by cisco007 »

ok i was just making sure you undertood!
Locked