kellan
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: PHP and RSSThe WordPress dashboard uses Magpie, so if that isn’t working then it is unlikely that a separate Magpie install would work.
aughavey, I’d say you’ve got a lousy ISP, even if they’ve decided to lock down PHP for legitimate reasons, what an incredibly unhelpful response. Jump ship, there are a lots of hosts in the world.
Forum: Fixing WordPress
In reply to: Using Magpie in WP 1.5erreon: looks like by default the the wp team made the magpie functions are only available to the admin app.
so you’ll need to add the following line to your install (i’d recommend wp-settings.php):
require_once (ABSPATH . WPINC . “/rss-functions.php”);
once you’ve done that, see this thread for some more notes:
https://laughingmeme.org/archives/002790.html#commentsForum: Fixing WordPress
In reply to: Integrating RSS as entriesThis is what I wrote the wp-rss-aggregator to do
https://laughingmeme.org/archives/002203.html
I’ll be releasing a new versio soon to take advantage of Magpie’s inclusion in WP1.5
Forum: Everything else WordPress
In reply to: General question about RSS feed aggregatorsif you’re trying to integrate it into wordpress you might try my wp-rss-aggregator:
https://laughingmeme.org/archives/002203.html
if you’re not working in the context of wordpress checkout “aggregate and collate with magpie”
Forum: Plugins
In reply to: Technorati Tagsseveral exist:
https://www.gudlyf.com/archives/2005/01/14/wordpress-plugin-technotag/
https://metalllama.host.sk/index.php/archives/2005/01/15/technorati-tags-plugin-for-wordpress/and if you’re really brave you could try
Forum: Plugins
In reply to: del.icio.us style tags/categories?latest version of tags code is at: https://laughingmeme.org/tags4wp/
mostly a plugin this time, though i had to add a few “missing” hooks
Forum: Fixing WordPress
In reply to: Posting RSS FeedsThis is exactly the problem I was solving with my WP-RSS Aggregator:
https://laughingmeme.org/archives/002203.htmlForum: Plugins
In reply to: del.icio.us style tags/categories?I did some rough work on enabling this tonight. It works, and I’m pretty happy with it, but its currently a direct patch rather then a plugin.
I put up some thoughts on tagging in general, and some notes on the patch.
Its about 2am here, so it might not be coherent.Forum: Plugins
In reply to: del.icio.us style tags/categories?sunshine, i think the underlying implementation would be largely identical, its more of a UI question, exception for the auto-generation of categories.
the following code is what I use in wp-rss-aggregate, it takes a list of category names, and returns a list of category ids, first creating any which don’t already exist. (i’m not sure how well pasting in a large code block is going to work, if it gets munged you can find it at the above url)
// look up (and create) category ids from a list of categories
function lookup_categories ($wpdb, $cats) {
if ( !count($cats) ) {
return array();
}
# i'd kill for a decent map function in PHP
# but that would require functiosn to be first class object, or at least
# coderef support
$cat_strs = array();
foreach ( $cats as $c ) {
$c = $wpdb->escape($c); $c = "'$c'";
array_push($cat_strs, $c);
}
$cat_sql = join(',', $cat_strs);
$sql = "SELECT cat_ID,cat_name from $wpdb->categories WHERE cat_name IN ($cat_sql)";
$results = $wpdb->get_results($sql);
$cat_ids = array();
$cat_found = array();
foreach ( $results as $row ) {
array_push($cat_ids, $row->cat_ID);
array_push($cat_found, $row->cat_name);
}
$cat_unknown = array_diff($cats, $cat_found);
if ( count($cat_unknown) ) {
$sql = "INSERT INTO $wpdb->categories (cat_name, category_nicename)
VALUES ('%s', '%s')";
foreach ( $cat_unknown as $new_cat ) {
$nice_cat = sanitize_title($new_cat);
$wpdb->query(sprintf($sql, $new_cat, $nice_cat));
array_push($cat_ids, mysql_insert_id ($wpdb->dbh) );
}
}
return $cat_ids;
}
Forum: Plugins
In reply to: RSS AggregatorCould be that Magpie still has a cached version of the del.icio.us RSS feed, and therefore didn’t re-fetch. Default caching time is 1 hour.
Ditto I wouldn’t be surprised is Joshua has a lag between when you add an item to del.icio.us and when they show up in your RSS feed.Forum: Plugins
In reply to: RSS Aggregatormanne, you have to use WP 1.3, grab a nightly build
Forum: Plugins
In reply to: RSS AggregatorHi Vohiyaar,
Here is a quick howto. The code leverages the WP libraries, but is essentially a stand alone application in that it isn’t designed to be used as a WP hack, or WP plugin.
While you don’t have to place wp-rss-aggregate.php in your WordPress directory (and I don’t) that is probably the simplest way to set it up (or you could place in in wp-admin)
Open up wp-rss-aggregate.php in a text editor and you’ll see a define, and 4 require_once’s at the top of the file. Edit the define and first two requires to point at where you have MagpieRSS installed on your system. Edit the second to requires for where you have WordPress installed. (e.g. if you place wp-rss-aggregate.php in your WP folder you’d want the require to read: require_once ‘./wp-config.php’;)
Now run it from your web browser, make sure it works, (no error messages), and that should aggregate any feeds you’ve configured in the feeds array. (e.g. https://example.org/wordpress/wp-rss-aggregate.php)
Presumably you want the aggregation to happen automatically, so the next step is to addd a cron job that runs periodically requesting this page. To do this you’ll need cron, understanding of crontabs, and a command line web browser (lynx, links, curl, wget, GET would all work). FeedOnFeeds has an example of this.Forum: Plugins
In reply to: RSS AggregatorHi Alan,
The Drupal aggregator sounds more like a “reBlogging” system, where you’re picking and choosing from a number of incomimg feeds.
Removing the manual intervention was definitely key to what I was wanting to do.
Thanks for the feedback.