1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fix for Yahoo Pipes not showing in Wp-o-matic

Discussion in 'Blogging' started by cdenet, Jun 19, 2010.

  1. cdenet

    cdenet Registered Member

    Joined:
    Apr 25, 2009
    Messages:
    80
    Likes Received:
    41
    Occupation:
    SEO
    Location:
    Detroit, USA
    For anyone having trouble with yahoo pipes not working in wp-o-matic. There's a fix on this great forum somewhere that shows how to edit the url in mysql tables but it would be a hassle for multiple feeds and databases. I'm using version 1.0RC4-6 and the following works for me.

    You need to remove the encoding that wp-o-matic puts on the url.

    1. edit the wpomatic.php file (.../wp-content/plugins/wp-o-matic/wpomatic.php)
    2. go to line 1006 and change the URL line in the following:
    Code:
      function addCampaignFeed($id, $feed)
      {
        global $wpdb;
        
        $simplepie = $this->fetchFeed($feed, true);
        $url = $wpdb->escape($simplepie->subscribe_url());
    
    to look like this:
    Code:
      function addCampaignFeed($id, $feed)
      {
        global $wpdb;
        
        $simplepie = $this->fetchFeed($feed, true);
        $url = $wpdb->escape(htmlspecialchars_decode($simplepie->subscribe_url()));
    
    Hope it helps.
     
    • Thanks Thanks x 1
  2. ChikenHed

    ChikenHed Newbie

    Joined:
    Jun 7, 2008
    Messages:
    41
    Likes Received:
    19
    So this basically decodes the URL before feeding it to wp-o-matic? That explains why I was having problems (gave up on using my pipe).
     
  3. goawayplease

    goawayplease Regular Member

    Joined:
    Apr 10, 2008
    Messages:
    299
    Likes Received:
    67
    Yeah, the function he's using handles character encoding between UTF and ISO if I remember correctly.

    If the characters were encoding and being processed by a script not prepared for that particular encoding, it would throw a real monkeywrench in the data passed to the script.