Resource icon

Post Content Find / Replace 1.0.0

No permission to download
screen.webp Hi, seems to be a great tool if some know how to use it :D

What I would like to know is... I have lots and lots of links which are starting with http://www.invalid1c is there anyway so remove the entire line where it startes with this or at least "unlink" them so they don't appear as links any longer in any message/post ?

I think the above will delete only the "http://www.invalid1c" but I want it to delete the entire line means everything that comes after "http://www.invalid1c" /something/something/index.php"
 
Last edited:
View attachment 135048 Hi, seems to be a great tool if some know how to use it :D

What I would like to know is... I have lots and lots of links which are starting with http://www.invalid1c is there anyway so remove the entire line where it startes with this or at least "unlink" them so they don't appear as links any longer in any message/post ?

I think the above will delete only the "http://www.invalid1c" but I want it to delete the entire line means everything that comes after "http://www.invalid1c" /something/something/index.php"
try to add ".+" to the regular expression


Hello, Try this one:

Quick Find:
Code:
[IMG]http://www.example.com/forum/attachment.php?attachmentid

Regex:
Code:
#(\[img]http://www\.example\.com)/forum/attachment\.php\?attachmentid=([0-9]+)&d=([0-9]+)(\[/img])#siu

Replace:
Code:
\1/xendev/attachments/\2/\4

Always try first without saving.

I have a problem with this Addon

I'm trying this but with URL instead of IMG but when I run a text it didn't return anything, it load and then it simply reload the page without any result or message

this is what I'm trying:

Quick Find:
Code:
[URL]http://sub.domain.com/forum/attachment.php?attachmentid

Regex:
Code:
#\[URL]http://sub\.domain\.com/forum/attachment\.php\?attachmentid=([0-9]+)&d=[0-9]+\[/URL]#siu

Replace:
Code:
[ATTACH]\1[/ATTACH]

What it's wrong with it?

EDIT:
My bad!!! the old vbulletin forum wasn't in the /forum/ directory! ;)
 
Last edited:
is the Quick Find unable to find string with single quote?

Example:
I have many links like that:

[url='http://imageshack.us'][/url]

I want to filter them and then replace the URL with another one.
 
I supose it should but you ca try to just use [url=

I have some trouble myself to find postings which I know they exist but the tool doesn't seem to find them. Regex is fine but I suspect the Quick Find
 
Hi, would anybody be able to help me with the regular expression to remove this from my posts?

Why web when you can app... Tapatalk from SM-910c

Thank you. :)
 
Quick Find:
Why web when you can app... Tapatalk from SM-910c

Regex:
Code:
#Why web when you can app\.\.\. Tapatalk from SM-910c#siu

replacement: Leave empty

Try testing first (leave check box save changes empty)
 
@Burp can you please help me with a regular expression

I'm looking to convert all imgur image links from http to https

example -
I want the image tags from
Code:
[IMG]http://i.imgur.com/xxxxx.jpg[/IMG]
to
[IMG]https://i.imgur.com/xxxxx.jpg[/IMG]
 
Code:
UPDATE xf_post SET message = REPLACE(message, 'http://i.imgur', 'https://i.imgur');

if you are comfy with phpmyadmin. i run this query once every few months on domains that i find do not force https.
there is also the proxy image option that should negate the need for running this command at all.
 
Code:
UPDATE xf_post SET message = REPLACE(message, 'http://i.imgur', 'https://i.imgur');

if you are comfy with phpmyadmin. i run this query once every few months on domains that i find do not force https.
there is also the proxy image option that should negate the need for running this command at all.

Superb that will work.. i will give it a try now..

On the way by enabling the proxy image my server load gone up and cloudflare is not caching those images resulting in slow site :( . So was thinking to disbale image proxy and use instead the https image tag. Imgur actually offers that.
 
Yup. It's sad that they are not forcing HTTPS by default. Almost all major sites that offer embedded codes are HTTPS these days.
 
Code:
UPDATE xf_post SET message = REPLACE(message, 'http://i.imgur', 'https://i.imgur');

if you are comfy with phpmyadmin. i run this query once every few months on domains that i find do not force https.
there is also the proxy image option that should negate the need for running this command at all.
Also taigachat in message will works http to https?
 
@Burp can you please help me with a regular expression

I'm looking to convert all imgur image links from http to https

example -
I want the image tags from
Code:
[IMG]http://i.imgur.com/xxxxx.jpg[/IMG]
to
[IMG]https://i.imgur.com/xxxxx.jpg[/IMG]

If you want to use this tool then:

Quick Find:
Code:
[IMG]http://i.imgur

Regex:
Code:
#\[IMG]http://(i\.imgur\.com/[^[]+)\[/IMG]#siu

Replace:
Code:
[IMG]https://\1[/IMG]

Always try first without saving.

If you get server errors, read this:
https://xenforo.com/community/threads/import-from-ipb-3-2-posts-not-parsed-at-all.39577/#post-435226
 
Last edited:
can someone please help me with this, should be simple.

I want to replace http with https in the following URLs:

Code:
[IMG]http://cafesaxophone.com/.......

So I put in quick search:

http://cafesaxophone.com

then

Find http

Replace https

But this gives me an error.
 
You can use the following post as an example (posted above your first post):

Quick Find:
Code:
[IMG]http://i.imgur
Regex:
Code:
#\[IMG]http://(i\.imgur\.com/[^[]+)\[/IMG]#siu
Replace:
Code:
[IMG]https://\1[/IMG]
Always try first without saving.

Just replace i.imgur with your own domain.
 
You can use the following post as an example (posted above your first post):



Just replace i.imgur with your own domain.

I tried that previously and nothing happened.

Code:
[IMG]http://cafesaxophone

#\[IMG]http://(cafesaxophone\.com/[^[]+)\[/IMG]#siu

[IMG]https://\1[/IMG]
 
Something would always happen, be an error or a confirmation page or similar.

Can you describe the specific steps you took?
 
Top Bottom