PDA

View Full Version : How to use 1 bbcode to get the information of 3 bbcodes ?


ishare
07-08-2008, 05:27 PM
Hi all,

I try to make a custom newthread template with bbcodes.

I have 3 different custom bbcodes.

1st bbcode ( [year] ) : Enter the release date of the movie
2nd bbcode ( [cast] ) : Enter the movie cast info
3rd bbcode ( [genre] ) : Enter the genre info

There will be a custom icon in message editor (newthread.gif). So when user click this icon, it will ask above questions. And after the user replied the questions, it will automatically add the content of above 3 custom bbcodes.

Is that possible ? Is it possible to use just 1 bbcode at message editor to get the information of 3 different bbcodes ?

Thanks in advance

sockwater
07-08-2008, 05:57 PM
You can only get 2 pieces of information, the option and the parameter: {param}

If you want to do anything more, you have to use plugins to handle the bbcode.

ishare
07-08-2008, 06:21 PM
Thank you very much for your kind relation and quick response sockwater.
Regards

Eikinskjaldi
07-09-2008, 01:26 AM
But you can parse the option so that it contains more than one. Decide on a separator, fir instance a semicolon,

and do

cast

or something similar.

then explode the params in the handler.