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

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

Author:  Freddy [ August 29th, 2021, 7:37 pm ]
Post subject:  Re: Forum replacements problems.

You need to escape dot. I just didn't because it won't matter there (. matches any character anyway).

It uses Java regular expressions.

It's mentioned in this link and there are some useful links at the end to some resources: http://poster.themasoftware.com/faq.php?expand=faq204

Author:  ad-team [ September 1st, 2021, 9:40 pm ]
Post subject:  Re: Forum replacements problems.

INPUT
Code:
Ipod & Itunes For Dummies (Isbn - 0470174749)

Code:
Baby Massage For Dummies (Isbn - 0764578413)


Output
Code:
Ipod & Itunes For Dummies

Code:
Baby Massage For Dummies


need in regex

Author:  stefan-te [ September 2nd, 2021, 3:43 am ]
Post subject:  Re: Forum replacements problems.

ad-team wrote:
INPUT
Code:
Ipod & Itunes For Dummies (Isbn - 0470174749)

Code:
Baby Massage For Dummies (Isbn - 0764578413)


Output
Code:
Ipod & Itunes For Dummies

Code:
Baby Massage For Dummies


need in regex


https://regex101.com/r/mMVlcs/1

Author:  Freddy [ September 2nd, 2021, 5:59 am ]
Post subject:  Re: Forum replacements problems.

stefan-te answer is fine. You can use that.

Author:  ad-team [ September 3rd, 2021, 7:56 pm ]
Post subject:  Re: Forum replacements problems.

thanks friends

Author:  musaidi [ September 27th, 2021, 12:28 pm ]
Post subject:  Re: Forum replacements problems.

Hey, is there a way to add text above links and add spoiler for 1 forum only? single topic

before
Code:
https://k2s.cc/file/0a7

https://rapidgator.net/file/66e

after
Code:
Keep2share Rapidgator
[spoiler]https://k2s.cc/file/0a7

https://rapidgator.net/file/66e[/spoiler]


something like that

EDIT:

Also some sections require to choose "Prefix" like BDSM Bondage etc
Can I set it somewhere just for 1 forum?

Author:  Freddy [ September 27th, 2021, 1:40 pm ]
Post subject:  Re: Forum replacements problems.

For spoiler: setup as described here, it will be added automatically for only one forum where you choose that option (choose surround links with custom tag - enter "spoiler" -> press "Update"). Don't forget to all the file hosts as described in FAQ: http://poster.themasoftware.com/faq.php?expand=faq104

For prefix: setup the prefix only for one forum and it will be used only for that forum: http://poster.themasoftware.com/faq.php?expand=faq206

Prefixes are only used if you have them setup. If not - it will be just ignored for all others.

To add text add this replacement:
Search for:
Code:
(?s)https?://k2s.cc.+


Replace with:
Code:
Keep2share Rapidgator\n$0


Enable regex search.

Author:  musaidi [ September 27th, 2021, 1:59 pm ]
Post subject:  Re: Forum replacements problems.

How can I setup the Prefixs? Where to look for prefix ID and Icon ID?

EDIT:

Oh I reply too fast didnt notice ur prefix link line, thanks again mate

Author:  musaidi [ September 27th, 2021, 2:12 pm ]
Post subject:  Re: Forum replacements problems.

Hmm The spoiler tag works but not like I thought

I want em under one spoiler tag
Code:
[spoiler]https://k2s.cc/file/0a7

https://rapidgator.net/file/66e[/spoiler]


not separated

after using "surround links with custom tag" it looks like that
Code:
[spoiler]https://k2s.cc/file/0a7[/spoiler]

[spoiler]https://rapidgator.net/file/66e[/spoiler]


Can we do both links under 1 spoiler tag?

Author:  stefan-te [ September 27th, 2021, 9:38 pm ]
Post subject:  Re: Forum replacements problems.

^if its only for one specific forum you can do it like this..

https://regex101.com/r/1NHx8O/1/

Author:  musaidi [ September 27th, 2021, 10:12 pm ]
Post subject:  Re: Forum replacements problems.

Thanks, but doesnt work

I did copy/paste
Search for:
\[\/spoiler\]\n\n\[spoiler\]

and Replace with:
\n\n

and Regex on

same as before
Code:
[spoiler]https://k2s.cc/file/0a7[/spoiler]

[spoiler]https://rapidgator.net/file/66e[/spoiler]


EDIT:

I replaced the code and this is what i get
Search for: \n\n
Replace with:
\[\spoiler\]\n\n\[/spoiler\]

Code:
[spoiler]

[/spoiler]https://k2s.cc/file[spoiler]

[/spoiler]https://rapidgator.net/file/.mp4.html[spoiler]

[/spoiler]


EDIT:
Actually it doesnt work at all, when made post on forum it taged ever line into spoiler

Author:  Freddy [ September 28th, 2021, 4:28 am ]
Post subject:  Re: Forum replacements problems.

That's wrong.

Select option to "Surround links with nothing" first (press "Update" button).

Then add this replacement:

Search for:
Code:
(?s)https?://k2s.+https?://rapidgator.+?(\n|$)


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


Enable regex search.

Author:  musaidi [ September 28th, 2021, 7:43 am ]
Post subject:  Re: Forum replacements problems.

you are the man, appreciate your effort thanks mate

Author:  musaidi [ September 28th, 2021, 11:39 am ]
Post subject:  Re: Forum replacements problems.

I think that last question and Im done with settings, wonder if there is replacement for sucha case like folder link for 1 forum. Inside folder is always 1 file, is it possible to extract the file and post in megathread insted of folder link

Just an example

Folder
https://k2s.cc/file/1aa83cfe37/_480

File inside folder
https://k2s.cc/file/6c5c74ac3/_480.mp4

If not, I will just skip on post there, thanks in advance

Author:  Freddy [ September 28th, 2021, 11:54 am ]
Post subject:  Re: Forum replacements problems.

No, that's not really possible.

You could do it only with some custom script probably.

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