Resource icon

Post Content Find / Replace 1.0.0

No permission to download
It has been released as an add-on so those who wish/need to use it are able to.
I don't see the need to make it a core feature as a lot of owners will never make use of it, or if they do it will be only once after importing.
it could be bundled in a repair.php kind of file like vB had it in their do_not_upload directory
 
it could be bundled in a repair.php kind of file like vB had it in their do_not_upload directory

Yeah, I also would like to know which things do not work properly when I ever decide to convert my vB 3.8 board to XenForo. I understood now that Quotes do not work for instance: http://xenforo.com/community/threads/vb3-8-migration-quotes.4018/ , so is there more that we need to take care of? A central overview (I didn't search yet) or package would be very welcome yes.
 
Anything that involves BB Code (of which quotes is one), is likely to require some sort of manual intervention.

Embedded YouTube video for example is [media=youtube]GvGcwqMPRW0[/media] here.
On my site it is [youtube]GvGcwqMPRW0[/youtube] so all of those instances will require editing to suit.
 
Can someone tell me if I'm being thick or whether something isn't set up properly?

I uploaded the Add-on files to /library and installed the add-on.
Went to Tools, selected Post Content Replacement Tool

In the Search box put
Code:
[YOUTUBE]

In the Regular Expression box put
Code:
#\[YOUTUBE](\w+)\[/YOUTUBE\]#siU

In the Replacement String put
Code:
[media=youtube]\1[/media]

It then displays the matches along with the correct replacements.

Ticking the Save box however, it never seems to save the changes to the post. :confused:
 
Not working here :/

2010-11-10-23h39_46.png


It finds lots of posts, I tick save changes and run it again, and nothing is replaced.
 
Not working here :/

2010-11-10-23h39_46.png


It finds lots of posts, I tick save changes and run it again, and nothing is replaced.
Isn't this missing an escaping backslash? #\[url]http: should be #\[url\]http: surely?
 
Isn't this missing an escaping backslash? #\[url]http: should be #\[url\]http: surely?
Doesn't work.
I have an expression that searches for [YT="Video Title"]Youtube code[/YT]
Here it is: #\[YT=.+\]("|'|)(\w+)\1\[/YT\]#siU
I tick SAVE RESULTS, then press Proceed. After that I get I list of matched posts with Replacement text but this doesn't change anything! I think there is some problem with Cyrillic characters.
 
Forgive me for my ignorance, but I've downloaded this zip file and extracted it on my desktop - now where do I upload the "PostReplace" folder?
 
Forgive me for my ignorance, but I've downloaded this zip file and extracted it on my desktop - now where do I upload the "PostReplace" folder?

I've asked the same question but haven't received an answer yet :)
 
You'll have to upload the PostReplace directory inside the /library/ directory of your XenForo installation. The same directory has a "addon_PostReplace.xml" file, which is to be uploaded via Admin Panel.
 
Not working here :/
It finds lots of posts, I tick save changes and run it again, and nothing is replaced.

Was you able to find a fix for this as I'm having the same issue. Finds posts and everything looks correct, check Save Changes and nothing gets changed.

no changes.webp
 
It is so interesting that should be included in the Beta 2 by default ;)
It absolutely should not! Regular Expressions are EXTREMELY powerful; so much so that I pretty much have a college degree based completely around them (Biomedical Informatics; mapping the human genome). Being that powerful they are also extremely dangerous! Unless you have a full understanding of how Regular Expressions work, specifically PCRE, you shouldn't ever be using a mod like this.

If you insist on using a mod like this... I recommend you get the following program: http://www.regexbuddy.com/
 
Top Bottom