Log in

View Full Version : Need help with Custom Profile Field in Postbit - not working


ExplosiveGFX
11-03-2009, 12:00 AM
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 (http://www.vbulletin.com/forum/showthread.php?214234-How-To-Add-A-Profile-Field-To-The-Postbit&p=1278857&viewfull=1#post1278857)

Here is my 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>

Nothing is showing up in my postbit.. it's below "$post['posts']" in postbit_legacy, what am I doing wrong?

Any help will be appreciated, thanks.

Brother Malachi
11-03-2009, 08:16 AM
Wait...so which one of the profile fields are you using? Radio buttons?

ExplosiveGFX
11-03-2009, 09:50 AM
Dropdowns.

https://vborg.vbsupport.ru/external/2009/11/33.png

--------------- Added 1257277610 at 1257277610 ---------------

bump

ExplosiveGFX
11-07-2009, 12:26 AM
Help?

Javierogo
11-07-2009, 03:13 AM
Hi, try this:


<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>


The first text without HTML (Feel free to edit my Photos.) must be identical to the text field.

I hope this works for you ;)

ExplosiveGFX
11-07-2009, 05:49 PM
Ok, that semi works, it displays the option which you've chosen in your options for everyones postbit...

Lynne
11-08-2009, 04:25 PM
If it's in the postbit, you will probably want to use $post['field8'], not $bbuserinfo['field8']

Javierogo
11-14-2009, 06:03 AM
:eek: Right, sorry!
Just change $bbuserinfo['field8'] by $post['field8'] to show the info from others.