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

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

Author:  Crackpot [ February 21st, 2021, 12:37 pm ]
Post subject:  Re: Forum replacements problems.

thank you :)

Author:  Bak3 [ March 12th, 2021, 10:52 am ]
Post subject:  Re: Forum replacements problems.

Hello,

Before:
Skills.Like.This.2007.1080p.WEBRip.x264-RARBG

After:
Skills Like This (2007) [1080p] [WEBRip] [x264] [RARBG]


I use this (.+)([0-9]{4})(.+? )(.+?)- --> $1($2) [$3] [$4]
Best have some problem with [1080p] he maked [1080] [p]

Author:  Freddy [ March 12th, 2021, 1:03 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(.+?)([0-9]{4})[ \.](.+?)[ \.](.+?)[ \.](.+?)[ \.-](.+)


Replace with:
Code:
$1($2) [$3] [$4] [$5] [$6]


Enable regex search.

And add separate simple replacement (not regex) to replace dots with spaces.

Author:  zaika [ March 22nd, 2021, 3:07 pm ]
Post subject:  Re: Forum replacements problems.

Hi Freddy its possible

Search for :
Code:
[b]Download


Replace with:

Code:
<param=uam_update_groups=1>
<param=uam_user_groups[1][id]=1>
[b]Download

Author:  Freddy [ March 22nd, 2021, 3:39 pm ]
Post subject:  Re: Forum replacements problems.

Yes, your replacement is fine.

Just add in "replace with" - "\n" for new lines.

Or if you use themaCreator to generate posts just add those lines in your "Main" template.

Search for:
Code:
[b]Download


Replace with:
Code:
<param=uam_update_groups=1>\n
<param=uam_user_groups[1][id]=1>\n
[b]Download


Simple replacement (not regex).

Author:  ad-team [ April 4th, 2021, 4:41 pm ]
Post subject:  Re: Forum replacements problems.

before
Quote:
Space Launch Live Splashdown 2020 720p WEBRip 800MB x264-GalaxyRG


Quote:
Original Gangster 2020 1080p WEBRip 1400MB DD5 1 x264-GalaxyRG

Quote:
The Dry 2021 720p WEBRip 999MB HQ x265 10bit-GalaxyRG


after
Quote:
Space Launch Live Splashdown 2020 720p WEBRip x264-GalaxyRG


Quote:
Original Gangster 2020 1080p WEBRip DD5 1 x264-GalaxyRG

Quote:
The Dry 2021 720p WEBRip HQ x265 10bit-GalaxyRG


in regex bro

Author:  Freddy [ April 4th, 2021, 5:39 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
[0-9]+MB\s*


Replace with:
Code:
(leave empty)


Enable regex search.

Author:  BuscaTreskys [ April 22nd, 2021, 7:51 pm ]
Post subject:  Re: Forum replacements problems.

Hi,

I need allways center mi text.

Before:
Code:
[SIZE=6][COLOR=Green][B][COLOR=Green][FONT=Century Gothic]Internet Download Manager v6.38 Build 18[/FONT][/COLOR][/B][/COLOR][/SIZE]

[IMG]https://i.postimg.cc/pVw1cZYx/Fotos-00011-Internet-Download-Manager.jpg[/IMG]

[B][COLOR=Green][FONT=Century Gothic]Internet Download Manager v6.38 Build 18[/FONT][/COLOR][/B] [COLOR=Blue]|  Exe + Portable | Multileng (Español) | Medicina  Incl. | Comprimido: Si | Rar (Con Registro de Reparación) | 7.86 MB
[/COLOR][COLOR=DarkOrchid][B]Liberado: Marzo 3 de 2021[/B][/COLOR]


The initials BBCode can change.

After:
Code:
[CENTER][SIZE=6][COLOR=Green][B][COLOR=Green][FONT=Century Gothic]Internet Download Manager v6.38 Build 18[/FONT][/COLOR][/B][/COLOR][/SIZE]

[IMG]https://i.postimg.cc/pVw1cZYx/Fotos-00011-Internet-Download-Manager.jpg[/IMG]

[B][COLOR=Green][FONT=Century Gothic]Internet Download Manager v6.38 Build 18[/FONT][/COLOR][/B] [COLOR=Blue]|  Exe + Portable | Multileng (Español) | Medicina  Incl. | Comprimido: Si | Rar (Con Registro de Reparación) | 7.86 MB
[/COLOR][COLOR=DarkOrchid][B]Liberado: Marzo 3 de 2021[/B][/COLOR][/CENTER]

Author:  Freddy [ April 22nd, 2021, 7:56 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(?si)\[SIZE=6\]\[COLOR=Green\].+?\[COLOR=DarkOrchid\].+?\[/COLOR\]


Replace with:
Code:
[CENTER]$0[/CENTER]


Enable regex search.

Author:  BuscaTreskys [ April 23rd, 2021, 11:01 pm ]
Post subject:  Re: Forum replacements problems.

Freddy wrote:
Search for:
Code:
(?si)\[SIZE=6\]\[COLOR=Green\].+?\[COLOR=DarkOrchid\].+?\[/COLOR\]


Replace with:
Code:
[CENTER]$0[/CENTER]


Enable regex search.


Thanks,

But it doesn't work every time because the BBCodes change. These are not the same every time.

The can start with:
Code:
[SIZE=6][COLOR=Green][B]


or star with:
Code:
[SIZE=5][COLOR=Green][B]


or star with:
Code:
[COLOR=Green][SIZE=5][B]


or star with:
Code:
[B][COLOR=Green][SIZE=5]

or star with:
Code:
[B][COLOR=Red][SIZE=5]


or star with:
Code:
[B][COLOR=Red][SIZE=5]


or star with:
Code:
[COLOR="#2F4F4F"][SIZE=6][FONT=Century Gothic][B]


There are many forms to star the text.

And then the end the taxt change too because the order of BBCode have changed.

Author:  Freddy [ April 24th, 2021, 3:18 pm ]
Post subject:  Re: Forum replacements problems.

If it's your template it should not change for every post.

If you use themaCreator just add the "center" tags in the "Main" template.

Or if you're not using themaCreator I would just recommend to use it. You can have needed template and the post will always look the same.

Author:  Crackpot [ April 25th, 2021, 2:42 pm ]
Post subject:  Re: Forum replacements problems.

not sure if it's possible. inside my post there is text

input
[movie]Jungleland (2019)[/movie]

output

[movie]Jungleland (2019)[/movie]<tags>Jungleland (2019)</tags>

i want to update my post with tags using TM.

Author:  Freddy [ April 26th, 2021, 2:37 pm ]
Post subject:  Re: Forum replacements problems.

At the moment there is no easy way, but improved to support this using "Replace text" feature for next themaManager update (4.38).

Search for:
Code:
\[movie\](.+?)\[/movie\]


Replace with:
Code:
$0\n<tags>$1</tags>


Enable regex search.

Only from next themaManager update (4.38). Don't try it now (it will mess-up the message).

Author:  Crackpot [ April 29th, 2021, 6:13 pm ]
Post subject:  Re: Forum replacements problems.

thank you :)
another replace help please

input
[SubsPlease] Kobayashi-san Chi no Maid Dragon S2 Shorts - 04 (1080p) [E42D4E7C]

Output
Kobayashi-san Chi no Maid Dragon S2 Shorts - 04 (1080p) [SubsPlease]

Author:  Freddy [ April 30th, 2021, 5:13 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
^(\[.+?\])(.+)\[.+?\]


Replace with:
Code:
$2$1


Enable regex search.

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