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)

ICannt.org 06-28-2010 06:40 AM

Quote:

Originally Posted by BBR-APBT (Post 1941139)
Show is every forum but one: Remember to change x
Code:

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

Show in several forums:
Code:

<vb:if condition="in_array($forum['forumid'], array(1,2,3))">Show this to forum 1, 2 and 3</vb:if>

Hello all,

How would I be able to make a mix of this? ie: Show in all forums except for 40, 41, and 42?

Cheers

egyptsons 06-28-2010 11:19 AM

Quote:

Originally Posted by ICannt.org (Post 2060895)
Hello all,

How would I be able to make a mix of this? ie: Show in all forums except for 40, 41, and 42?

Cheers

I want to know how to do that too
coz the old conditional not work also the new one

BirdOPrey5 06-30-2010 02:30 AM

I am curious if there is a conditional that I can use in the threadbit or forumhome template that will let me display X if a certain forum is being displayed...
$forum[forumid] doesn't work in the threadbit template, it has no value at all... is there an alternative way? Basically I want to only display something if forumdisplay.php?f=2 is the page I'm on.

kether1 07-12-2010 08:07 PM

subscribe.
K

RobbieZ 07-14-2010 09:36 AM

Show Moderator of one forum: Remember to change x
Code:

<vb:if condition="can_moderate($forum['x'])">Show this if moderator is moderator of the forum with the id of x</vb:if>
This condition does not work. Shows in all forums and not just 'x' !!!

ubcforums 07-15-2010 06:12 PM

Hi guys..I have a donators group,
how can I show something only in the postbit of donators group list ?

Thanks :)

BirdOPrey5 07-15-2010 06:45 PM

Quote:

Originally Posted by ubcforums (Post 2069616)
Hi guys..I have a donators group,
how can I show something only in the postbit of donators group list ?

Thanks :)

Edit the postbit (or postbit_legacy) and add

Code:

<vb:if condition="is_member_of($bbuserinfo, 9)">
Text or HTML to show to paid usergroup
</vb:if>

Change "9" to your paid usergroup id... if more than one then separate by comma: 9, 10, 11

ubcforums 07-17-2010 11:40 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2069640)
Edit the postbit (or postbit_legacy) and add

Code:

<vb:if condition="is_member_of($bbuserinfo, 9)">
Text or HTML to show to paid usergroup
</vb:if>

Change "9" to your paid usergroup id... if more than one then separate by comma: 9, 10, 11

does, this show the defined text only to members or group 9 ??
..i want to show the text in the postbit of the every member of group 9, visible to other groups..

Thanks

BirdOPrey5 07-17-2010 03:16 PM

That would show whatever you put above the </vb:if> only to users in usergroup id 9... If you want to display it to everyone you wouldn't use the IF statement at all. I don't think I fully understand the question.

ubcforums 07-17-2010 05:47 PM

if the member belongs to a group,,a text should appear in the post bit of that member..
which will be visible to every one..

Thanks :)


All times are GMT. The time now is 01:46 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.01844 seconds
  • Memory Usage 1,742KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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