Profile Page- Display Human-Readable Values

Discussion in 'Customization & add-ons' started by vacc_webmaster, Sep 24, 2009.

  1. vacc_webmaster

    vacc_webmaster Member

    Joined:
    Jan 24, 2007
    Messages:
    51
    Hi,
    I have a custom profile page that displays the selected values for a field.

    It's using this code to list the selected value from the members profile.
    {foreach from=$u.data.practicetype item=d} {if $d !=""}{$d}, {/if}

    However, it returns the non-readable human values for the field instead of the readable values. So for example in the ADMIN backend the field PracticeType consist of the following values:

    Chu|Church
    Univ|University
    Private|Private Practice

    The code (above) is returning:
    Chu, Univ, Private.

    What is the modified code that can be used to display as:
    Church, University, Practice Practice

    ???

    Thanks for any assistance that can be provided.

Share This Page