• Hi,

    I am using Feedwordpress and Subscribe2 for my WordPress blog, and when I use them separately, everything works great. Feedwordpress automatically syndicates a RSS feed and also publishes it. When the post is published I want subscribe2 to mail the post to my email address.

    The problem is that Feedwordpress uses a cronjob to update from the RSS feed and apparently Subscribe2 is not able the mail the posts afterwards, while if I create a post manually, it is. Probably Subscribe2 is not able to recognize a new post or something when it is created automatically….

    I already searched on the Internet and found that I am not the only one with this problem, but did not found any solution yet. This is what I found already: http://subscribe2.wordpress.com/2008/01/16/subscribe2-44/

    This is probably because the two plugins are using different hooks. I’m using new functions in WordPress 2.3 and FeedWordPress is still using publish_post. You’ll need to update the action hooks in one of the two plugins to get the two working together.

    This is a bit of abracadabra for me…

    Hopefully you can help me. Thanks in advance.

    Kleine man

Viewing 4 replies - 1 through 4 (of 4 total)
  • @Kleine Man,

    You are going to have to edit code to get this working but try the following.

    In the subscribe2 file (subscript2.php) quite close to the end of the file you’ll see a function called subscribe2. In here add this line:

    add_action(‘app_publish_post’, array(&$this, ‘publish_phone’));

    I’m not sure if that will work but it’s worth a try.

    Thread Starter kleine man

    (@kleine-man)

    I tried you suggestion, but it didn’t work. Thank you anyway.

    Anybody else?

    @Kleine Man,

    Try:

    add_action(‘publish_post’, array(&$this, ‘publish_phone’));

    The downside of this is that it may result in duplicate emails f you make a new post in the WordPress admin area.

    Thread Starter kleine man

    (@kleine-man)

    @ all

    None of the above solutions worked in my case, so I decided to make my own mail script. Most of it is custom, but the basics look like this. It might be helpful for other people:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Good luck!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cronjobs Feedwordpress and Subscribe2’ is closed to new replies.