It is currently April 20th, 2024, 5:11 am



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: May 4th, 2013, 12:20 pm 

Joined: March 31st, 2012, 8:50 am
Posts: 338
in one forum i must hide download links like this:

[HIDE-REPLY][ code]link[/ code][/HIDE-REPLY]

but links from imdb should not be in hide code (i was warned about this)

so, i chosed in thema "use code for links" and in replace option i chosed to be replaced links tag with hide-reply tag. but this will code imdb links with hide-reply tag. what to do to not hide-reply for imdb links?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 6th, 2013, 11:31 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12642
Location: Earth
Add two replacements:

Search string: [links]
Replace with: [HIDE-REPLY][ code]

Search string: [/links]
Replace with: [/ code][/HIDE-REPLY]

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 6th, 2013, 4:36 pm 

Joined: March 31st, 2012, 8:50 am
Posts: 338
thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 29th, 2013, 3:49 pm 

Joined: February 19th, 2012, 5:48 am
Posts: 36
Hi freddy
how can i replace special caracters like () ? themaposter give me error when i try to replace ( with empty !
PS : Regex Tester is enabled !


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 29th, 2013, 5:01 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12642
Location: Earth
Do you really need regex?

If you don't need regex just use simple replacement without regex enabled for it. Then you don't see any errors.

If you really need regex then you need to escape these characters with "\", so \(\). But don't use regex if you don't really need regex.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 29th, 2013, 6:21 pm 

Joined: February 19th, 2012, 5:48 am
Posts: 36
Freddy wrote:
Do you really need regex?

If you don't need regex just use simple replacement without regex enabled for it. Then you don't see any errors.

If you really need regex then you need to escape these characters with "\", so \(\). But don't use regex if you don't really need regex.


:D i don't really know how means Regex Option & what can we do with it ! but if i can replace witout it so i'll disable it :lol:


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 29th, 2013, 7:04 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12642
Location: Earth
There is some info about them in the FAQ: http://poster.freddy.lt/faq.php

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 10th, 2013, 11:39 pm 

Joined: June 12th, 2011, 3:52 pm
Posts: 30
Hi freddy,

I read whole thread and found similar problem but tested and didn't work, so i need help pls.

I wanna replace this code:

Code:
[URL=http://imgadult.com/img-51afa3c545d90.html][IMG]http://imgadult.com/upload/small/2013/06/06/51afa3c545cb5.jpg[/IMG][/URL]

to

Code:
[IMG]http://imgadult.com/upload/small/2013/06/06/51afa3c545cb5.jpg[/IMG]


On some forums clickable images are disallowed so i need just pic inside [img] tags

tried with:
Search string: \[url=http://(www\.)?imgadult.*?\](.*?)\[/url\]
Replaced with: $2

but won't work.. :/


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 11th, 2013, 1:06 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12642
Location: Earth
Search string: (?i)\[url=http://(www\.)?imgadult.*?\](.*?)\[/url\]
Replace with: $2

Make sure to tick the regex checkbox.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 11th, 2013, 11:24 am 

Joined: June 12th, 2011, 3:52 pm
Posts: 30
Freddy wrote:
Search string: (?i)\[url=http://(www\.)?imgadult.*?\](.*?)\[/url\]
Replace with: $2

Make sure to tick the regex checkbox.


Yup works great, tnx a lot! :)

Btw i'm curious, if regex checkbox stay ticked, will be all other (non regex) replacemants ignored ? tnx


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 11th, 2013, 4:53 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12642
Location: Earth
The regex checkbox is for individual replacement. No replacements will be ignored.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 20th, 2013, 6:28 pm 

Joined: May 29th, 2011, 10:47 pm
Posts: 286
Freddy, as you can see, Uploaded links has been shortened:

This:
Code:
http://uploaded.net/file/3xp87o7f/Amateur626.rar

To this:
Code:
http://uploaded.net/file/3xp87o7f


Now, links in my blog appears like this:

Code:
3xp87o7f


I have this Regex configuration:

Search string: http://uploaded\.net[^\s\[\]<'\"]+/([^\s\[\]<'\"]+)
Replace with: <a href="$0" target="_blank">$1</a>

What I must change for looking better? For example, like this:

Code:
http://uploaded.net/file/3xp87o7f


I tried changing "Replace all links to URL" but I have a Wordpress blog and runs with HTML. Before this configuration (and since 1.21 Themaposter version) I posted always without problems.

Anyway, thanks in advance for your help, it's totally usefull! ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 28th, 2013, 8:38 am 

Joined: June 27th, 2013, 7:47 am
Posts: 8
string[] { "…", "#", "$", "%", "^", "*", "'", "’", "`", "“", "\"", "“", "”", "©", "•", "‘", "™", "®", "»", "«", "�" };


how to remove special characters in the article?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: July 4th, 2013, 5:28 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12642
Location: Earth
miste1982 wrote:
string[] { "…", "#", "$", "%", "^", "*", "'", "’", "`", "“", "\"", "“", "”", "©", "•", "‘", "™", "®", "»", "«", "�" };


how to remove special characters in the article?


You could add one regex replacement like this [#,$,%,^,etc.] and replace with nothing.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: July 10th, 2013, 9:12 pm 

Joined: May 29th, 2011, 10:47 pm
Posts: 286
What about Uploaded links?? :(


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 74  Next

Who is online

Users browsing this forum: No registered users and 16 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