PDA

View Full Version : Show Profile Field Once per Page


checknme12
09-03-2004, 02:31 AM
I am showing a group of profile fields in each member's postbit. I want to make it so that the group of fields only show up once per page.

I have this code to make signatures achieve this:

<if condition="$post['signature'] AND !$vboptions['shownsigs'][$post[userid]] AND $vboptions['shownsigs'][$post[userid]] = true">

How can I modify this to handle an html formatted group of profile fields?

Many thanks :)
checknme

checknme12
09-03-2004, 05:58 PM
Can anyone help?

rake
09-03-2004, 08:03 PM
You just change the variable to showfields, instead of showsigs. Your code also checked if the signature wasn't empty. I took that out, because i don't know what fields you want to show/what conditions for showing those fields you want to apply.

<if condition="!$vboptions['showfields'][$post[userid]] AND $vboptions['showfields'][$post[userid]] = true">
fields here
</if>

checknme12
09-04-2004, 08:37 PM
Thanks very much! Things are starting to make more sense now ;)

Wordplay
09-05-2004, 11:15 AM
stupid question but. how do you add profile fields to the post info?

Reeve of shinra
09-05-2004, 11:47 AM
$post[fieldX] where x is the field #. Usually 5 if its the first one you created.