![]() |
|
Article Options |
#16
|
||||
|
||||
Makes sense -- off hand, anyone know if <vb:comment> show up in the html source code when vb is in debug mode?
No members have liked this post.
|
#17
|
||||
|
||||
have anybody try to use
It's not working for me. No members have liked this post.
|
#18
|
||||
|
||||
It isn't $is_member_of, it's simply is_member_of (no $ in front).
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#19
|
||||||||||||
|
||||||||||||
Potential 'gotcha'
Something to be aware of with the conditional tag.
Whereas in vb3.x, fetch_template was typically eval()'d in the scope of the function that created the template output, in vb4, the template is eval()'d inside another function. Since the conditional test refers to standard php variables rather than the vb registered template variables, this can create a situation where the variable you are testing is not in scope, so the test will always fail. For example:
where mytemplate contains:
will only output "val: 1" You can get round this by explicitly referring to the registered variable in the vb:if condition as follows:
which will output "val: 1 say again 1", which is what the equivalent vb3.x template would have achieved. No members have liked this post.
|
#20
|
||||
|
||||
Thanks for posting that, Andrew. I haven't run into that problem yet, but I know I will and I'll be pulling my hair out and then I'll remember this post of yours and the world will be right again.
![]()
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#21
|
||||
|
||||
"each" tag makes me so happy! thanks
![]()
__________________
Please feel free to PM me about custom work, installations, and upgrades! Eclipse Records - Streetcult Street Team No members have liked this post.
|
#22
|
||||
|
||||
Forum Blocks & Widget template variables help
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
__________________
http://www.multihunters.co.uk - all your coding needs No members have liked this post.
|
#23
|
||||
|
||||
is it possible to put a vb:raw condition in ?
<vb:if condition="{vb:raw value}==1"> do stuff. No members have liked this post.
|
#24
|
||||
|
||||
You don't use the {vb:stuff} in conditions. You would still use $value in the condition.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#25
|
||||
|
||||
Originally Posted by vietfancy
<vb:if condition="!is_member_of($bbuserinfo,6)"> ![]()
Gives me: * unclosed_tag
__________________
see sig. No members have liked this post.
|
#26
|
||||
|
||||
So to if condition for a specific user.
Would we use: <vb:if condition="$show['admin']"> or: <vb:if condition="$bbuserinfo['userid'] == 1">
__________________
![]() My Hacks [ click ] | Steve ~ Administrator for British Expats AustraliaBound.org/forum | Test our forum - user; don pass; pass123 Sports Tipping Mod - coming February 2010 ~ Show your Interest ! No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 06:01.