recently converted a forum from phpbb that used the [youtube][/youtube] tags to display youtube videos. now that I'm on mybb and use the auto media plugin, I only need to post a direct link to the video and it'll auto embed.
is there any mycode that'll strip the [youtube][/youtube] tags and keep the URL intact?
Expression: \[youtube\](.*?)\[/youtube\]
Replacement: $1
That should work.
(2011-07-25, 08:42 PM)Malcolm. Wrote: [ -> ]Expression: \[youtube\](.*?)\[/youtube\]
Replacement: $1
That should work.
that does strip the youtube tags, but it doesn't make the link clickable.
I thought it would automatically.
Replacement: <a href="$1" target="_blank">$1</a>
(2011-07-25, 08:53 PM)Malcolm. Wrote: [ -> ]I thought it would automatically.
Replacement: <a href="$1" target="_blank">$1</a>
perfect man, thanks!
Also..... if you want to make the replacement text:
Expression: \[youtube=(.*?)\](.*?)\[/youtube\]
Replacement: <a href="$2">$1</a>
[youtube=Text for link]Link Location[/youtube]