vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to use 1 bbcode to get the information of 3 bbcodes ? (https://vborg.vbsupport.ru/showthread.php?t=184731)

ishare 07-08-2008 04:27 PM

How to use 1 bbcode to get the information of 3 bbcodes ?
 
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 04:57 PM

You can only get 2 pieces of information, the option and the parameter: [bbcode={option}]{param}[/bbcode]

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

ishare 07-08-2008 05:21 PM

Thank you very much for your kind relation and quick response sockwater.
Regards

Eikinskjaldi 07-09-2008 12: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

[movie=year;genre]cast[/movie]

or something similar.

then explode the params in the handler.


All times are GMT. The time now is 10:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01362 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete