PDA

View Full Version : a small question regarding print_standard_redirect


tpr
07-29-2005, 07:04 PM
Hi,
I'm kinda new in the vb hacking and i ran into a tiny problem.
I'm trying to redirect the user after he does a certain action. Now i use print_standard_redirect function and it redirects currectly. However if i am not mistaken a redirection message should appear, sadly it does not.
Anything i might be doing wrong ?

Thanks,
Tpr

Guest190829
07-29-2005, 07:42 PM
You need make a custom phrase in the group Front-End Redirects with the title of the redirect you used in the function.

tpr
07-29-2005, 09:02 PM
The odd thing is that i simply used an existing pharse for the test i created and it still did not show it.

Is it possible that the pharse will not appear if i did not pre-cached it ? I know that pharses that were not pre-cached do appear normaly (but take an extra query).

Thanks
Tpr

Adrian Schneider
07-29-2005, 09:31 PM
Setting the second argument to FALSE will allow you to use a precached phrase, or just text. If you leave it default/have it TRUE it will run a query and retrieve it from Front-End Redirects.

In what way isn't the text working? Instant redirect, or the redirect screen with no text?

deathemperor
07-30-2005, 03:10 AM
Hi,
I'm kinda new in the vb hacking and i ran into a tiny problem.
I'm trying to redirect the user after he does a certain action. Now i use print_standard_redirect function and it redirects currectly. However if i am not mistaken a redirection message should appear, sadly it does not.
Anything i might be doing wrong ?

Thanks,
Tpr
because you have it disable, this option can be found in you ACP.

to force the redirect message appear even that option is disalbed, use

$_REQUEST['forceredirect'] = true;


before the print_standard_redirect() function.

tpr
07-31-2005, 04:05 AM
$_REQUEST['forceredirect'] = true;

before the print_standard_redirect() function.

Ok, thanks a lot that solved the problem.
I placed the $_REQUEST['forceredirect'] = true;
on the begining of the page but for some odd reason it did not work, when i moved it just before the redirect the message appeared.