Censoring on old posts

Solidus

Well-known member
I'm trying to replace all instances of [video=youtube] with [media=youtube], same applies for [/video] and [/media].
The word censor only applies to new posts, any way around this?
 

Solidus

Well-known member
I'm unsure how to change these ones,

[align=left] to [LEFT] (same for center and right)
[video=youtube] to [/media=youtube]

any help?
 

Solidus

Well-known member
I managed it, kind of. Now all links are like this,

[media=youtube]http://www.youtube.com/watch?v=rGD1sEM0pNo[/media]

I believe only the video ID should be there.
 

Jake Bunce

XenForo moderator
Staff member
Use this:

Quick Find: [media=youtube

Regular Expression: #\[media=youtube\].+watch\?v=([^\[]+)\[/media\]#siU

Replacement String: [media=youtube]\1[/media]
 
Top