The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a single line selection box profile field, with 2 options.
"Edit my photos" "Don't edit my photos" So, I'm trying to get this to display in the postbit, with a little color on each, to make it stand out, you know? I'm following Steve's info in this post on vb.com Here is my code: Code:
<if condition="$post['field8'] & 1"> <font color="green">Feel free to edit my photos!</font> </if> <if condition="$post['field8'] & 2"> <font color="red">Please do <strong>NOT</strong> edit my photos!</font> </if> Any help will be appreciated, thanks. |
#2
|
|||
|
|||
![]()
Wait...so which one of the profile fields are you using? Radio buttons?
|
#3
|
|||
|
|||
![]()
Dropdowns.
![]() --------------- Added [DATE]1257277610[/DATE] at [TIME]1257277610[/TIME] --------------- bump |
#4
|
|||
|
|||
![]()
Help?
|
#5
|
||||
|
||||
![]()
Hi, try this:
Code:
<if condition="$bbuserinfo['field8'] == 'Feel free to edit my Photos.'"> <font color="green">Feel free to edit my photos!</font> </if> <if condition="$bbuserinfo['field8'] == 'Please do NOT edit my Photos.'"> <font color="red">Please do <strong>NOT</strong> edit my photos!</font> </if> I hope this works for you ![]() |
#6
|
|||
|
|||
![]()
Ok, that semi works, it displays the option which you've chosen in your options for everyones postbit...
|
#7
|
||||
|
||||
![]()
If it's in the postbit, you will probably want to use $post['field8'], not $bbuserinfo['field8']
|
#8
|
||||
|
||||
![]() ![]() Just change $bbuserinfo['field8'] by $post['field8'] to show the info from others. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|