Calling custom profile fields

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
kateland
Registered User
Posts: 198
Joined: Wed Nov 22, 2006 7:08 pm
Location: Philadelphia, PA
Contact:

Calling custom profile fields

Post by kateland »

Hi there,

I searched this site and google for more info on how to call the custom profile fields into a new mod. It's a submission form that should display the custom fields if populated.

All I see is reference to this:

Code: Select all

$cp->generate_profile_fields('register', $user->get_iso_lang_id());
Can someone explain the register and iso_lang_id? Is this verbatim what I should pull?

I really appreciate any insight. Been a while since I had my hands in phpBB code.
here's your love letter
you bloodletter
you disappointed every time
User avatar
kateland
Registered User
Posts: 198
Joined: Wed Nov 22, 2006 7:08 pm
Location: Philadelphia, PA
Contact:

Re: Calling custom profile fields

Post by kateland »

Update: I found King Rhyono's mod for functions.php to address this on StarTrekGuide. It worked for me, not sure if totally compatible with current version.

http://startrekguide.com/community/view ... 27&t=14541

It wasn't totally clear in the instructions, but after you modify functions.php you call your fields in the template WITHOUT the PF_ prefix:

In the table phpbb_profile_field_data I have a custom field called pf_lastname. The template variable should be {CUSTOM_LASTNAME_VALUE}

Hope it helps others.
here's your love letter
you bloodletter
you disappointed every time
Locked

Return to “[3.0.x] MOD Writers Discussion”