Hey there try this, as always on a test site if you can first...I don't have full imports to test this against.
Quick Find:
Code:[mention
Regular expression:
Code:#\[mention=([0-9]+)]([^\[]+)\[/mention]#siu
Replacement String:
Code:@[USER=\1]\2[/USER]
Yes it did thanks!Ok I'm awake now, have you tried what was posted in that link above?
[video=facebook;158136321047560]https://www.facebook.com/photo.php?v=158136321047560[/video]
[video=facebook;1415000942047651]https://www.facebook.com/photo.php?v=1415000942047651&set=vb.418993998144428&type=2&theater[/video]
How do i convert the facebook media?
PHP:[video=facebook;158136321047560]https://www.facebook.com/photo.php?v=158136321047560[/video] [video=facebook;1415000942047651]https://www.facebook.com/photo.php?v=1415000942047651&set=vb.418993998144428&type=2&theater[/video]
[video=facebook
#\[video=facebook;([0-9]+)][^\[]+\[/video]#siu
[media=facebook]\1[/media]
http://www.youtube.com/watch?v=shPET-znvnk&WHATEVERHERE
Basically all my AME tags have been stripped out
I got plain youtube urls that don't even show up as links.
EXAMPLE:
Code:http://www.youtube.com/watch?v=shPET-znvnk&WHATEVERHERE
What replacement should I do to get these to show up embedded in the posts?
youtube
#http://(?:www\.)?youtube\.com/watch\?v=([a-zA-Z0-9_-]{11})(?:[^\s]+)?#siu
[media=youtube]\1[/media]
If I have a member named Arl Børch and want all mentions of that to be changed to Arl, what's the correct regexp?
Arl Børch
#(Arl)\sBørch#siu
\1
[playmp3]http://www.avpodcast.co.uk/podcast.mp3?p=
[playmp3]
[URL]http://www.youtube.com/watch?v=9upTLWRZTfw[/URL]
\[URL\]http:\/\/www\.youtube\.com/watch\?v=([a-zA-Z0-9]+)\[\/URL\]
[media=youtube]$1[/media]
I need more info for that....but assuming that is exactly what you want to do and that your new bbcode uses [tag]ID[/tag] , then this would work.Could someone please tell me how to replace
withCode:[playmp3]http://www.avpodcast.co.uk/podcast.mp3?p=
Code:[playmp3]
[playmp3
#(\[playmp3])http://www.avpodcast.co.uk/podcast\.mp3\?p=#siu
\1
Try thisAlso how do I change
into the proper Xenforo youtube code please?Code:[URL]http://www.youtube.com/watch?v=9upTLWRZTfw[/URL]
youtube
#(?:\[url])http(?:s)?://(?:www\.)?(?:[a-z0-9-]+\.)?youtu(?:be\.com/(?:[a-z]+(?:/api/videos/)?)|\.be)(?:\?v=|/)?([a-z0-9_-]{11})(?:[^\s]+)?(?:\[/url])#siu
[media=youtube]\1[/media]
I need to modify the code
Code:[COLOR=\"#3964C2\"]Album anzeigen[/COLOR][/URL]
to
Code:[COLOR="#3964C2"]Album anzeigen[/COLOR][/URL]
(removed the two "\") but i cannot figure it out.
Somebody has a solution for me? Thanks![]()
so does the url tag have anything to do with it or did you just put that in there for no reason?
Also, xf does not use [COLOR="#b0b0b0"]gsggfd[/COLOR] ... it uses [COLOR=#b0b0b0]gsggfd[/COLOR]
[COLOR=\"#3964C2\"]Album anzeigen[/COLOR]
Sorry, i forgot to remove the [/URL] tag.
It's part of the Google Picasa RSS feed of my albums.
Code:[COLOR=\"#3964C2\"]Album anzeigen[/COLOR]
It would be fine to remove the two " and \ after the COLOR= code![]()
[COLOR
#(\[COLOR=)\\"(\#[a-z0-9]+)\\"(])#siu
\1\2\3
We use essential cookies to make this site work, and optional cookies to enhance your experience.