I did a little search and I couldn't seem to find anything that was exactly what I would like to know (I could be wrong and if so, then sorry;D)
Basically, I would like to know how to print (Not the paper print, but in computer terms) a variable from a user profile field to the screen. I had done it before to show custom images below usernames, but recently that doesn't seem to work so well.
What I have is a single selection radio field, field9, that can be one of two things: Default and Navbar.
The code I was using is:
The idea was that the first radio button wouldb e considered 0, the second would be 1. Then I tried using the actual text associated with each selection, which still didn't seem to work. Finally, I tried to debug it by using:
And it shows nothing, including my old ones that had worked in the past.
Am I missing something or did something change?
EDIT:
It works in postbit, but what I am doing is using conditionals for ads (I dont actually display ads, its a setting for where a box should be displayed)
Would that somehow change the format needed?
Another Edit:
I'm not looking for a postbit modification, as stated earlier I know how to do this, but what I was hoping to find was what exactly vB uses to decipher those conditionals since they do not work for managing ads outside of the postbit. I wouldn't really call this a mod, but rather an inquiry of how the product works (As the ad manager does state you can use template conditionals and variables).
Basically, I would like to know how to print (Not the paper print, but in computer terms) a variable from a user profile field to the screen. I had done it before to show custom images below usernames, but recently that doesn't seem to work so well.
What I have is a single selection radio field, field9, that can be one of two things: Default and Navbar.
The code I was using is:
Code:
<vb:if condition="$post['field9'] == 1">
Code:
{vb:raw post.field9}
Am I missing something or did something change?
EDIT:
It works in postbit, but what I am doing is using conditionals for ads (I dont actually display ads, its a setting for where a box should be displayed)
Would that somehow change the format needed?
Another Edit:
I'm not looking for a postbit modification, as stated earlier I know how to do this, but what I was hoping to find was what exactly vB uses to decipher those conditionals since they do not work for managing ads outside of the postbit. I wouldn't really call this a mod, but rather an inquiry of how the product works (As the ad manager does state you can use template conditionals and variables).
Comment