Whoops, forgot to ask this, what are people doing to make updating the feed automatic? Are you using cron jobs, or placing the feedgrab in silent mode and placing on a high or medium volume template? Anything?
briggs wrote oh I havnt tried it that way. I use the html_strip when I am outputting the description in a page.
Yeah, that’s what I’m currently doing, I was looking for a solution to cleaning the data before it’s entered into the system. That one’s not super urgent though. The entering of source data is more important to me. So I could say this info is from Craigslist, this from the Madison Times, etc, etc.
I’m not sure how you are setup, but this is what I do.
I have a weblog with 9 categories. Each category is the source website name.
I then i have 9 chunks of feedgrab code, reading 9 feeds.
for each feed, i assign one of the categories to it. That’s how I ensure the source.. every article is going into the weblog with the assigned category.
Perhaps you are doing something different, i havnt re-read your initial post again (sort of at work, dodging eyes)
The character codes/oddness happening might not have anything to do with html strip, but what the settings are on the custom field where the description is going, but that’s just me guessing. YOu could probably use a find and replace plugin that would catch all the character codes being output as well, maybe. Hmm, I should try that!
I’m not sure if you can do some mysql statements or something that would affect the data before you insert it into the weblog database. Might be scary to try.
Yeah, I thought about categories, but originally dismissed them, perhaps I should revisit. I originally dismissed, because I want to use categories for types of postings. For example, I’ve created custom queries for finding all housing related items located on the East, Near East, and Far East side of Madison. These items can be for rent, for sublet, homes for sale, condos for sale, co-ops, etc. So I was planning on those details to be the categories, and the source, just to be a field called “source”. Obviously source data is part of the feed, so I was hoping I could pull it from there. I’m still going to keep playing. If worse comes to worse, categories can be a fall back.
Any chance you would consider a couple of function requests:
1. A function to limit the entries created? By date and number perhaps?
2. A summary function - post multiple RSS entries in a single post - for example all Twtters for a particular day.
I’m using version 0.7.3 and have a problem to add categories (predefined categories using the “category” parameter).
I think there is the following problem in the plugin:
Wrong version:
$results = $DB->query("SELECT cat_id, parent_id FROM exp_categories WHERE (cat_id IN ('".implode("','",$cats)."') OR cat_name IN ('".implode("','",$cats)."')) AND group_id = '".$query->row['cat_group']."'");
Correct version:
$results = $DB->query("SELECT cat_id, parent_id FROM exp_categories WHERE (cat_id IN ('".implode("','",$cats)."') OR cat_name IN ('".implode("','",$cats)."'))");
In my case, it works now. But I’m not sure if this is the best way to get it running ...
I’m wanting to include my flickr feed in my tumblelog but currently it’s including each and every photo and I generally upload photos in groups. Each time I upload photos the take up my entire lifestream.
I’d prefer each group of photos I upload to appear as one item in the lifestream. I generally group everything I upload as sets and therefore it makes sense to include every new set as a new item in my lifestream.
I found a yahoo pipe to do this but it doesn’t include the date so my sets are included dateless. Also, the feed created there hasn’t got an images, I’d like 5 random/latest photos from the set to be shown with the entry in the lifestream. So in one field there’s an unorder list with the 5 images in it (for example.)
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.
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?