2012-08-05, 03:24 PM
(This post was last modified: 2012-08-27, 06:42 PM by JordanMussi.)
Regular Expression:
\[redirect=([0-60]+)\](.*?)\[/redirect\]
(change the 60 to what you want the max number of seconds to wait untill the redirect)
Replacement:
<meta http-equiv="refresh" content="$1;URL='$2'">
MyCode Text:
[redirect=5]http://mybb.com[/redirect]
HTML Result:
<meta http-equiv="refresh" content="5;URL='http://mybb.com'">
Actual Result:
Won't work because HTML is disabled.
You can add permissions like what forums it can be used in and what groups it can be used in with this plugin. "http://mods.mybb.com/view/advanced-mycode-permissions"
\[redirect=([0-60]+)\](.*?)\[/redirect\]
(change the 60 to what you want the max number of seconds to wait untill the redirect)
Replacement:
<meta http-equiv="refresh" content="$1;URL='$2'">
MyCode Text:
[redirect=5]http://mybb.com[/redirect]
HTML Result:
<meta http-equiv="refresh" content="5;URL='http://mybb.com'">
Actual Result:
Won't work because HTML is disabled.
You can add permissions like what forums it can be used in and what groups it can be used in with this plugin. "http://mods.mybb.com/view/advanced-mycode-permissions"