PDA

View Full Version : Profile Fields + User Details SQL


barryhand
07-23-2006, 05:40 PM
Hi,

I have additional profile fields which i want displayed on a specific page along with some of the users information

I only want data returned where information has been entered.

I want

Username(link to profile) | Profilefield value

Simple query.

Thanks

afullcup
07-23-2006, 05:58 PM
I'm rather new to this, so I may be way off base here, but here is code I added to the postbit template to display something on every post if a user entered information into a custom field on their profile page.

<if condition="$post['field5']"><div>$vbphrase[turned_20_into]$post[field5]</div></if>

hth, and sorry if it doesn't :)

barryhand
07-23-2006, 08:32 PM
I'm looking for the actual SQL as I'm using a custom pages hack