WordPress.org

Ready to get started?Download WordPress

Forums

Word Replacer
Code line replacement (5 posts)

  1. FenyX
    Member
    Posted 3 years ago #

    I want to filter some objects automatically, so I try to replace it with an invisible object such as "<!-- Filtered Ads -->".

    So I enter the following text in the Original left field to create my first rule
    "<p><a target="_blank" rel="nofollow" href="http://www.anydomain.com">Advertising Links » Item</a></p>"

    but after clicking 'Add/Update Words' my code text is modified to
    "<p><a target=\"_blank\" rel=\"nofollow\" href=\"http://www.anydomain.com\">Advertising Links » Item</a></p>"

    The result of course is not what I've expected as it replaces the full posts content. I've tested to enable/disable the "Insensitive" checkbox but it changes nothing. "Posts" is checked and "RegEx" is unchecked.

    I know this plugin hasn't been made to replace some parts of the posts code but I can't find a good filter plugin that would suit my needs. So any help on using Word replacer would be very welcome...

  2. FenyX
    Member
    Posted 3 years ago #

    I've just tested to replace anydomain.com/index.php/ with google.com/search?q= and my full posts content has still disappeared. Using firebug I can see that my div.entry class has been fully removed (huh?!?). Strange. Do I have to abandon this plugin to do what I need or did I just make something wrong?

  3. FenyX
    Member
    Posted 3 years ago #

    Finally I can do it with the Text Obfuscator concurrent plugin. No RegEx but at least it works well...
    Anyway some help about Word Replacer would be still welcome.

  4. takien
    Member
    Plugin Author

    Posted 3 years ago #

    Hello, what version of word replacer you're using? There's a problem with stripslashes in old version. However, in version 0.2.2 that problem already fixed.
    if it still happens, make sure your magic_quotes_gpc in your php settings is set to OFF.

    thankyou for using my plugins.

  5. FenyX
    Member
    Posted 3 years ago #

    It was 2 weeks ago so I've switched to Text Obfuscator, sorry. Anyway as I'll need to make some "search and replace" on another blog very soon, I promise to try your new version and to give you my feedback. Thanks for your work, takien.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic