Just for example, one of my fields is _quote . In the main file instructions state
I'm a little unclear on exactly how I need to call these functions, and have been toying with it all afternoon!! The code that calls all the variables up is
Code
<!--[foreach item="item" from=$profile]-->
<!--[if $item.shown eq 1]-->
<!--[if $item.value ne ""]-->
<!--[if $item.public_status eq 0]--> <!--[* THIS IS DISPLAYED if ITEM SHOULD BE VISIBLE for EVERY USER *]-->
<tr><td><!--[$item.description]--></td><td><!--[if $item.fieldtype eq "TEXTBOX"]--><fieldset><legend><!--[$item.description]--></legend><!--[/if]--><!--[$item.value|pnmodcallhooks|nl2br]--><!--[if $item.fieldtype eq "TEXTBOX"]--></fieldset><!--[/if]--></td></tr>
<!--[/if]-->
<!--[if $item.public_status eq 1]--> <!--[* THIS ITEM SHOULD ONLY BE SHOWN TO REGISTERED USERS *]-->
<tr><td><!--[$item.description]--></td><td>
<!--[if $viewer_uid gt 0]-->
<!--[if $item.fieldtype eq "TEXTBOX"]--><fieldset><legend><!--[$item.description]--></legend><!--[/if]--><!--[$item.value|pnmodcallhooks|nl2br]--><!--[if $item.fieldtype eq "TEXTBOX"]--></fieldset><!--[/if]-->
<!--[else]-->
<!--[pnml name="_PNPROFILEONLYREGISTEREDUSERSCANSEETHIS"]-->
<!--[/if]-->
</td></tr>
<!--[/if]-->
<!--[if $item.public_status eq 2]--> <!--[* TO SEE THIS ITEM THE USER NIEEDS ADMIN PERMISSIONS for pnProfile *]-->
<!--[pnsecauthaction realm="0" comp="pnProfile::" inst=".*" level="ACCESS_ADMIN" assign="auth"]-->
<!--[if $auth]-->
<tr><td><!--[$item.description]--></td><td><!--[if $item.fieldtype eq "TEXTBOX"]--><fieldset><legend><!--[$item.description]--></legend><!--[/if]--><!--[$item.value|pnmodcallhooks|nl2br]--><!--[if $item.fieldtype eq "TEXTBOX"]--></fieldset><!--[/if]--></td></tr>
<!--[/if]-->
<!--[/if]-->
<!--[/if]-->
<!--[/if]-->
<!--[/foreach]-->
<!--[if $item.shown eq 1]-->
<!--[if $item.value ne ""]-->
<!--[if $item.public_status eq 0]--> <!--[* THIS IS DISPLAYED if ITEM SHOULD BE VISIBLE for EVERY USER *]-->
<tr><td><!--[$item.description]--></td><td><!--[if $item.fieldtype eq "TEXTBOX"]--><fieldset><legend><!--[$item.description]--></legend><!--[/if]--><!--[$item.value|pnmodcallhooks|nl2br]--><!--[if $item.fieldtype eq "TEXTBOX"]--></fieldset><!--[/if]--></td></tr>
<!--[/if]-->
<!--[if $item.public_status eq 1]--> <!--[* THIS ITEM SHOULD ONLY BE SHOWN TO REGISTERED USERS *]-->
<tr><td><!--[$item.description]--></td><td>
<!--[if $viewer_uid gt 0]-->
<!--[if $item.fieldtype eq "TEXTBOX"]--><fieldset><legend><!--[$item.description]--></legend><!--[/if]--><!--[$item.value|pnmodcallhooks|nl2br]--><!--[if $item.fieldtype eq "TEXTBOX"]--></fieldset><!--[/if]-->
<!--[else]-->
<!--[pnml name="_PNPROFILEONLYREGISTEREDUSERSCANSEETHIS"]-->
<!--[/if]-->
</td></tr>
<!--[/if]-->
<!--[if $item.public_status eq 2]--> <!--[* TO SEE THIS ITEM THE USER NIEEDS ADMIN PERMISSIONS for pnProfile *]-->
<!--[pnsecauthaction realm="0" comp="pnProfile::" inst=".*" level="ACCESS_ADMIN" assign="auth"]-->
<!--[if $auth]-->
<tr><td><!--[$item.description]--></td><td><!--[if $item.fieldtype eq "TEXTBOX"]--><fieldset><legend><!--[$item.description]--></legend><!--[/if]--><!--[$item.value|pnmodcallhooks|nl2br]--><!--[if $item.fieldtype eq "TEXTBOX"]--></fieldset><!--[/if]--></td></tr>
<!--[/if]-->
<!--[/if]-->
<!--[/if]-->
<!--[/if]-->
<!--[/foreach]-->
I appreciate any help!!!
edited by: clickncook, Sep 13, 2007 - 05:44 PM
