themaPoster
http://poster.themasoftware.com/forum/

Forum replacements problems.
http://poster.themasoftware.com/forum/viewtopic.php?f=4&t=634
Page 74 of 74

Author:  Freddy [ December 16th, 2023, 7:43 pm ]
Post subject:  Re: Forum replacements problems.

In Notepad++ you most likely have enabled multi-line mode (the dot to match new lines).

In themaPoster for that you need to add this prefix: (?s)

Like this (it works as well):

Search for:
Code:
(?s)(\[csize\](.*?)\[/csize\])(.*?)\[xsize\]\{size\}\[/xsize\]


Replace with:
Code:
$1$3[xsize]$2[/xsize]


Enable regex search.

Author:  Freddy [ December 16th, 2023, 7:52 pm ]
Post subject:  Re: Forum replacements problems.

The first message with "[mark1]" is a bit hard to understand since in input in output there is no such tag and you have imgbox links in both input and output.

To remove everything between some tags it would be just:

Search for:
Code:
(?s)\[mark1\].+?\[/mark1\]\s*


Replace with:
Code:
(leave empty)


Enable regex search.

Author:  Crackpot [ December 17th, 2023, 9:00 am ]
Post subject:  Re: Forum replacements problems.

thank you for the size regex.

and about the mark1 I want to keep only pixhost domain and remove the imgbox domain. and I think it's kind of impossible to do that.

then I end up using two themaposter which will work with no headache.

Author:  Freddy [ December 17th, 2023, 7:47 pm ]
Post subject:  Re: Forum replacements problems.

Banned hosts are always per whole forum, what's why banned hosts in themaPoster are for whole forum.

To do that per section in themaPoster easily is not really possible.

You can add imgbox as banned host (but it will affect all sections).

Author:  unicorn [ December 24th, 2023, 12:01 pm ]
Post subject:  Re: Forum replacements problems.

Hi Freddy:

from:
Code:
[b]https://ddownload.com/xxxxxxxx[/b]


to:
Code:
[b][url=https://ddownload.com/xxxxxxxx]https://ddownload.com/xxxxxxxx[/url][/b]


but only for this host, because inside are others too

thank you

Author:  Freddy [ December 24th, 2023, 6:33 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
https?://ddownload.com[^\s\[<]+


Replace with:
Code:
[url=$0]$0[/url]


Enable regex search.

Author:  zaika [ February 4th, 2024, 5:11 pm ]
Post subject:  Re: Forum replacements problems.

how i can do this Freddy

Before:

Code:
MB

[b]BUON DOWNLOAD[/b]


After

Code:
MB
==========
[b]BUON DOWNLOAD[/b]


when i forget the division for blog i want add it.

Author:  Freddy [ February 4th, 2024, 7:19 pm ]
Post subject:  Re: Forum replacements problems.

Just add simple replacement (not regex).

Search for:
Code:
[b]BUON DOWNLOAD[/b]


Replace with:
Code:
==========\n[b]BUON DOWNLOAD[/b]

Author:  zaika [ February 4th, 2024, 10:14 pm ]
Post subject:  Re: Forum replacements problems.

but exactly i need to add the divisor ONLY if NOT present between the -> MB and the BUON DOWNLOAD

Code:
M

[b]BUON DOWNLOAD[/b]


in that way is correct?

After
Code:
MB\n[b]BUON DOWNLOAD[/b]


Before
Code:
MB\n==========\n[b]BUON DOWNLOAD[/b]

Author:  Freddy [ February 5th, 2024, 12:14 am ]
Post subject:  Re: Forum replacements problems.

That's incorrect a bit. You have two new lines after "MB" (not just one).

Here is the correct:

Search for:
Code:
MB\n\n[b]BUON DOWNLOAD[/b]


Replace with:
Code:
MB\n==========\n[b]BUON DOWNLOAD[/b]

Author:  zaika [ February 6th, 2024, 4:53 pm ]
Post subject:  Re: Forum replacements problems.

than you

Page 74 of 74 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/