The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
{vb:raw bbuserinfo.field$vboptions[boofo_link_1_name]}
Give that a try.. |
#12
|
||||
|
||||
That showed up fine in the header. Well, actually this did, but it is also a profile field. I'm not using boofo_link_1_name anymore.
Code:
{vb:raw bbuserinfo.field$vboptions[boofo_uhg_field]} So, how do we use this in a conditional in the template? |
#13
|
|||
|
|||
How about:
Code:
<vb:if condition="$vbulletin->userinfo['field[' . $vboptions['boofo_uhg_field'] . ']']"> |
#14
|
||||
|
||||
Almost got it. But it only seems to work if I do a NOT condition, like this:
Code:
<vb:if condition="!$vbulletin->userinfo['field[' . $vboptions['boofoboofo_uhg_field'] . ']']"> <li>{vb:rawphrase no_new_messages}</li> </vb:if> Then the phrase shows. But since there is a viable field for that, it should work the other way around, shouldn't it? No more template error, though, so thank you for that. EDIT: I see what it is. You added and extra boofo in the filed name. |
#15
|
|||
|
|||
Oh yeah sorry. I took it out a minute later but I guess you had seen it already.
|
#16
|
||||
|
||||
Nope, still not picking it up unless I do the NOT condition.
|
#17
|
|||
|
|||
Yeah, I guess that means it's not coming out to the right variable name. OK, maybe this?
Code:
<vb:if condition="$vbulletin->userinfo['field' . $vboptions['boofo_uhg_field']]"> ETA: or this Code:
<vb:if condition="$vbulletin->userinfo['field' . $vbulletin->options['boofo_uhg_field']]"> |
#18
|
||||
|
||||
Bingo! We have a winner!
You are the man! --------------- Added [DATE]1303967314[/DATE] at [TIME]1303967314[/TIME] --------------- Thank you, Kevin, for the fix. Your first one worked in post #17. I haven't tried the second one yet. But I would think it would work, also. And kudos to you, too, Zach, for the code to test in the template. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|