View Full Version : CP_REDIRECT question
vbplusme
05-29-2009, 02:27 AM
I have done quite a few searches and can find no properties listing for CP_REDIRECT.
The question is, does it have a timer property like meta refresh?
TIA for a reply...
Dismounted
05-29-2009, 10:19 AM
The delay, when using print_stop_message() and CP_REDIRECT, is one second.
vbplusme
05-29-2009, 10:32 AM
So, that's a fixed time? You have to be REALLY quick to see the displayed message, LOL
Dismounted
05-29-2009, 12:00 PM
Yep, fixed.
EnIgMa1234
05-29-2009, 12:44 PM
When using the print_cp_redirect function, you can set a timeout on it.
Its used like this
print_cp_redirect($url, 10);
The 10 indicates a 10 second delay.
However there is no property like this for print_standard_redirect();
vbplusme
05-31-2009, 06:16 AM
For some reason, that one doesn't print the message.
The one prints the message but flashes it by in one second to do the redirect.
define('CP_REDIRECT', 'myscript.php');
print_stop_message(Message_Delete_Resource);
pretty weird stuff, works but its pretty quick!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.