vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   if condition="$forum[forumid] (https://vborg.vbsupport.ru/showthread.php?t=124531)

Mr.D 08-21-2006 10:16 AM

if condition="$forum[forumid]
 
I am trying this if statement for one forum and its working

Code:

<if condition="$forum[forumid] == 86">

but when i want to add one more it doesent work what ma i doing wrong?

Code:

<if condition="$forum[forumid] == 86,12">

peterska2 08-21-2006 10:19 AM

Code:

<if condition="in_array($forum[forumid], array(86,12))">
If you have more than one then you need to place it in an array.

Mr.D 08-21-2006 10:31 AM

i get this error when i whant to save the template

With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

peterska2 08-21-2006 10:36 AM

which version vB and which template?

I use that same code myself in version template across my 3.6.0 with no problems, but I'll check it out for you on the version and location that you are using it.

Mr.D 08-21-2006 10:42 AM

3.6.0 and the template is forumhome_forumbit_level2_post

peterska2 08-21-2006 10:47 AM

yeah, works fine. Of course it does help if I don't put I typo in it :(

I've edited the code above to remove the typo, you shouldn't have any problems now.

Mr.D 08-21-2006 10:49 AM

Thanks works good now


All times are GMT. The time now is 03:29 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.00933 seconds
  • Memory Usage 1,716KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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