PDA

View Full Version : Social Networking in Postbit & Profile


aymelek
01-04-2011, 10:59 PM
I have added seven fields to the user database to include seven social networking websites and have successfully added fields to the Edit Profile page and have it writing / reading from the database. In the Postbit Legacy template and Member Profile templates, I want icons to show up just like those for AIM / Yahoo / ICQ / Yahoo if the user has those social networking fields filled in their profile.

I'm able to see the value of the fields if I add "$post[facebook]" to the postbit, but I don't know how to edit the template/code to add the image properly.

By the way, I have VB 3.5

BirdOPrey5
01-05-2011, 01:39 AM
I would just put the <img> in a conditional...

<if condition="$post[facebook]"><img src="/images/facebook_icon.gif" border="0" /></if>

If the field $post[facebook] isn't empty it will show the icon.