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

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

Author:  iceblue [ May 4th, 2013, 12:20 pm ]
Post subject:  Re: Forum replacements problems.

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?

Author:  Freddy [ May 6th, 2013, 11:31 am ]
Post subject:  Re: Forum replacements problems.

Add two replacements:

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

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

Author:  iceblue [ May 6th, 2013, 4:36 pm ]
Post subject:  Re: Forum replacements problems.

thanks!

Author:  rabbaoss_khan [ May 29th, 2013, 3:49 pm ]
Post subject:  Re: Forum replacements problems.

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 !

Author:  Freddy [ May 29th, 2013, 5:01 pm ]
Post subject:  Re: Forum replacements problems.

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.

Author:  rabbaoss_khan [ May 29th, 2013, 6:21 pm ]
Post subject:  Re: Forum replacements problems.

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:

Author:  Freddy [ May 29th, 2013, 7:04 pm ]
Post subject:  Re: Forum replacements problems.

There is some info about them in the FAQ: http://poster.freddy.lt/faq.php

Author:  kiboboss [ June 10th, 2013, 11:39 pm ]
Post subject:  Re: Forum replacements problems.

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.. :/

Author:  Freddy [ June 11th, 2013, 1:06 am ]
Post subject:  Re: Forum replacements problems.

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

Make sure to tick the regex checkbox.

Author:  kiboboss [ June 11th, 2013, 11:24 am ]
Post subject:  Re: Forum replacements problems.

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

Author:  Freddy [ June 11th, 2013, 4:53 pm ]
Post subject:  Re: Forum replacements problems.

The regex checkbox is for individual replacement. No replacements will be ignored.

Author:  melapelatodo [ June 20th, 2013, 6:28 pm ]
Post subject:  Re: Forum replacements problems.

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! ;)

Author:  miste1982 [ June 28th, 2013, 8:38 am ]
Post subject:  Re: Forum replacements problems.

string[] { "…", "#", "$", "%", "^", "*", "'", "’", "`", "“", "\"", "“", "”", "©", "•", "‘", "™", "®", "»", "«", "�" };


how to remove special characters in the article?

Author:  Freddy [ July 4th, 2013, 5:28 pm ]
Post subject:  Re: Forum replacements problems.

miste1982 wrote:
string[] { "…", "#", "$", "%", "^", "*", "'", "’", "`", "“", "\"", "“", "”", "©", "•", "‘", "™", "®", "»", "«", "�" };


how to remove special characters in the article?


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

Author:  melapelatodo [ July 10th, 2013, 9:12 pm ]
Post subject:  Re: Forum replacements problems.

What about Uploaded links?? :(

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