• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Censoring on old posts

Solidus

Well-known member
#1
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
#4
I'm unsure how to change these ones,

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

any help?
 

Jake Bunce

XenForo moderator
Staff member
#5

Solidus

Well-known member
#7
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
#8
Use this:

Quick Find: [media=youtube[/plain]

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

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