Resource icon

Post Content Find / Replace 1.0.0

No permission to download
I need some help with old (imported vb4) BBCodes in the posts.
There are many posts including the following bbcodes:

Code:
[SIZE=1]
[SIZE=2]
[/SIZE]
[FONT=tahoma] etc.


I want to remove these BBCodes from all posts. Is this possible?

Thanks in advance :)

For FONT BBCODE REMOVE

Quick Find: [font

Regular Expression: #\[font=([^\]]+)\](.*)\[/font\]#siU

Replacement String: \2


For SIZE BBCODE REMOVE

Quick Find: [size

Regular Expression: #\[size=([^\]]+)\](.*)\[/size\]#siU

Replacement String: \2
 
Just installed 1.3 and clicking on the add-on returns
Error
The requested page could not be found.

I am guessing it's not installed correctly.

This directory should exist on the server:

library/PostReplace

And inside should be this:

library/PostReplace/addon_PostReplace.xml

That XML file needs to be imported in the Admin CP:

Admin CP -> Home -> Install Add-on
 
yep - no install instructions and so I just assumed upload the files within the folder instead of the folder. Fixed, thanks.
 
hmm, good question,

maybe remove them as I'm trying to make my site more mobile friendly but if you don't mind, both ways would be appreciated. Thank you.
 
How would I go about finding any references to the following:

Code:
thisurl.com

Code:
thisurl.com/folder/

Code:
jake's stuff

I don't actually want to replace anything, I just want to locate them.
 
I have some code snipets in my forum like this: [MEDIA=amazon]0123456789[/MEDIA].

I'd like to find them all and replace with this code: [AMAZON]0123456789[/AMAZON].

Can anyone help how to handle this?
 
How would I go about finding any references to the following:
Code:
thisurl.com
thisurl.com/folder/
jake's stuff
I don't actually want to replace anything, I just want to locate them.


Code:
thisurl.com
thisurl.com/folder/

Quick Find:
Code:
thisurl

Regular expression:
Code:
#thisurl\.com(?:/folder/)?#siu

_____________________________________


Code:
jake's stuff
Quick Find:
Code:
jake's

Regular expression:
Code:
#jake's\sstuff#siu









I'd like to find [MEDIA=amazon]0123456789[/MEDIA]
replace with [AMAZON]0123456789[/AMAZON].
Can anyone help how to handle this?




Quick Find:
Code:
amazon

Regular expression:
Code:
#\[MEDIA=(amazon)]([a-z0-9]+)\[/MEDIA]#siu

Replacement String:
Code:
[\1]\2[/\1]
 
Last edited:
Thank you @EQnoble but this seems not to work.

The replacement text will look like this:
[URL][media=amazon]3406570739[/media][/URL]

but I need
[amazon]3406570739[/amazon]
 
Thank you @EQnoble but this seems not to work.

The replacement text will look like this:
[URL][media=amazon]3406570739[/media][/URL]

but I need
[amazon]3406570739[/amazon]
I'm sorry, I am rushing over here because they are shutting my power off within the hour and I don't know exactly when...I copy/pasted from one of my posts above so I could fill in the blanks and forgot to change replacement line.


I have edited it above...sorry about that. ( Gotta love having that option to not apply the changes :) )
 
Sorry @EQnoble Just have to interrupt you for one last time

I just found out that some text inside the media codes also contain letters but not only digits, e.g. [media=amazon]B00IWSNZ54[/media]

How do I have to update the regular expression accordingly in order to find these code snipets as well?
 
Hello,

I was wondering how to replace [SOMETHING] with [SOMETHINGdifferent].

I have tried [SOMETHING] as the regular expression with no success.

Thanks!
 
Back
Top Bottom