Quote:
Originally Posted by grey_goose
Figured this out. What was missing was the button value and redirect in the plugin:
In your new page template:
Find:
Code:
<input type="hidden" name="do" value="updateprofile" />
Replace With:
Code:
<input type="hidden" name="do" value="updateYOURTEMPLATENAME" />
Plugin at profile_start:
Find:
Code:
// save the data
$userdata->save();
}
Replace with:
Code:
// save the data
$userdata->save();
$vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=YOURTEMPLATENAME';
eval(print_standard_redirect('redirect_updatethanks', true, true));
}
Now additional pages will redirect back to themselves after saves/edits.
|
Thanks, this also solves the problem that saving the extra fields clears other profile fields like the birthday.
However, the redirect should be as this:
Code:
eval(print_standard_redirect(array('redirect_updatethanks', $vbulletin->userinfo['username']), true, true));