Resource icon

Post Content Find / Replace 1.0.0

No permission to download
well here is the thing, I would not capture the pieces individually, I would be capturing the tags and the content in between with one expression and then literally swapping the tags...

I need to know what will be in the tags to do that. If you don't want to tell me that the best I can do is offer you this...

Code:
Quick Find:            [amazon]
Regular expression:    #\[amazon\]([0-9]+)(\/.+)?\[\/amazon\]#siu
Replacement String:    [ media=amazon]\1[ /media]

// if you want to include the crap after the ASIN use this below for the Replacement String instead. 
[media=amazon]\1\2[ /media]
 
In the tags are ten digit numbers, sometimes mixed with letters

e.g. 3442478669 // [ amazon]3442478669[ /amazon]

or B00APVVZBM // [ amazon]B00APVVZBM[ /amazon]

or B00AN0MCG2 // [ amazon]B00AN0MCG2[ /amazon]
 
In the tags are ten digit numbers, sometimes mixed with letters

e.g. 3442478669 // [ amazon]3442478669[ /amazon]

or B00APVVZBM // [ amazon]B00APVVZBM[ /amazon]

or B00AN0MCG2 // [ amazon]B00AN0MCG2[ /amazon]

Code:
Quick Find:            [amazon]
Regular expression:    #\[amazon\]([a-z0-9]+)\[\/amazon\]#siu
Replacement String:    [ media=amazon]\1[ /media]
 
I'm sorry as this might a dumb question for you, but I'm newbie in XF.

How do I install this Add-on?

After downloaded, and extracted, I got these files:

Which one I should upload? and to which path?

Screen Shot 2013-07-03 at 9.57.23 PM.webp
 
Installing a New Add-on

The exact procedure for installing a new add-on will be directed by the creator of that add-on. However, in general, the procedure will be as follows:

Download the add-on and unzip it.
Upload the add-ons files into your XenForo installation. This will usually create a new directory within the library/ directory in your XenForo installation. In general, this shouldn’t overwrite any existing files.
From your control panel, go to the "install add-on" page. The add-on will have provided an XML file somewhere within it. Upload that file here and submit the form.

http://xenforo.com/help/add-ons/
 
I uploaded all folders to /var/www/library/ as instructed.

Imported the .XML as instructed.

Screen Shot 2013-07-04 at 8.31.04 AM.webp

But when I click 'Replace in Posts':

Screen Shot 2013-07-04 at 8.30.55 AM.webp

The 'Replace in Posts' link gone, and it returns me an Error - The requested page could not be found.
 
LoL, I put those on /var/www/library/*

I moved them to /var/www/library/PostReplace and now it's working.

Thank you for your clue (y)
 
hello all
need find: showtheread.php?t=
Replace with: index.php?threads/
tell me what should i do?
thank you
 
hello all
need find: showtheread.php?t=
Replace with: index.php?threads/
tell me what should i do?
thank you
before I respond with an expression...I want to make sure we are on the same page.

This is for posts in a thread correct?
 
many times users put link of other thread in them post so it was ht tp://************/forum/showthread.php?t=xxxx
After imported from vb i need to change these links to ht tp://************/forum/index.php?threads/xxxx
 
Top Bottom