Business Card: bowen@dwelle.org
Smoothbeats.com
KALX Berkeley    WSUM radio

WFMU radio
You found me. Work-wise, I'm CEO of AdMonsters, a professional association and conference series that I founded in 1999, co-founder of PrefPass, and co-founder of CreditCovers. I do a bunch of other things as well - have a look around. I don't really write much here though, so don't look for too much of that...

Thinking about comments, trackbacks, etc. What a mess! Hey Rich - aren’t you guys at Technorati supposed to be taking care of this? In the meantime, I thought that Scriptygoddess’s WP Subscribe to Comments plugin might be useful. Let’s see.

I’ve been getting a fair bit of WordPress comment spam, so I just Installed Kitten’s Spam Words 2.1.1; we’ll see how that goes. If it doesn’t do the trick, I suppose I could try Skippy’s Email Comment Auth plugin, or one of the other techniques listed here.

Now that I’ve re-enabled tags (aka categories), I wanted to sync my WordPress tag navigation with del.icio.us, pulling in the del.icio.us links for the given tag. I’m not sure why some folks are set on creating blog entries for del.icio.us links; this seems like duplication of data to me. In any case, I just grabbed Magpie, and then wrote template-functions-rss.php, which grabs the RSS feed of links for the given tag (e.g. http://del.icio.us/rss/bdwelle/programming), and spits it out in HTML. Very, very straightforward.

In the meantime, I had to do a fair bit of hacking in the WordPress source. What a mess! I’ve said it before, I’ll say it again — tons of poor coding. Some functions return arrays or strings, some just barf out echos all over the place. Some functions do formatting, some don’t. Do I use post->ID or post_id? What’s global? Answer: Everything! Anyhow, it works, and I still like it well enough not to switch back to MT.

  • create full image display page with title, desc, tags, etc

I changed my WordPress image display plugin to href , which uses a slightly enhanced version of to fetch the single image asset post. Here's my version of:function get_posts($args) { global $wpdb, $tableposts, $tablepost2cat; parse_str($args, $r); if (!isset($r['numberposts'])) $r['numberposts'] = 5; if (!isset($r['offset'])) $r['offset'] = 0; if (!isset($r['category'])) $r['category'] = ''; if (!isset($r['orderby'])) $r['orderby'] = 'date'; if (isset($r['orderby'])) $r['orderby'] = "post_".$r['orderby']; if (!isset($r['order'])) $r['order'] = 'DESC'; $now = current_time('mysql'); if (isset($r['postid'])) { $posts = $wpdb->get_results("SELECT DISTINCT * FROM $tableposts WHERE id = " . $r['postid'] ); } else { $posts = $wpdb->get_results("SELECT DISTINCT * FROM $tableposts LEFT JOIN $tablepost2cat ON ($ tableposts.ID = $tablepost2cat.post_id) WHERE category_id = ". $r['category'] . " AND post_date < = '$now' AND (post_status = 'publish') GROUP BY $tableposts.ID ORDER BY " .$r['orderby']. " ".$r['order']." LIMIT " . $r['o ffset'] . ',' . $r['numberposts']); } return $posts; }

I’ve been trying to figure out how to better manage images… Riding BART today I realized that I should just do what I’ve been meaning to do all along: integrate the “post” and “upload” functions of WordPress, and create an asset (”post”) for each image. This allows you to store meta-data (title, description, categories or “tags”, url, size, etc.) in the usual wordpress places. I use a couple of post meta data fields for the url of the image and thumbnail, and automatically push “image” onto the list of categories as appropriate. Here’s my version of post.php, in case you’d like to check it out.

With each image is set up as it’s own post, I then reference the image posts within a “normal” textual post, using a plugin to expand the post ID of the image post into HTML that displays the thumbnail and a link to the full image. Since this is done in a plugin, I can maintain this HTML in one central place. My “expand image asset” tag looks like, e.g. :233->all: or :210->subject: and the plugin uses to retrieve the details of the image asset post -- it's pretty clean. Here's the plugin itself, in case you’re interested.

To do:

  • create full image display page with title, desc, tags, etc. (done)
  • create asset posts for moblog images (done)
  • allow comments in image HTML displayed within main post (done)
  • re-enable categories (tags) (done)
  • sync tag nav with del.icio.us tags. (done)
  • export and upload image asset posts from iMatch to WordPress(done)
  • display image assets in archive view (done)
  • add gallery-style display option (done)
  • add image thumbnails to edit.php display if in_category(IMAGE), so that it’s easier to browse image assets and include references in main posts (done)
  • switch “Category” UI to “tag” UI, probably using Kellan’s code
  • UI to upload multiple images (with tags) (ignore - maintain data in iMatch)
  • UI to maintain tags and subjects of multiple images (ignore - maintain data in iMatch)

Why not use Flickr? One certainly could do the same plugin trick and expand Flickr image ID’s into a chunk of HTML suitable for displaying within the blog. You could also do the tag-browsing thing with Flickr… and they have some nice features and UI (including most of the above). However (for now at least):

  • extra cost (not sure how much a Pro account will be going forwards, and I’m already paying for hosting)
  • exercise my rusty programming skills

Moblog
Recent Posts
iPhone 3G review/notes - how to hack iPhone text - Great writing? Monocle, check - Go Hillary, go. Now. - I was never that good with the trackball, but this looks like fun - How to make an iPhone ringtone from an MP3 - Free Tibet! Wait, where’s Tibet? - I have a new MySpace friend, and her name is GHETTO TV - iPhone Installer can’t find BSD Subsystem - iTunes -> Now Playing -> FriendFeed
Bowen online
del.icio.us links
Categories/Tags
*3 - *4 - *5 - *done - *perm - *todo - 3g - admonsters - adtech - advertising - ad_blocking - ajax - amazon - anagram - apache - apa_2003 - arancello - art - article - audi - austria - autohotkey - baja - basta - berkeley - berlin - bigbox - birthday - biz - blackberry - blogging - blogs - bluetooth - bookmarklets - bowen - brett - browsers - bryant - bug - building - bulgaria - burningman - business - california - cars - cayucos - chicago - china - chris_walter - climbing - clothing - coffee - color - comcast - consulting - convergence - cool - covers - creditcovers - croatia - css - cuba - culture - cydia - deadwood - del.icio.us - democracy - demographics - denver - des - design - desktop - disgrace - domains - donnas - dreams - duke - dvr - eastern_sierras - ebay - economics - edu - element - email - emerging - eng - environment - estonia - eur04 - europe - events - extensions - f250 - fabric8 - family - fashion - favorites - film - firefox - flickr - food - ford - forums - france - friendfeed - future - gags - garc - gcal - general - geo - germany - gizmos - gmail - google - greasemonkey - green - gretchen_kelley - hacking - hardware - history - honda - hopes - household - humor - hungary - ical - idiocy - images - imatch - inconsiderate - investing - iphone - italy - itunes - javascript - julie_chiapelone - kale - kitesurfing - ktm - landuse - language - ldap - leed - lifehacks - linkedin - linux - listmanagers - ljubljana - local - lola - loren - lycos_europe - mac - madison - madrid - makoto - management - maps - marine - markets - mega - megan - meredith - mexico - michigan - microsoft - minneapolis - misc - mobile - moblog - motorcycles - mozilla - music - mysql - nasty - nature - net - netflix - networking - news - new_orleans - new_york - nicklas - noises - nokia - now - now_playing - ny2004 - nyc - online - org - outlook - panama - paris - parties - people - performance - perl - personal - philiosophy - philosophy - photography - php - picasa - pim - pirates - places - planning - playa - politics - potrero - powerpoint - predictions - prism - privacy - programming - punk - questions - quicken - quotation - quotes - radio - rails - reading - realestate - recipes - recipies - reference - references - remote - rent - reporting - review - reviews - romania - rome - rss - rtm - sailing - samantha - san_diego - san_francisco - sayulita - science - scotland - scottsdale - search - semantics - semweb - serbia - shortcuts - sierras - signs - silvia - sk8 - slovenia - slurping - small_world - smartphone - socialsoftware - socialtextb - social_software - sofia - software - solar - space - spam - speed - sql - stockholm - surfing - surveys - sustainability - switzerland - syncml - system:unfiled - tacoda - tagging - tahoe_with_dclk - tech - technology - technorati - textiles - thinkpad - thunderbird - tivo - toga_2004_10 - transportation - travel - trieste - triumph - turkey - tv - ui - unbox - urbanism - urban_planning - us12 - usenet - vals - venice - vermont - vespa - virtual - visualization - voip - water - web - webdav - webtools - windows - wine - wink - wireless - wisconsinwmlwordpresswritingzacatecaszurich
Archives
Search
 
Meta