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

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

Author:  Bak3 [ September 28th, 2021, 9:01 pm ]
Post subject:  Re: Forum replacements problems.

INPUT:
Code:
[url=URL][img]URL[/img][/url]

[size="18"][color=#ba0000][b]Movies Name[/b][/color][/size]

[b]IMDB information:[/b]



Output:

INPUT:
Code:
[url=URL][img]URL[/img][/url]

[b]IMDB information:[/b]

Author:  Freddy [ September 29th, 2021, 8:36 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[size="18"\]\[color=#ba0000\].+?\[/size\]\s*(\[b\]IMDB)


Replace with:
Code:
$1


Enable regex search.

Author:  Bak3 [ October 3rd, 2021, 6:34 pm ]
Post subject:  Re: Forum replacements problems.

INPUT:
Code:
Download from RapidGator:
[URL="#"]Download from RapidGator[/URL]
Download from DDownload:
[URL="#"]Download from DDownload[/URL]



OUTPUT:
Download from RapidGator:
Code:
[URL="#"][/URL]


Download from DDownload:
Code:
[URL="#"][/URL]




And if it possible to put on all Messages on [center] i need it for specific website on creator i don't have [center] on old file

Author:  Freddy [ October 3rd, 2021, 6:48 pm ]
Post subject:  Re: Forum replacements problems.

@Bak3

Your BBCode URL tags in after example are not valid (they won't work at all - will be without any text).

For center websites are in themaPoster (not themaCreator), just add the replacement for needed site in themaPoster and it will be applied only when posting to that site:

Search for:
Code:
(?s).+


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


Enable regex search.

Author:  Bak3 [ October 3rd, 2021, 7:28 pm ]
Post subject:  Re: Forum replacements problems.

I send on screenshots perhaps it will be better understood

1. http://prntscr.com/1unpc9d

2. http://prntscr.com/1unqhg2 for website likes this

3. http://prntscr.com/1unqd0x forum likes this

Defult setting from themacreator : http://prntscr.com/1unqinc

Author:  stefan-te [ October 3rd, 2021, 9:39 pm ]
Post subject:  Re: Forum replacements problems.

Bak3 , just post what your post looks like when you post it right now, and how would you like to be edited too.

Author:  Bak3 [ October 3rd, 2021, 10:53 pm ]
Post subject:  Re: Forum replacements problems.

I want this

For my website 1. http://prntscr.com/1unqhg2

For forum 2. http://prntscr.com/1unqd0x


the main configuration from ThemaPoster is this
https://prnt.sc/1unqinc

Author:  Freddy [ October 4th, 2021, 7:10 am ]
Post subject:  Re: Forum replacements problems.

Add this replacement for needed forum:

Search for:
Code:
(?i)\[URL=\"(.+?)\"\].+?\[/URL\]


Replace with:
Code:
[code]$1[/code]


Enable regex search.

Author:  Crackpot [ October 4th, 2021, 7:28 am ]
Post subject:  Re: Forum replacements problems.

input
Code:
[align=center][img]https://images2.imgbox.com/0b/03/VetvJDaN_o.jpg[/img][/align]


output
Code:
[align=center][img]https://domain.com/<postSubject>.jpg[/img][/align]




please note there is [align=center] before the image otherwise it will conflict with other image link.

Author:  Bak3 [ October 4th, 2021, 10:03 am ]
Post subject:  Re: Forum replacements problems.

and for wordpres we have a solution how can we do it like in the photo I sent
https://prnt.sc/1unqhg2

Author:  Freddy [ October 4th, 2021, 4:00 pm ]
Post subject:  Re: Forum replacements problems.

@Crackpot

Search for:
Code:
(\[align=center\]\[img\]).+?(\[/img\]\[/align\])


Replace with:
Code:
$1https://domain.com/<postSubject>.jpg$2


Enable regex search.

@Bak3

Search for:
Code:
(?i)\[URL=\"(.+?)\"\].+?\[/URL\]


Replace with:
Code:
[url]$1[/url]


Enable regex search.

Author:  Bak3 [ October 8th, 2021, 11:36 am ]
Post subject:  Re: Forum replacements problems.

input:
Marie - Marie Sets Out To Discover The Unknown ... (16.06.2021)_1080p i want to remove only the numbers they are random on end text same are

- 16062021
16062021
160621
- 160621
(16.06.2021)_1080p
(16.06.2021)_720p
etc

output:
i wanna only text and just remove number on and remove the numbers at the end of the text

Author:  Freddy [ October 8th, 2021, 6:48 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
-? \(?[0-9]+\.?[0-9]+\.?[0-9]+


Replace with:
Code:
(leave empty)


Enable regex search.

Search for:
Code:
_?(720|1080)p


Replace with:
Code:
(leave empty)


Enable regex search.

Author:  Crackpot [ October 9th, 2021, 11:05 am ]
Post subject:  Re: Forum replacements problems.

Input
Knight.Rider.S01E01.Episode.Name.1080p.Bluray.x265-D3G

Output
Knight.Rider.S01E01.1080p.Bluray.x265-D3G

i can get this result using this regex.
Code:
search
(?i)(S[0-9]+E[0-9]+).+?(1080p|720p)

replace with
$1.$2


but if release is
Knight.Rider.S01E01E02.Episode.Name.1080p.Bluray.x265-D3G

output giving
Knight.Rider.S01E01.1080p.Bluray.x265-D3G

it's keeping another episode number from the name. can you please help me with the regex to keep the `E02`

Author:  Freddy [ October 9th, 2021, 3:27 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(?i)(S[0-9]+E[0-9]+)(E[0-9]+)?.+?(1080p|720p)


Replace with:
Code:
$1$2.$3


Enable regex search.

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