Topic: How do you add custom profile fields?

I'm looking to add custom profile fields to members profiles. Any extension for this?

Re: How do you add custom profile fields?

Bump. Can anyone help?

Re: How do you add custom profile fields?

I would also be interested in this.

4 (edited by hacklover99 2013-06-06 09:49)

Re: How do you add custom profile fields?

Hi.
just edit profile.php in root, find "linkedin" and make a copy of a block source, then change all matches "linkedin" in "yourfield" (change only in the copied block of source).

Example

<?php ($hook = get_hook('pf_change_details_identity_pre_linkedin')) ? eval($hook) : null; ?>
                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="sf-box text">
                        <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_profile['LinkedIn'] ?></span></label><br />
                        <span class="fld-input"><input type="url" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[linkedin]" value="<?php echo(isset($form['linkedin']) ? forum_htmlencode($form['linkedin']) : forum_htmlencode($user['linkedin'])) ?>" size="35" maxlength="80" /></span>
                    </div>
                </div>

Copy, paste and edit like this:

<?php ($hook = get_hook('pf_change_details_identity_pre_yourfield')) ? eval($hook) : null; ?>
                <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>">
                    <div class="sf-box text">
                        <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span>Your field/span></label><br />
                        <span class="fld-input"><input type="url" id="fld<?php echo $forum_page['fld_count'] ?>" name="form[yourfield]" value="<?php echo(isset($form['yourfield']) ? forum_htmlencode($form['yourfield']) : forum_htmlencode($user['yourfield'])) ?>" size="35" maxlength="80" /></span>
                    </div>
                </div>

You must do this for each "linkedin" matches