vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   First Look at vBulletin 4 Template Tags (https://vborg.vbsupport.ru/showthread.php?t=217570)

Antivirus 12-20-2009 05:24 AM

"each" tag makes me so happy! thanks :)

TheSupportForum 12-30-2009 11:17 AM

i am trying to use the following template variables in forum blocks and widgets but dont work can anyone help please

the code only seems to work in templates and not forum blocks or widgets and need help



Code:


<center>
<a href="http://safeweb.norton.com/report/show?url={vb:raw $vboptions[bburl]}" target="_blank"><img src="{vb:stylevar imgdir_misc}/norton.gif" border="0" alt="$vboptions[bburl] tested by McAfee Security" title="$vboptions[bburl] tested by McAfee Security"></a>
<a href="http://www.siteadvisor.com/sites/{vb:raw $vboptions[bburl]}" target="_blank"><img src="{vb:stylevar imgdir_misc}/mcafee.gif" border="0" alt="$vboptions[bburl] tested by McAfee Security" title="$vboptions[bburl] tested by McAfee Security"></a>
</center>


Vaupell 01-03-2010 04:23 PM

is it possible to put a vb:raw condition in ?
PHP Code:

$value 1

<vb:if condition="{vb:raw value}==1"> do stuff.

Lynne 01-03-2010 07:30 PM

You don't use the {vb:stuff} in conditions. You would still use $value in the condition.

wolfyman 01-21-2010 08:03 PM

Quote:

Originally Posted by vietfancy (Post 1922045)
have anybody try to use
PHP Code:

<vb:if condition="$is_member_of($bbuserinfo,6)">

do 
something
</vb:if> 

It's not working for me.

Quote:

Originally Posted by Lynne (Post 1922051)
It isn't $is_member_of, it's simply is_member_of (no $ in front).

<vb:if condition="!is_member_of($bbuserinfo,6)">

Gives me:

* unclosed_tag

TimberFloorAu 01-25-2010 10:34 AM

So to if condition for a specific user.

Would we use:

<vb:if condition="$show['admin']">

or:

<vb:if condition="$bbuserinfo['userid'] == 1">


All times are GMT. The time now is 08:35 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.01115 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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