squishi
05-12-2009, 05:55 AM
How does the vbulletin redirect work?
Let's say I have this in a plugin's php code:
if ($_POST['sent'] == '1') {
$vbulletin->url = '/index.php' . $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect('redirect_postthanks_ nopermission', true, true));
}
How do I change the redirect message?
I want to change the "redirect_postthanks_nopermission".
It's not a phrase, nor is it a template, though.
I want the end result to be:
if ($_POST['sent'] == '1') {
$vbulletin->url = '/index.php' . $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect('redirect_myownredire ct', true, true));
}
with the redirect printing a my own adjusted redirect message.
I don't want to do this for all the redirects on the forum, only for the redirect of this plugin.
Let's say I have this in a plugin's php code:
if ($_POST['sent'] == '1') {
$vbulletin->url = '/index.php' . $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect('redirect_postthanks_ nopermission', true, true));
}
How do I change the redirect message?
I want to change the "redirect_postthanks_nopermission".
It's not a phrase, nor is it a template, though.
I want the end result to be:
if ($_POST['sent'] == '1') {
$vbulletin->url = '/index.php' . $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect('redirect_myownredire ct', true, true));
}
with the redirect printing a my own adjusted redirect message.
I don't want to do this for all the redirects on the forum, only for the redirect of this plugin.