Moshe1010
Well-known member
YesDoes this add-on work on XenForo 1.2.0?
YesDoes this add-on work on XenForo 1.2.0?
I do not think it will, I tested it on my end and it did not but it is not a real environment and I am every user there. Assuming that what I saw in my tests repeats I would say no it won't resend all the alerts.
I have a feeling that is done at post time but you will have to wait for another answer to know for sure what's really good with that.
to turn:
[ame=[media=youtube]QrDTmOECeMw[/media] - Inner City - YouTube[/ame]
into:
[media=youtube]QrDTmOECeMw[/media]
you should be able to use the following:
Code:Quick Find: [ame=[ Regular expression: #\[ame=(\[media\=youtube\][^\[]+\[\/media\])[^\[]+\[\/ame\]#siu Replacement String: \1
I don't think it does...I believe it just runs across the posts table.Do you know if this addon uses the search index? I'm seeing a bunch of old codes its not converting. My search index is incomplete at the moment so I was wondering if that's the reason.
I don't think it does...I believe it just runs across the posts table.
Give me an example of a bbcode it didn't convert
[ame=http://www.youtube.com/watch?v=o2_bwpCWO1g]Askari X - Another Pig Bites the Dust - YouTube[/ame]
[ame=http://www.youtube.com/watch?v=pPvlpc-AhTc]Askari X - Down So Long - YouTube[/ame]
So are these not converted in the actual posts or are these being returned as search results..
I just tested those links with the same expression and they worked fine.
Did you by chance do this as Jake suggested?
http://xenforo.com/community/threads/import-from-ipb-3-2-posts-not-parsed-at-all.39577/#post-435226
If so you must keep running the same expression until it has caught all of them since as I understand it if you follow those instructions, when you replace in posts it will do it in batches of 5000, so if you set that number to 5000 and you have 20000 expected matches you will need to run the expression 4 times to catch them all.
[ame=http://www.youtube.com/watch?v=o2_bwpCWO1g]Askari X - Another Pig Bites the Dust - YouTube[/ame]
[ame=http://www.youtube.com/watch?v=pPvlpc-AhTc]Askari X - Down So Long - YouTube[/ame]
do all ame links for youtube go like this...
youtube.com/watch?v=o2_bwpCWO1g
youtube.com/watch?v=pPvlpc-AhTc
or do some have this kind of stuff in them &feature=related
do a quick search in post replace to find out...
quick search: [ame=http://www.youtube.com
regex: #\[ame\=http\:\/\/(www\/)?youtube\.com#siu
It didn't find anything.
Maybe it is using the search index.![]()
Sorry typo, try this now....
quick search: [ame=http://www.youtube.com
regex: #\[ame\=http\:\/\/(www\.)?youtube\.com#siu
Hi, can anyone help me?
I need to change my vBulletin BB Code [YOUTUBE]o2_bwpCWO1g[/YOUTUBE] to xenforo.
What should I use on quick search, regex and replacement strings fields?
Quick Find: [youtube
Regular expression: #\[youtube\]([^\]]+)\[\/youtube\]#siu
Replacement String: [media=youtube]\1[/media]
Found 5k posts of just:
[ame=http://www.youtube.com
Quick Find: [ame=http://www.youtube.com
Regular expression: #\[ame\=http\:\/\/(www\.)?youtube.com\/watch\?([a-z]+\=[^\=\&\]]+\&)*v\=([^\]\&]+)(\&[a-z]+\=[^\=\&\]]+)*\][^\[]+\[\/ame\]#siu
Replacement String: [media=youtube]\3[/media]
Try this....(I really need complete imports to test all of these expressions...) let me know how it goes because I am flying blind here.
Code:Quick Find: [ame=http://www.youtube.com Regular expression: #\[ame\=http\:\/\/(www\.)?youtube.com\/watch\?([a-z]+\=[^\=\&\]]+\&)*v\=([^\]\&]+)(\&[a-z]+\=[^\=\&\]]+)*\][^\[]+\[\/ame\]#siu Replacement String: [media=youtube]\3[/media]
Hi!
How can I replace this:
<a class="postlink-local" href="http://test.com" onclick="window.open(this.href);return false;">Test</a>
... with this:
http://test.com
.... or to this:
Test
Quick Find: <a class="postlink-local"
Regular expression: #<a\sclass\=\"postlink\-local\"\shref\=\"([^<\"]+)\"\sonclick\=\"window\.open\(this\.href\)\;return\sfalse\;\"\>([^<\<]+)<\/a>#siu
Replacement String: [URL="\1"]\2[/URL]
Replacement text:<a class="postlink-local" href="http://test.com/viewtopic.php?f=25&t=265" onclick="window.open(this.href);return false;">viewtopic.php?f=25&t=265</a>
A note: please don't use [quote] tags, please use code tags so they preserve whatever you post, otherwise using quotes can cause problems in communication when passing code back and forth.
Ooh, sorry, really don't understand much of these now. Is it ok? Can I save this?Also I need a better description of what it is you are showing me in replacement text. What you have shown there is the second subpattern
the replacement (Which I put single quotes instead of double accidentally) should include at least this much
[URL="\1"]\2[/URL]
...says to put the first captured subpattern after the = sign inside the first set of brackets, and put the second captured subpattern in between the two sets of brackets
<a class="postlink-local" href="http://test.com/viewtopic.php?f=25&t=265" onclick="window.open(this.href);return false;">viewtopic.php?f=25&t=265</a>
should become
[url="http://test.com/viewtopic.php?f=25&t=265"]viewtopic.php?f=25&t=265[url]
Ok, sorry. New here and thank you for that!
Ooh, sorry, really don't understand much of these now. Is it ok? Can I save this?
I've just put your instructions inside and click Proceed. Then I've pasted you what I get.
Or maybe I'll send you some examples again so you can write me instructions again.
Here you are.
<a class="postlink-local" href="http://forum.test.com/viewtopic.php?f=25&t=265" onclick="window.open(this.href);return false;">Something</a>
<a class="postlink-local" href="http://forum.test.com/viewforum.php?f=24" onclick="window.open(this.href);return false;">Something1</a>
Oh, and all those links are redirected now to my new board (if it has something to do with it).
<a class="postlink
#<a\sclass\=\"postlink\-local\"\shref\=\"([^<\"]+)\"\sonclick\=\"window\.open\(this\.href\)\;return\sfalse\;\"\>([^<\<]+)<\/a>#siu
[URL="\1"]\2[/URL]
We use essential cookies to make this site work, and optional cookies to enhance your experience.