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)

Loversama 01-31-2012 02:47 PM

Quote:

Originally Posted by flbutterflyz (Post 2225277)
^^Regarding the same code above, is there a way to let the image show to everyone but only usable for certain usergroups? Meaning the image will only be active in 4 usergroups' postbit but everyone can view the image.

Not sure if I'm explaining it well...

<vb:if condition="$post[usergroupid]==17">


;D

AshMagic 02-07-2012 02:35 PM

What is the variable for displaying the total amount of registered members on vBulletin 4?

inigo 02-10-2012 05:45 AM

I would like to insert some ad code in the CMS home, between the articles preview, but I would like to know the conditional to show this ads only after the preview article position I like.

I have the 1+2 colums selected, so i wouuld like to show,

1 article_preview,
AD CODE
2 article preview 3 article preview
4article preview 5 article preview
AD CODE
6 article preview 7 article preview
8article preview 9 article preview
AD CODE

At the moment I know to add the AD CODE at the end of all the previews (Template article_preview).

Any help of what conditional and in which template have I to use?

Thanks!

MGP_Tech 03-25-2012 04:43 PM

What conditional would I use for my postbit to only show the Blog Entries if the user has posted a blog?

MGP_Tech 03-26-2012 07:29 PM

Quote:

Originally Posted by MGP_Tech (Post 2313178)
What conditional would I use for my postbit to only show the Blog Entries if the user has posted a blog?

Found it
Code:

<vb:if condition="$post['entries'] > 0"></vb:if>

egysc 03-27-2012 03:59 AM

I wonder what is the if condition for the mobile phones (any type smart or not ) that can be used ?

sinucello 05-05-2012 08:45 PM

Hi,
thanks for the great posts so far, they helped me a lot with integrating different advertising-codes for different pages (IVW) into the header template. I still need 2 conditions:

1. a conditional for announcements
to render something into the header template in all announcements
2. a conditional that effects all sub-forum of a parent forum or category
as I don`t want to use an array with all the forum IDs because the list of IDs is very long and
might change from time to time

would be great if someone has a solution for those 2.

thank you - all the best,
Sacha

stuartn 05-06-2012 08:36 PM

In user profile options I want to make and option only viewable to be accessed by a certain usergroup. How would you achieve this ?

--------------- Added [DATE]1336340365[/DATE] at [TIME]1336340365[/TIME] ---------------

Quote:

Originally Posted by sinucello (Post 2326562)
Hi,
thanks for the great posts so far, they helped me a lot with integrating different advertising-codes for different pages (IVW) into the header template. I still need 2 conditions:

1. a conditional for announcements
to render something into the header template in all announcements
2. a conditional that effects all sub-forum of a parent forum or category
as I don`t want to use an array with all the forum IDs because the list of IDs is very long and
might change from time to time

would be great if someone has a solution for those 2.

thank you - all the best,
Sacha

This still works for me

https://vborg.vbsupport.ru/showthread.php?t=132716

Then in the html box insert what you need per forum.

nrms? 05-21-2012 02:16 PM

Another conditional in my case I'm using to make improvements in the sharing of urls in topics:

<vb:if condition="$bookmarksites"> show only if showing bookmarks </vb:if>

Yogesh Sarkar 06-02-2012 05:17 PM

If there a conditional that can be used for CMS home page, which would not have an bearing on rest of the CMS pages?


All times are GMT. The time now is 03:30 AM.

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.02034 seconds
  • Memory Usage 1,743KB
  • 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)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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