It is currently March 28th, 2024, 11:28 pm



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 41, 42, 43, 44, 45, 46, 47 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: September 2nd, 2018, 2:57 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
Freddy wrote:
zaika wrote:
Freddy wrote:
In "FORUMS" -> select needed forum -> There is an option to use "hide with url for links".

Make sure hosts are added as described: http://poster.freddy.lt/faq.php?expand=faq104


sorry me freddy but making this in all forum i will have that all links similar will be surrounded, but i want this action only for ONE forum, so please is possible make this action only in one forum using your help in REPLACEMENTS ?i need make this ONLY in one forum i cannot dot this for all.


That option is for specific forum only. You can set what ever you need for each forum.

If you set "hide with url" only for one forum it will be used only for that forum (it's forum specific setting for each forum).

For other forums set to "replace with nothing" or "use code" or use only "hide" or only "url".

You can set for each forum what you need.



For me is very difficult made this, because i have a lot of forum where they want CODE instead of LINKS and some other TAG, you will make me one big pleasure if you can help me creating for me comando for use in REPLACEMENTS as i requested in 1° topic here:

viewtopic.php?p=30426#p30426

please if you can suggest me it.

thx you so much


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 2nd, 2018, 3:31 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
That's why special setting was made in the first place.

If some forum wants "CODE" just choose option to surround with "CODE" automatically.

If some forum wants some other tag, just choose that option.

It's much easier to do then with replacements. That setting is specifically made for this.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 2nd, 2018, 8:02 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
Freddy wrote:
That's why special setting was made in the first place.

If some forum wants "CODE" just choose option to surround with "CODE" automatically.

If some forum wants some other tag, just choose that option.

It's much easier to do then with replacements. That setting is specifically made for this.


the problem is that ALREADY i use CODE for my links in PREFORM, i create article with links that ALREADY have CODE because i need them in this way, so my links are not without TAG when i create article them have already CODE. for this i have problem by the way if you cannot write me code for replacements its ok.

thx


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 3rd, 2018, 6:16 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
@zaika You would need to add two replacements (one to add url tags, another for hide).

Search for:
Code:
https?://(www\.)?(keeplinks|filecrypt).+


Replace with:
Code:
[url=$0]$0[/url]


Enable regex.

Search for:
Code:
(?s)(.+\n)(.+?keeplinks.+?filecrypt.+?)(\n|$)


Replace with:
Code:
$1[hide]$2[/hide]$3


Enable regex.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 3rd, 2018, 8:41 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
Thank you so much Freddy i will try :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 3rd, 2018, 9:45 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
Done but create me links in this way:

https://filecrypt.cc/Container/D46A30878E.html
https://www.keeplinks.co/p95/5b8d99d03ebfe

The Part in BOLD is ACTIVE as if there is URL, other part NO ACTIVE as WITHOUT URL

1° There isn't TAG HIDE
2° Link are ACTIVE with URL till the point
Example:-> https://filecrypt. and https://www.keeplinks.

All other part of URL are not active, seems as the url is divided in 2 part one BEFORE the POINT the other AFTER the POINT.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 4th, 2018, 5:01 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
I just forgot to copy "+" at the end for first url replacement (fixed above as well).

Search for:
Code:
https?://(www\.)?(keeplinks|filecrypt).+


Replace with:
Code:
[url=$0]$0[/url]


Enable regex.


For hide, your first example was different (viewtopic.php?p=30426#p30426). The links were in different order.

I wrote the replacement for first example where first link is keeplinks and second link is filecrypt.

If you changed the order of your links now just make changes to replacement and replace the order.

Search for:
Code:
(?s)(.+\n)(.+?filecrypt.+?keeplinks.+?)(\n|$)


Replace with:
Code:
$1[hide]$2[/hide]$3


Enable regex.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 11th, 2018, 1:54 pm 

Joined: August 9th, 2017, 12:37 pm
Posts: 80
Freddy wrote:
I just forgot to copy "+" at the end for first url replacement (fixed above as well).

Search for:
Code:
https?://(www\.)?(keeplinks|filecrypt).+


Replace with:
Code:
[url=$0]$0[/url]


Enable regex.


For hide, your first example was different (viewtopic.php?p=30426#p30426). The links were in different order.

I wrote the replacement for first example where first link is keeplinks and second link is filecrypt.

If you changed the order of your links now just make changes to replacement and replace the order.

Search for:
Code:
(?s)(.+\n)(.+?filecrypt.+?keeplinks.+?)(\n|$)


Replace with:
Code:
$1[hide]$2[/hide]$3


Enable regex.



Thx Freddy for your help but i forgot to tell you that in first part the links have TAG CODE, i use it because require in all other forum so correct version is this:

After
Code:
[code]https://www.keeplinks.co/p95/5b81b9854368e[/code]

[code]https://filecrypt.cc/Container/31306764FA.html[/code]


Before
Code:
[hide]
[url=https://www.keeplinks.co/p95/5b81b9854368e]https://www.keeplinks.co/p95/5b81b9854368e[/url]

[url=https://filecrypt.cc/Container/31306764FA.html]https://filecrypt.cc/Container/31306764FA.html[/url]
[/hide]


if you prefer this BEFORE too is same for me:

Before
Code:

[hide][url=https://www.keeplinks.co/p95/5b81b9854368e]https://www.keeplinks.co/p95/5b81b9854368e[/url][/hide]

[hide][url=https://filecrypt.cc/Container/31306764FA.html]https://filecrypt.cc/Container/31306764FA.html[/url][/hide]



the only thing i was missing was the TAG CODE that i have around links


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 11th, 2018, 6:42 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
If that's the only place where you have code tags just add simple replacement (not regex) to remove them (don't copy from below, I added extra spaces so that forum would show it normally).

Add them before adding those other two.

Search for (without any spaces):
Code:
[ code ]


Replace with:
Code:
(leave empty)


----------------------------------------

Search for (without any spaces):
Code:
[/ code ]


Replace with:
Code:
(leave empty)

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 9th, 2018, 3:52 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 667
how can we remove last line of the template.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 9th, 2018, 4:07 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
You can remove last message line with replacement:

Search for:
Code:
\n.+$


Replace with:
Code:
(leave empty)


Enable regex.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 9th, 2018, 8:45 pm 

Joined: October 4th, 2016, 12:39 am
Posts: 43
How to find and replace only first occurence in message?

Example:

before

Quote:


after

Quote:


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 10th, 2018, 6:10 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
(?is)https?://nitroflare.+


Replace with:
Code:
Download Nifroflare\n$0


Enable regex.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 10th, 2018, 6:33 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
hi bro ,some site limit character in title for example 80 character ,if post contains title more then 80 post failed ,
thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: October 10th, 2018, 6:58 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
You can change subject characters limit setting in "CONFIG" -> "General posting" -> to 80.

Or if you want to limit it only for specific forum you can add replacement in "Subject" replacements for needed forum.

Search for:
Code:
^([^\n]{80}).+$


Replace with:
Code:
$1


Enable regex.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 41, 42, 43, 44, 45, 46, 47 ... 74  Next

Who is online

Users browsing this forum: No registered users and 11 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:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC