It is currently March 28th, 2024, 9:32 pm



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 66, 67, 68, 69, 70, 71, 72 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: March 15th, 2022, 8:05 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: March 30th, 2022, 4:33 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: March 30th, 2022, 4:41 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 2nd, 2022, 10:06 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 2nd, 2022, 11:48 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
(.+?[0-9]{4}).+


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 11th, 2022, 2:53 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 11th, 2022, 7:06 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: April 13th, 2022, 7:05 am 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
@Freddy
Awesome, I'm ok with multiple replacement. Thank You for your help.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 27th, 2022, 7:49 am 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 27th, 2022, 9:37 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 2nd, 2022, 9:04 pm 

Joined: August 2nd, 2022, 9:02 pm
Posts: 1
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 3rd, 2022, 1:50 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 10th, 2022, 4:03 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
input
<a href="https://google.com">N/A</a>

output
N/A


Last edited by Crackpot on August 10th, 2022, 4:13 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 10th, 2022, 4:08 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 10th, 2022, 4:14 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
<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)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 66, 67, 68, 69, 70, 71, 72 ... 74  Next

Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC