Forums

FeedWordPress
addon request: filter ebay rss error posts (5 posts)

  1. q292u
    Member
    Posted 4 months ago #

    I have a LOT of ebay rss feeds on a couple of sites.
    ebay's new rss feeds regularly generate error posts via feedwordpress, always with the title starting with: "1970-01-01.."

    Could you put together a quick fwp filter to stop these posts ever being created in the first place?

    I've had a go at implementing a (fwp) filter to remove them, but it doesn't appear to do anything :(.

    Thanks in advance..

    http://wordpress.org/extend/plugins/feedwordpress/

  2. q292u
    Member
    Posted 3 months ago #

    Never mind. I've done it myself.
    I've used another fwp filter as a starting point, and then changed the logic (and names etc).
    My filter looks for "1970-01-01 00:00:00" within the title field.
    (I found that sometimes the string was prefixed with "eBay Search: (Error)")..

    Anyway, I'm sorted. The filter is working on two of my sites without problems. I've not looked into packaging the filter as a plugin yet.
    I'll let you know if I do..

  3. silveristhenew
    Member
    Posted 3 months ago #

    what filter did you use as a starting point.
    I would like to filter/change the content of a post and used the 'Strip HTML Tags from Posts' filter as a starting point. It worked with the last version of FWP but I can't get it to work now.

    Did something change in the latest revision
    any ideas?

    I am using these hooks:

    `add_action(
    /*hook=*/ 'feedwordpress_admin_page_posts_meta_boxes',
    /*function=*/ array(&$this, 'posts_meta_boxes'),
    /*priority=*/ 100,
    /*arguments=*/ 1
    );
    add_action(
    /*hook=*/ 'feedwordpress_admin_page_posts_save',
    /*function=*/ array(&$this, 'posts_save'),
    /*priority=*/ 100,
    /*arguments=*/ 2
    );

    add_filter(
    /*hook=*/ 'the_content',
    /*function=*/ array(&$this, 'the_content'),
    /*priority=*/ 10010
    );
    add_filter(
    /*hook=*/ 'the_content_rss',
    /*function=*/ array(&$this, 'the_content'),
    /*priority=*/ 10010
    );`

  4. q292u
    Member
    Posted 3 months ago #

    I used a filter about duplicate posts.

    Unfortunately, I've just found a "1970-01-01 00:00:00" that got through last night.
    It seems my filter isn't working.. :(

  5. silveristhenew
    Member
    Posted 3 months ago #

    yeah looks like i'll be working on this one too. I have a couple other uses for filtering the content of the post but can't seem to find a hook that works. If i find anything useful, I'll post it here.

Reply

You must log in to post.

About this Plugin

About this Topic