Topic: How do you add custom profile fields?
I'm looking to add custom profile fields to members profiles. Any extension for this?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.4 troubleshooting → How do you add custom profile fields?
I'm looking to add custom profile fields to members profiles. Any extension for this?
Bump. Can anyone help?
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
PunBB Forums → PunBB 1.4 troubleshooting → How do you add custom profile fields?
Powered by PunBB, supported by Informer Technologies, Inc.