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

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

Author:  Freddy [ March 15th, 2022, 8:05 pm ]
Post subject:  Re: Forum replacements problems.

You should not use any "code" tags around the links yourself. Let the program to do that automatically as described here: http://poster.themasoftware.com/faq.php?expand=faq104

For that forum just choose to surround links with "url" tags for each link.

For forums where you need "code" just option to surround with "code" tag (it will do that automatically).

To add the member tag you can do with this replacement:
Search for:
Code:
(?s)([^\n]*https?://filecrypt.+?keeplinks.+?(\n|$))


Replace with:
Code:
[member]\n$1\n[/member]


Enable regex search.

Author:  zaika [ March 30th, 2022, 4:33 pm ]
Post subject:  Re: Forum replacements problems.

And this ?

Before
Code:
[code]https://filecrypt.cc/Container/F18A9A283E.html[/code]
[code]https://www.keeplinks.org/p75/622f5bdddaa5e[/code]


After
Empty

thx for help

Author:  Freddy [ March 30th, 2022, 4:41 pm ]
Post subject:  Re: Forum replacements problems.

Just add filecrypt.cc and keeplinks.org to banned hosts for that site and those lines will be fully removed automatically when posting to that site.

Author:  Crackpot [ April 2nd, 2022, 10:06 am ]
Post subject:  Re: Forum replacements problems.

input

Code:
Young 14 Ones 2014 LIMITED 1080p BluRay x264-AN0NYM0US
At the Devils Door 2014 1080p BluRay x264-ROVERS


Output
Code:
Young 14 Ones 2014
At the Devils Door 2014

Author:  Freddy [ April 2nd, 2022, 11:48 am ]
Post subject:  Re: Forum replacements problems.

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


Replace with:
Code:
$1


Enable regex search.

Author:  Freedom35 [ April 11th, 2022, 2:53 pm ]
Post subject:  Re: Forum replacements problems.

Hey Freddy
Can you help me with this one:

I need to replace only this line that has that param tag dtcast

before:
Code:
<param=tax_input[dtcast]=Tommy Handley, Evelyn Dall, George Moon>

after:
Code:
<param=tax_input[dtcast]=[tag]Tommy Handley[/tag][tag]Evelyn Dall[/tag][tag]George Moon[/tag]>


meaning I need to surround name with [tag]PART THAT"S CHANGING[/tag]

The names and number of names is always different.

First and last replace is easy but how to match all commas in a line containing word dtcast...?
Thanks

@Edit
Since The names are leetched from imdb by TL I can add something to the enclosing > to make it easier to replace

Author:  Freddy [ April 11th, 2022, 7:06 pm ]
Post subject:  Re: Forum replacements problems.

Would only be possible with multiple replacements which would target each case separately (replacement for 1 name, another for 2 names, another for 3 names, etc.)

I believe IMDB don't return more than 5 or 6 names, so 5 or 6 replacements for each case would be needed.

For one name:
Search for:
Code:
<param=tax_input\[dtcast\]=([^,\n]+?)>


Replace with:
Code:
<param=tax_input[dtcast]=[tag]$1[/tag]>


Enable regex search.

For two names:
Search for:
Code:
<param=tax_input\[dtcast\]=([^,\n]+?),([^,\n]+?)>


Replace with:
Code:
<param=tax_input[dtcast]=[tag]$1[/tag][tag]$2[/tag]>


Enable regex search.

For three names:
Search for:
Code:
<param=tax_input\[dtcast\]=([^,\n]+?),([^,\n]+?),([^,\n]+?)>


Replace with:
Code:
<param=tax_input[dtcast]=[tag]$1[/tag][tag]$2[/tag]>[tag]$3[/tag]>


Enable regex search.

etc.

Author:  Freedom35 [ April 13th, 2022, 7:05 am ]
Post subject:  Re: Forum replacements problems.

@Freddy
Awesome, I'm ok with multiple replacement. Thank You for your help.

Author:  zaika [ June 27th, 2022, 7:49 am ]
Post subject:  Re: Forum replacements problems.

its possibile do this

After:
http://ul.to/2ebikms0

or
http://uploaded.net/file/2ebikms0/MstrN5.OV3R.rar



Before:
Code:
http://ul.to/2ebikms0


or
Code:
http://uploaded.net/file/2ebikms0/MstrN5.OV3R.rar


i want for one forum add TAG CODE to every links of UPLOADED

Author:  Freddy [ June 27th, 2022, 9:37 am ]
Post subject:  Re: Forum replacements problems.

In "CONFIG" -> "Hosts" -> under file hosts add "ul.to" and "uploaded.net".

In "WEBSITES" -> select needed site -> under "Main settings" -> choose to "Use code for links" -> press "Update" button.

Author:  bolmreti [ August 2nd, 2022, 9:04 pm ]
Post subject:  Re: Forum replacements problems.

Hello i have tittle like this
PornWorld.22.08.02.Angelica.Heart.XXX.720p.HEVC.x265.PRT
and i want it to be like this -> Angelica Heart (22.08.02)

Thanks!

Author:  Freddy [ August 3rd, 2022, 1:50 pm ]
Post subject:  Re: Forum replacements problems.

Add under "Subject" replacements (must be added in this order).

Search for:
Code:
.


Replace with:
Code:
space


Simple replacement (not regex), in replace with enter space [long key] (not the word space).

Search for:
Code:
(?i).+?([0-9]{2}).([0-9]{2}).([0-9]{2}).(.+?).XXX.+


Replace with:
Code:
$4 ($1.$2.$3)


Enable regex search.

Author:  Crackpot [ August 10th, 2022, 4:03 pm ]
Post subject:  Re: Forum replacements problems.

input
<a href="https://google.com">N/A</a>

output
N/A

Author:  Freddy [ August 10th, 2022, 4:08 pm ]
Post subject:  Re: Forum replacements problems.

Do you only want that for Google links which has N/A text?

Or the URL can be anything, but you want to target "N/A".

Or the URL must be Google, but "N/A" text can be different.

I would need more details.

Author:  Crackpot [ August 10th, 2022, 4:14 pm ]
Post subject:  Re: Forum replacements problems.

<a href="https://google.com/search.php?">N/A</a>

link will be always same domain "https://google.com/search.php?xyz random etc" yes text will be always N/A

================

I am not sure if it's possible or not. here is another one
input
Code:
<a href="https://google.com/search.php? random word">Meredith Garretson (writer)</a>
<a href="https://google.com/search.php? random word">Paolo Bianchini (story)</a>


Output
Code:
<a href="https://google.com/search.php? random word">Meredith Garretson</a> (writer)
<a href="https://google.com/search.php? random word">Paolo Bianchini</a> (story)

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