Quote:
Originally Posted by grey_goose
Nice -- I used this to create several more pages. One thing; on any of these new pages, savign info redirects back to profile.php rather than the add-on page. Did I miss something?
|
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.