View Full Version : redirect after page save not working?

09 Dec 2009, 08:51
Anyone have a snippet of code for redirecting the user to a Front-End Redirect Message after they save a page (think saving profile fields)? Can't get it to work for the life of me.

Here's some snippets of what I've tried (not each line at the same time obviously):

eval(print_standard_redirect('redirect_updatethanks', true, true));
eval(print_standard_redirect('redirect_updatethanks', true, true, -1));

Note that regardless of those lines being commented out it always comes back to the user.php page. Also can't redirect back to the same page like I used to.

$vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl_q'];Something like this should work, but doesn't. What am I missing?

09 Dec 2009, 13:04
workin for me ! used on my products
$vbulletin->url = 'myscript.php?' . $vbulletin->session->vars['sessionurl'];

10 Dec 2009, 00:32
No go. Just doesn't make any sense. Odd thing is checking some of the vB 4 code it has the same code but isn't working either (3 different browsers as well). Code's the same as 3.8.x, so no idea what's going on. Isn't a mod breaker, just a nice thing to have when a page is saved.

10 Dec 2009, 08:37
can you post all code to find where is problem please ?