Matt Jacob
Forum Replies Created
-
Forum: Plugins
In reply to: [Ping.fm Custom URL] [Plugin: Ping.fm Custom URL] Semi-pretty permalinks?You can use this test script to ensure that everything is working properly on the WordPress side. Fill in the placeholders with your own correct values (obviously).
<?php error_reporting(E_ALL); define('PING_URL', 'http://<<domain>>/pingfm/post/<<key>>'); $test_values = array( 'method' => 'status', 'title' => '', 'message' => 'I just wanted to let you know what I ate for breakfast this morning...', 'media' => '', 'raw_message' => '', 'trigger' => '', 'location' => '', ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, PING_URL); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($test_values)); curl_exec($ch); if (curl_errno($ch)) { echo 'Error: ' . curl_error($ch); } curl_close($ch); ?>Forum: Plugins
In reply to: [Ping.fm Custom URL] [Plugin: Ping.fm Custom URL] Semi-pretty permalinks?The only problem is with the URL detection for non-Apache servers. Since I use Apache and test against Apache, I can only promise that the plugin will work 100% with Apache. However, if you modify the URL yourself, it should still work. There’s nothing preventing it from working once you get into the code by hitting a correct URL.
So, then we’d have to look at Ping.fm and find out why pings aren’t coming through. If you want, you can write a little test script that just does a simple POST against your posting URL with the same parameters that Ping.fm would send. I have one that I use for testing, but it’s a little more elaborate than necessary.
Matt
Forum: Plugins
In reply to: plugin: ping.fmRight. We updated existing posts, but that change won’t have any affect on future posts. In order for that to happen, you’ll need to modify your template like I first suggested. Check out the main loop in your template.
Forum: Plugins
In reply to: plugin: ping.fmThere should be an SQL tab that will let you execute arbitrary queries. Just copy and paste and hit the GO button.
Forum: Plugins
In reply to: plugin: ping.fmNo problem.
Do you have access to phpMyAdmin? If you’re with a shared hosting provider, you’ll probably have it installed already. Go into your hosting control panel and find the area about databases. There might be a link to phyMyAdmin or a different tool that will let you do what you need.
As always, back up your database before trying anything.
Matt
Forum: Plugins
In reply to: plugin: ping.fmThere’s a
post_typecolumn in yourwp_poststable. I suppose you could execute a simple query to update the post types…UPDATE wp_posts SET post_type = 'post' WHERE post_type = 'pingfm'Forum: Plugins
In reply to: plugin: ping.fmThere was an option in previous versions of the plugin to force all content from Ping.fm to be handled as posts. As of plugin version 2.0.0, all pings are being handled as posts with a custom post type, so I think the switch has become unnecessary.
All you really need to do is modify your blog’s template to show posts with a
post_typeofpingfm. Check out the “querying by post type” section on this page for more information on how to do that:http://codex.wordpress.org/Custom_Post_Types#Querying_by_post_type
Hope that helps!
Matt
Forum: Plugins
In reply to: [Ping.fm Custom URL] [Plugin: Ping.fm Custom URL] BuddyPress?Does it not currently work with BuddyPress? As of version 2.0.0 of the plugin, all status update/micro-blog data has been moved into WordPress’s posts table (usually
wp_posts), so I imagine that most of the work is already done. However, the primary reason I developed this plugin was to fill a need I personally had. Since I don’t use BuddyPress myself, I would find it hard to get behind this feature addition.I’ll look into what it would take to add BuddyPress support. If it won’t require a ton of extra work (or unnecessary config options for those not using BuddyPress), I’ll consider making the plugin compatible in the next minor release (2.1.0).
Matt
Forum: Plugins
In reply to: Ping.fm Custom URL broke database of Ping.fm posts – how to reset and restartI’ll continue our email discussion here for the benefit of anyone else who happens upon this thread.
Basically, deleting the
pingfm_optionsoption without first deactivating the plugin was a bad idea. π The reason is because the plugin tries to create that option if it doesn’t already exist, and 99.999% of the time, that happens during plugin activation. Well, thewp_create_category()function is part of the admin API, and therefore, it’s only available during admin things (like plugin activation, for example).When you deleted the option, the plugin tried to recreate it outside of the admin API files being included, and the function simply wasn’t defined at that point. You exposed an edge case, and it’s been fixed in version 2.0.1, which was just released.
As for the initial problem during the upgrade, it’s impossible to say what actually happened without seeing the original data. Prior to plugin version 2.0.0, status updates and micro-blog posts from Ping.fm were stored in a plugin-specific DB table called
wp_pingfm. As of version 2.0.0, those same ping types are being stored in the mainwp_poststable with a custom post type ofpingfm.During the upgrade, the plugin tries to take everything from the custom table and import it into the standard WP table. It checks the counts to see if everything was imported successfully, and if the counts match up, it tries to drop the old table. If the counts don’t match up, the upgrade is declared a failure, and you’re asked to submit a bug report to me for help. I do my best to test the plugin thoroughly with a variety of data and environments, so I was surprised to find out it had failed for you.
I’m glad you got the problem sorted out on your own, and I think you’ll really like version 2 now that it’s working properly.
Happy pinging!
Matt
Forum: Fixing WordPress
In reply to: Canonical URLs not aggressive enoughThis is a month old with no replies. Does anyone agree or disagree with the point I made above?
Forum: Plugins
In reply to: Changing the SVN folder name for a PluginI also want to change my plugin project name in SVN so that the base folder extracted from the zip file is shorter and more meaningful. Is there any way to do this, or should I just submit the same plugin with a different name?