ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Feeding FeedGrab Plugin from a Weblog Entries Tag

November 15, 2010 12:52am

Subscribe [3]
  • #1 / Nov 15, 2010 12:52am

    [email protected]

    108 posts

    I am hoping to be able to create a weblog that I can simply add URL’s to which will automagically feed the “go” template I am using for Feedgrab.

    Here’s what I currently use:

    {exp:feedgrab url="http://feeds.feedburner.com/TechCrunch" weblog="10" title="title" date="pubDate" use="link|description" fields="iphone_link|iphone_description" refresh="10"}

    The issue here is that each time I want to add a new feed I have to hand code the additional loop.

    What I want to do is this:

    {exp:weblog:entries weblog="feed_find"}
      {exp:feedgrab url="{feed_url}" weblog="10" title="title" date="pubDate" use="link|description" fields="iphone_link|iphone_description" refresh="10"}
    {/exp:weblog:entries}

    Where the weblog “feed_find” is a cache of feed url’s that I input.

    The problem I am having is that I have the exp:feedgrab inside of the exp:weblog:entries tag and I think this is causing a parsing issue. Is there a way around this?

    This is the error I get with the above snippet:

    Warning: MagpieRSS: Failed to fetch /home/joshmaxr/public_html/afdl_admin_sys/plugins/pi.feedgrab.php on line 1793

    Notice: Trying to get property of non-object in /home/joshmaxr/public_html/afdl_admin_sys/plugins/pi.feedgrab.php on line 165

  • #2 / Nov 16, 2010 8:21am

    Boyink!

    5011 posts

    Hey Josh -

    If you think it’s a parse issue try embedding the feedgrab code into it’s own template and passing embed variables as needed.

  • #3 / Nov 16, 2010 11:20am

    Mike,

    Thanks for the advice. I want to make sure I understand your advice. I set up an embed “feed_embed” with the following:

    {exp:feedgrab url="{feed_url}" weblog="10" title="title" date="pubDate" use="link|description" fields="iphone_link|iphone_description" refresh="10"}

    I kept my “go” template and made the following changes, most notably the last weblog entries loop which embeds the feedgrab code:

    {exp:weblog:entries weblog="feed_find"}
      {embed="embeds/feed_embed"}
    {/exp:weblog:entries}</code></pre>

    Still getting the same error as above.

    Warning: MagpieRSS: Failed to fetch {feed_url} (HTTP Error: Invalid protocol “”) in /home/joshmaxr/public_html/afdl_admin_sys/plugins/pi.feedgrab.php on line 1793

    Notice: Trying to get property of non-object in /home/joshmaxr/public_html/afdl_admin_sys/plugins/pi.feedgrab.php on line 165

  • #4 / Nov 16, 2010 11:53am

    Boyink!

    5011 posts

    I don’t see where you are passing the embed variable to the embedded template.

  • #5 / Nov 19, 2010 2:02am

    Mike,

    Thanks for having a look:

    I have in my go.php template the following:

    {exp:weblog:entries weblog="feed_find"}
      {embed="embeds/feed_embed" my_url="{feed_url}"}
    {/exp:weblog:entries}

    In my feed_embed.php I have this:

    {exp:feedgrab url="{embed:my_url}" weblog="10" title="title" date="pubDate" use="link|description" fields="iphone_link|iphone_description" refresh="10"}

    But I am still getting this error:

    Warning: MagpieRSS: Failed to fetch /home/joshmaxr/public_html/afdl_admin_sys/plugins/pi.feedgrab.php on line 1793

    Notice: Trying to get property of non-object in /home/joshmaxr/public_html/afdl_admin_sys/plugins/pi.feedgrab.php on line 165


    Could you let me know if I addressed your feedback

    I don’t see where you are passing the embed variable to the embedded template.

    Many thanks.

    Josh

  • #6 / Nov 19, 2010 8:16am

    Boyink!

    5011 posts

    Yep - the first time you posted the outer loop the embed variable was not getting passed into the embedded template.

    Does the plugin grab the feed correctly when used on it’s own and with hardcoded URL?

  • #7 / Nov 19, 2010 11:05am

    Mike,

    Yeah the plugin works fine on it’s own with the url hardcoded.
    I made a post to the Brandnewbox forums a few days ago but no luck, http://brandnewbox.co.uk/forums/viewthread/191/.

    Any ideas what I might try next?

  • #8 / Nov 19, 2010 11:08am

    Boyink!

    5011 posts

    I got nuthin’ 😉

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases