- cameraphone upload by ShoZu
Posted by Comments
Had a great time at WordCamp Utah on Saturday. The Open Source Technology Center at Novell was great. There was plenty of water and snacks. And there were plenty of people in attendance.
I have to give thanks to Joseph Scott for pulling off such a great event.
Here are some pictures I took at WordCamp. I’m using the NextGen Gallery plug-in instead of Flickr. While I use the gallery feature to store pictures, audio and video, I didn’t use it to actually show a gallery of photos.
After some struggle to get the gallery manager to work right, I think I finally have it figured out. I think the issue was more user error than application error.
And a link to my presentation video from Ustream. Thanks to RockyMountainVoices.com and Jake Spurlock for the video.
Posted by Comments
I’m excited that WordCamp has been scheduled for Utah. I’m an avid WordPress fan, developer, hack, and bigot. OK, I love other software too, but I really do use WordPress for a lot of projects.
Joseph Scott of Automattic has worked really hard to get this WordCamp going, and I think there is a fantatic lineup of speakers. You will be rocked by Cameraon Moll, Ash Buckles, Alex King, Richard Miller, Automattic CEO Matt Mullenweg, and myself. I’ll be talking about using WordPress with podcasts, video and other media.
The event will take place September 27th, at the Novell Open Source Technology Center in Provo, UT. Registration is cheap, includes a t-shirt and lunch. It’s on a Saturday so there shouldn’t be an excuse for not coming.
If you want to learn more about WordPress, its future, and some of the really cool things that can be done with the tool, please come.
If you’re a Flickr user, and want to post photos to your blog, you know there is no way to add categories or tags to the post. There could be a plug-in solution, but I couldn’t find it. Seriously, I looked for a long time. If there is one that does what I’m proposing, please let me know and I will update this post and back out what I’ve done.
This solution isn’t for the faint of heart. And I’m not 100% sure how secure it is. But I know for a fact it works just like I want. Here is the scenario and my hack:
1. Create a new WordPress user for Flickr posts. Doesn’t matter what you call it. Just make sure it has posting rights.
2. Add you blog, or modify and existing entry, in your Flickr account. How to do this is beyond the scope of my explanation.
3. Use the new WordPress user you created in step one in your Flickr blog settings.
4. Modify you xmlrpc.php file that sits in your WordPress root folder, with the below code. It would be in the same place as wp-config.php.
Here is where it gets a little hairy. Find the line which has this code snippet. Mine starts on line 1578, but yours may differ. It’s in the function mw_newPost($args):
if (is_array($catnames)) {
foreach ($catnames as $cat) {
$post_category[] = get_cat_ID($cat);
}
}
Just above the code on line 1578, add this code snippet:
if ( $user_login == '*NEW_USER_NAME*' ) {
$catnames[] = ‘*CATEGORY*’;
$tags_input[] = ‘*TAG1*’;
$tags_input[] = ‘*TAG2*’;
}
Save the file. Flickr gives you the ability to create a test post. I would recommend you do that before calling it good. Make SURE to remove any entries in the Settings/Writing/Update Services box before testing or your test post will show up in your RSS feed and anywhere else that you ping a new post.
Now, when you post from Flickr, using the correct WordPress user, you should have an entry in the category you choose, with the tags you want. You can add as many tags, or even categories as you like.
Again, there may be a more elegant solution that I haven’t found, but for now this solves my problem. I suppose you could use this for any outside service that uses XMLRPC to post to your blog.
I’m also interested in hearing about potential security issues with this solution.
Photo courtesy of poolie.
Had the great opportunity to meet with Matt Mullenweg of Automattic (creators of Wordpress) today. He was in Salt Lake City and was kind enough to attend a lunch. There were about 40 people there and I met a lot of new local Salt Lake bloggers. I hope these new found friends will attend future events. Building a strong blogger community is important for everyone. Thanks for the fun.
Thanks to Joseph Scott for getting this lunch put together.
Pictures from the lunch on Flickr.
(P.S. Sorry Matt for spelling your last name wrong, what a moron I am.)