ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

So completely confused with Custom Profile Fields

March 01, 2010 6:45pm

Subscribe [3]
  • #1 / Mar 01, 2010 6:45pm

    iDVB

    56 posts

    Ok, so I just want to display the following in my template:

    {photo_url} {member_firstname} {member_lastname} {bio}

    ...so I tried this…just to test
    {exp:member:custom_profile_data}
    {email}
    {/exp:member:custom_profile_data}
    ..and I get this error…
    “The following tag has a syntax error”
    http://screencast.com/t/OGEzMGZiMT

    ...finally I tried this..

    <ul>
    {exp:query sql="SELECT * FROM exp_members NATURAL JOIN exp_member_data WHERE m_field_id_3 = 'Yes'"}
        <li>
            <span>{photo_url}</span>
            <span>{m_field_id_1} {m_field_id_2}</span>
            <span>{bio}</span>
        </li>
    {/exp:query}
    </ul>

    ...but my simple names for the custom fields as well as{photo_url} does exist….so I have to generate the photo url manually?

    Is there a simpler way to do this? This seems like a pretty standard implementation.

  • #2 / Mar 02, 2010 11:27am

    Jason Morehead

    456 posts

    Did you have the “member_id” parameter specified? What happens if you do that?

  • #3 / Mar 03, 2010 12:18am

    iDVB

    56 posts

    yup….tried that. I get that error either way.
    Just “using” {exp:member:custom_profile_data}
    I get an error.

  • #4 / Mar 03, 2010 4:58am

    Mark Bowen

    12637 posts

    That should definitely work and shouldn’t bring back an error.

    Out of interest what version of ExpressionEngine are you using? Also if the 1.6.x branch is this the Core or Full version?

    Best wishes,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases