Site in read-only mode
This site is now read-only following the release of MyBB 1.8 and the new mods site.
If you are looking for MyBB 1.8 mods please click here to visit the new mods site.
You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.
cpredirect() : Developer defined timeout
Set message timeout to specified length.
The current timeout of one second may be to quick for a user to read the
message. This mod will not affect any current plugins or core code.
In mybb_root/admin/adminfunctions.php, find the line:
function cpredirect($url, $message=\"\")
Replace with:
function cpredirect($url, $message=\"\", $timeout=100)
In the same function, find the line:
echo \" timerID = setTimeout(\"redirect();\", 100);\\n\";
Replace with:
echo \" timerID = setTimeout(\"redirect();\", \".$timeout.\");\\n\";
You can now set the message timeout via the $timeout argument. The
following example sets the timeout to three seconds.
cpredirect( \'mybb_file.php?\' . SID . \'&action=mybb_page\', $lang->message, 300 );