vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   vB4 Template Conditionals List (https://vborg.vbsupport.ru/showthread.php?t=231525)

rbc 10-11-2017 05:59 PM

What do i wrong here ? :eek:

HTML Code:

<vb:if condition="is_member_of($bbuserinfo, 1) AND THIS_SCRIPT == 'commerce_cart'">
<div align="right" style="position:relative; top:-25px !important; bottom:-15px; float: right;
    clear: left;"
>

<vb:else />
BlaBla
</vb:if >

thanx :)

MarkFL 10-11-2017 06:23 PM

I would use the condition:

HTML Code:

$show['guest']
to check if a user isn't a logged in registered member. It doesn't require an additional query. ;)

rbc 10-12-2017 08:51 AM

Oh yes, thanks for your hint Mark :up:

wraggster 02-22-2020 05:48 PM

I need to have a conditional that shows only on the vbcms index page only, can this be done ?

Bulent Tekcan 04-05-2020 03:26 PM

Hello,

Is it possible to remove adsense code spesific thread ?

Regards

Bulent Tekcan 04-27-2020 03:51 PM

Quote:

Originally Posted by Bulent Tekcan (Post 2602484)
Hello,


Is it possible to remove adsense code spesific thread ?


Regards




Nobody ???

abcde 08-09-2020 08:32 PM

Code:


<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if>

I tried this but doesnt seems to work anymore.

z3r0 08-10-2020 06:31 AM

Quote:

Originally Posted by abcde (Post 2603709)
Code:


<vb:if condition="$forum[forumid] == x">Show this if forum id is x</vb:if>

I tried this but doesnt seems to work anymore.

Try this instead.

Code:

<vb:if condition="$GLOBALS['forumid'] == x">Show this if forum id is x</vb:if>

abcde 08-27-2020 01:51 PM

Quote:

Originally Posted by z3r0 (Post 2603710)
Try this instead.

Code:

<vb:if condition="$GLOBALS['forumid'] == x">Show this if forum id is x</vb:if>

thanks

Scalemotorcars 10-13-2020 08:14 PM

And thanks from me as well. This worked perfectly...


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

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01813 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete