WordPress.org

Ready to get started?Download WordPress

Forums

FeedWordPress conflict with quick text filter - HELP!! (1 post)

  1. nolageek
    Member
    Posted 6 years ago #

    I'm trying to get feedwordpress working along with another quickie plugin that I wrote to prepend all outgoing urls with my click tracking service. The plugin is this:

    <?php
    /*
    Plugin Name: Quickie Text Replace
    Version: 1.0a
    Plugin URI: none
    Author: You, fool.
    Author URI: none
    Description: add xclicks code to URLs.*/
    
    function xclicks_out($content)
    {
    $content = str_replace('href="http://', 'href="http://x4.xclicks.net/sc/out.php?s=3708&o=http://',$content);
    return $content;
    }
    
    add_filter('the_content','xclicks_out');
    
    ?>

    The problem is as follows:

    When I have just FeedWordPress activated, it (FWP) works fine.

    When I have just the Quickie Text Replace activated, it works fine.

    When I have them BOTH activated - the FeedWordPress works, but not the Q.T.R.

    Why would these two not play nice?

    Also, any suggetions on how to make it so that if I want to replace a few more strings, I wont have to create new functions (replace 1(), replace2(). ) I image an array os sort.

Topic Closed

This topic has been closed to new replies.

About this Topic