PDA

View Full Version : redirect after page save not working?


Wired1
12-09-2009, 06:51 AM
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_updatethank s'));
eval(print_standard_redirect('redirect_updatethank s', true, true));
eval(print_standard_redirect('redirect_updatethank s', 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?

Almotmaiz.Net
12-09-2009, 11:04 AM
workin for me ! used on my products
$vbulletin->url = 'myscript.php?' . $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect('myscript_phrase'));
exit;

Wired1
12-09-2009, 10:32 PM
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.

Almotmaiz.Net
12-10-2009, 06:37 AM
can you post all code to find where is problem please ?