The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Postbit conditional based on profile field
I'm probably using the wrong approach with what I'm trying to do:
I've added some custom profile fields and have them displayed on the postbit. Now, I would like to give users the option of turning the display of these fields off when they view threads. To enable the choice, I've created a user profile field of type Single Selection Radio buttons, with the values of 'Yes' and 'No', the question being "Do you wish to display blah". The field name is field25. In the postbit template, I want to surround my custom field display code with an if conditional that applies to the user viewing the page, and does not apply to the post, but I can't figure out quite how to do that. I've tried: HTML Code:
<if condition="$bbuserinfo['field25'] == Yes"> Custom code goes here</if> HTML Code:
<if condition="$userinfo['field25'] == Yes">Custom code goes here</if> I've even tried just printing out the value of field25 by using displaying it without any if conditionals ($userinfo[field25]) but it is empty. What am I doing wrong? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|