phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

Do bbcodes have ID's?

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.1/Ascreaus followed by 3.2/Arsia.

Do bbcodes have ID's?

Postby ecwpa » Fri May 11, 2012 9:19 pm

I'm trying to make a bbcode that emulates a carousel with boostrap/jquery. It works, but only if I use one carousel, since it uses its ID. Using it again creates multiple instances with the same ID.

My question is, there's a way to identify an instance of a bbcode? Something like {BBCODEID}? I could use something like [carousel=randomstring] but then I need to keep in mind all previews names i create for them. I could also use its post ID but that only works if there's 1 carousel per post.
Sorry for my bad english, still improving.
ecwpa
Registered User
 
Posts: 169
Joined: Mon Jan 24, 2005 2:10 am

Re: Do bbcodes have ID's?

Postby sajaki » Sat May 12, 2012 8:58 am

hi, thanks for that link, there's some amazing things in Bootstrap.
sajaki
Registered User
 
Posts: 48
Joined: Mon Jun 21, 2010 8:28 pm

Re: Do bbcodes have ID's?

Postby ecwpa » Thu May 17, 2012 3:55 am

Bump. Any help with this?
Sorry for my bad english, still improving.
ecwpa
Registered User
 
Posts: 169
Joined: Mon Jan 24, 2005 2:10 am

Re: Do bbcodes have ID's?

Postby brunoais » Thu May 17, 2012 5:31 am

BBcodes do have ID's, yes. (Code has an ID, bold has another id, ...)
Unfortunately, the custom BBCode system has some minor bugs and is quite limited because they wanted to make a system that is simple a quite generalist. For that, they has to ignore (or just didn't come to their mind) those small problems that comes with the system Sounds like you have to create your own BBCode in the sourcecode itself.
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: Do bbcodes have ID's?

Postby ecwpa » Fri May 18, 2012 3:16 am

Interesting, I guess I'll have to alter the elements creating IDs with javascript, not sure if it'll work. Maybe I should submit this as an RFC for 3.2
Sorry for my bad english, still improving.
ecwpa
Registered User
 
Posts: 169
Joined: Mon Jan 24, 2005 2:10 am


Return to [3.x] Discussion

Who is online

Users browsing this forum: Exabot [Bot], EXreaction and 16 guests