We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: FeedGrab

Development and Programming

misc's avatar
misc
54 posts
17 years ago
misc's avatar misc

Bug in Function “is_entry_unique” ?

I have the impression that in version 0.7.3 the mentioned function produces a problem if a time_offset is used. The plugin creates duplicated entries because the feed date and the entry date are always different due to the time_offset.

I think that the problem is located here:

$query = $DB->query("SELECT * FROM exp_weblog_titles WHERE LEFT(title,100) = LEFT('".$DB->escape_str($post[ "title" ])."',100) AND entry_date = '".$DB->escape_str($post[ "date" ])."'");

and could be solved in that way:

$query = $DB->query("SELECT * FROM exp_weblog_titles WHERE LEFT(title,100) = LEFT('".$DB->escape_str($post[ "title" ])."',100) AND entry_date = '".$DB->escape_str($post[ "date" ] - $this->time_offset)."'");

But, I’m not a professional - please wait for an official confirmation before changing the plugin script.

Kind regards, MISC

       
Briggs's avatar
Briggs
111 posts
17 years ago
Briggs's avatar Briggs

I have about 250MB worth of html log files that the plugin is creating. Is there any way to disable this? I delet all the files and they reapear..

They are just lists of actions, checking a feed to see if it’s updated or not.. but 250mb worth.. !

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
17 years ago
Andrew Weaver's avatar Andrew Weaver

I have a new version of the FeedGrab plugin available which is multiple site compatible.

A site_id parameter has been added to select which site to import the data into, eg, site_id=”2”. If you are not using MSM, just ignore the parameter.

From now on - to keep things simpler - please see the FeedGrab page to download current version. I will continue to announce updates in this thread.

Thanks, Andrew

       
Dabbledoo's avatar
Dabbledoo
172 posts
about 17 years ago
Dabbledoo's avatar Dabbledoo

This plugin is exactly what I’ve been looking for! My one complaint (not really a complaint) with it so far is that the Plugins page still is not loading – just has a blank screen. I use that page a lot when I’m looking at the syntax to use for other plugins, so it’s a big bummer it breaks the page.

Does anyone have any ideas how to make the Plugins page come back to life with FeedGrab installed?

Edit: Also, I’m getting a “?” in place of apostrophes. Thoughts?

Thanks,

Doug

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
about 17 years ago
Andrew Weaver's avatar Andrew Weaver

I’ve just updated the plugin and have hopefully fixed the plugin manager problem.

FeedGrab download available here

Let me know of any problems.

Andrew

       
Dabbledoo's avatar
Dabbledoo
172 posts
about 17 years ago
Dabbledoo's avatar Dabbledoo

Thanks Andrew. Looks like that did the trick. Welcome back Plugin Manager. 😊

       
Dabbledoo's avatar
Dabbledoo
172 posts
about 17 years ago
Dabbledoo's avatar Dabbledoo

Any ideas on how to fix the “?” problem with the encoding?

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
about 17 years ago
Andrew Weaver's avatar Andrew Weaver

I’ve just updated the plugin (again). This might help with some characters getting converted to question marks.

FeedGrab download available here

Again, let me know of any problems.

Andrew

       
Dabbledoo's avatar
Dabbledoo
172 posts
about 17 years ago
Dabbledoo's avatar Dabbledoo

Wow - you’re on a roll! Fixed my character encoding problems! Thank you soooo much! This plugin is great.

-Doug

       
Dabbledoo's avatar
Dabbledoo
172 posts
about 17 years ago
Dabbledoo's avatar Dabbledoo

Andrew -

In addition to using this on our existing EE sites, we have a WordPress blog that we’ve been wanting to transfer to EE. Would this (or your XMLGrab plugins be good methods for doing that? Or is there a different method you would recommend?

Thanks again,

Doug

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
about 17 years ago
Andrew Weaver's avatar Andrew Weaver

Hi Doug,

Glad it’s working for you. Both have been problems for quite some time…

To migrate the data I’d suggest seeing if you can using the MT Import option first as this will handle user comments better. Failing that, either of the plugins should help.

Andrew

       
Dabbledoo's avatar
Dabbledoo
172 posts
about 17 years ago
Dabbledoo's avatar Dabbledoo

OK, thank you much.

-Doug

       
Dabbledoo's avatar
Dabbledoo
172 posts
about 17 years ago
Dabbledoo's avatar Dabbledoo

Hey Andrew -

Sorry to keep bugging you. I just updated my version of the plugin so there is a status=”” parameter in the exp:feedgrab template tag. That way, I can feed in what I want the status to be. The reason I needed this specifically is because our default status is Draft (since we have a ton of writers and don’t want things published by accident), and we wanted items that are “grabbed” by FeedGrab to be posted to the site immediately.

I think this would probably be a worthwhile update to the plugin if you’re down with that. Obviously a very simple update to the plugin, but let me know if you just want my code.

Thanks,

Doug

       
Andrew Weaver's avatar
Andrew Weaver
206 posts
about 17 years ago
Andrew Weaver's avatar Andrew Weaver

Hi Doug,

That sounds a handy extension. If you could send through your code I’ll see if I can merge it into the next release.

Thanks, Andrew

       
klick's avatar
klick
49 posts
about 17 years ago
klick's avatar klick

hi andrew.

very nice plugin! exactly what i was looking for. one issue though 😉

i’m trying to import my friendfeed feed and can’t seem to grab the contents on a lower level. that’s the structure (from their api):

entries[]
  id 
  title
  link
  published
  updated
  hidden
  user{}
        id - the user's FriendFeed UUID
        name - the user's full name
        nickname - the user's FriendFeed nickname, used in FriendFeed URLs
        profileUrl - the user's profile URL on FriendFeed
  service{} - the service from which the entry came
        id - the service's FriendFeed ID, e.g., "picasa"
        name - the service's official name, e.g., "Picasa Web Albums"
        iconUrl - the URL of the favicon for this service
        profileUrl - the user's profile URL on this service

 …

it works well with »id«, »title«, »published« etc. the bits i’m also interested in are »service name«, »user nickname« and so forth.

in the »go« template i tried »service/name« but no luck.

question now is how do i get them? i’m pretty sure that’s an easy task but can’t see it.

thanks!

klick

       
First 7 8 9 10 11 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.