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)

Lynne 05-29-2014 05:27 PM

Quote:

Originally Posted by M.C. (Post 2499941)
this is vb3 forum but...

Here is the vB3 conditional thread - https://vborg.vbsupport.ru/showthread.php?t=215032

M.C. 06-01-2014 12:00 PM

u didn't get my question... what condition for vb4 to make some stuff showed only when post created by some usergroups members?

In postbit template:
HTML Code:

{vb:raw post.usertitle}

<!-- add banner if post made by admins and mods -->
<vb:if condition="POST_MADE_BY_IDs=6,7"><div><a href="http://www.link.to"><img src="SHOW_BANNER.png"></a></div></vb:if>

What should I put instead of POST_MADE_BY_IDs=6,7 ???

Lynne 06-01-2014 05:13 PM

if used in the postbit templates, then:

<vb:if condition="is_member_of($post,6,7)">
stuff
</vb:if>

Dan321 06-29-2014 09:56 AM

Need a vBulletin 5 version on page manager

RisingGlow 06-30-2014 09:12 PM

Where would I find the ''THIS_SCRIPT'' names for files? Is there any easy way? I'm trying to find some mod additions.

Alan_SP 07-01-2014 12:21 AM

You should look in php files of vB installation.

For example, take a look in index.php, you'll find there (in the beginning) this:

PHP Code:

define('THIS_SCRIPT''index'); 


RisingGlow 07-01-2014 11:42 PM

Quote:

Originally Posted by Alan_SP (Post 2504680)
You should look in php files of vB installation.

For example, take a look in index.php, you'll find there (in the beginning) this:

PHP Code:

define('THIS_SCRIPT''index'); 


Would there be some sort of debug option to show it? Some mods have intricate designing that it's not as simple as looking in the given php file.

Lynne 07-02-2014 01:54 AM

If it isn't in the file, then you can't use that condition; you would need to use another condition. Your best bet is to ask in the modification thread if there is a condition you may use.

Rich 07-19-2014 09:36 PM

This thread is from 2010 and no one has updated the original post to reflect that $forum['forumid'] should actually read $foruminfo['forumid']. The list is technically inaccurate for noobs since the first variable doesn't work. It's been 4 years; could someone update it please? I sent a user over to fetch the conditional and he was telling me it wouldn't work. guess what, he was right!

tommyxv 12-21-2014 09:56 PM

This conditional doesn't work anymore. Suggestions to fix it?

Show is every forum but one: Remember to change x
Code:
Code:

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


All times are GMT. The time now is 12:44 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.02858 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (2)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