vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   if conditions in Custom BB Code? (https://vborg.vbsupport.ru/showthread.php?t=139656)

Tim Skellett 02-17-2007 01:20 PM

if conditions in Custom BB Code?
 
I tried setting an if condition in a Custom BB Code, but the if condition was not parsed at all, and in fact simply sent on to the end-user browser as if it was unrecognised code, i.e., the if condition was typed out in the source text of the page, and only the parameter was shown in the page, like so:

Shown on page: ... yada ....
Shown in "View Source" of browser window: <if condition="abcde">....yada</if>

So my question is: is there any way I can build an if condition into a Custom BB Code?

I also tried out building an if condition using Replacements (two, one for the <if=... part and one for the </if part), but I ran into exactly the same problem as with the Custom BB Code. The if condition was not parsed and was printed out as before.

Many thanks in advance for all help.

thincom2000 03-25-2007 05:56 AM

If you haven't found it yet, see CES [anything] BB-Code. You can nest BB-Codes in Custom BB-Code Replacement texts, so you can use [anything] as the engine to make your conditionals parse in another BB-Code at the very least.


All times are GMT. The time now is 04:01 PM.

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.01079 seconds
  • Memory Usage 1,706KB
  • 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
  • (2)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