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.

php access to custom profile fields using PHP Input Parsing?

June 18, 2008 11:49am

Subscribe [2]
  • #1 / Jun 18, 2008 11:49am

    applicode

    5 posts

    I am trying to figure out a way to access a custom profile field using php (php parsing set to input). Is there a way to do that?

    Is there something similar to the following which I am using to obtain the uri segments?

    $seg1 = $IN->fetch_uri_segment('1');
    $seg2 = $IN->fetch_uri_segment('2');
  • #2 / Jun 18, 2008 12:08pm

    Robin Sowell

    13255 posts

    Not quite sure what you’re going for.  Can you paste some sample code that shows the overall goal?  And if I remotely am in the ballpark- it’s likely you’ll need to set parsing to output.

  • #3 / Jun 19, 2008 6:03pm

    applicode

    5 posts

    I changed my php parsing to output and used the following to get my custom profile data

    $custom_field1 = {exp:member:custom_profile_data}{Custom_Field_1}{/exp:member:custom_profile_data}";

    I was able to work around the issue and I am all set now.  Thanks.

  • #4 / Jun 19, 2008 6:11pm

    Ingmar

    29245 posts

    That’s always good to hear 😊

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

ExpressionEngine News!

#eecms, #events, #releases