![]()
Kram's Web site |
||||||
|
Oft Visited Sites: Restricted Access Squirrelmail GZ Hosting GeekZone Customer Service Log Bern's Links CMC Network MBF Playgroup Victoria Weight Watchers Family Assistance Office Direct Epay Lilydale Squash & Fitness |
Journal - Web16 May 2009, 9:55am Google maps rocks. I've blogged about it before on the company blog at: The Tech Doctor Blog . This morning I wanted to know how far it was from home to Arizona, USA, so I went to get directions and typed in Lilydale, VIC 3140, Australia and Tempe, Arizona 85281. There 3 modes of transport, Car, public transport and walk. I left it on car. I clicked on Get Directions and was delivered the following map: ![]() Note the direction I've put the red box around noting a partial toll road... That was rather funny, so I decided to change the mode of transport to "by walking". The first thing I noticed was a warning: "Walking directions are in beta. Use caution – This route may be missing sidewalks or pedestrian paths." Okay, that may be a fair warning, or is it just a bizzare sense of humour... Then I noticed how long the list of directions was.. Here are some highlights of the trip: ![]() There is a total of 1331 directions all up. Well done to the google maps team for being so thorough. Cakes - Journal - Web - Link 01 January 2009, 7:07pm In my research on Wordpress plugins I came across this site: Pink Cake Box Wedding Cakes, by none other than Jesse Heap, designer of the PHPlist /Wordpress plugin that partly solved my earlier problem and led me to design my first Wordpress Widget. They make some stunning looking cakes, even better than my dodgy but loving attempts. :) First Wordpress Widget/Plugin - Journal - Web - Link 01 January 2009, 1:28pm I wrote this Widget (Plugin) for Wordpress to be able to properly display the subscription form for The Tech Doctor Newsletter. It builds on the PHPlist Plugin by Jesse Heap which connects to PHPlist. It is based on a sample plugin by Kaf Oseo <?php /* Plugin Name: PHPlist Widget Plugin URI: http://www.geekzone.com.au/ Description: PHPlist Widget that makes a widget out of <a href="http://www.jesseheap.com/projects/wordpress-phplist-plugin.php">Jesse Heap's PHPlist</a> plugin Author: Mark Snell Version: 0.65 Author URI: http://www.geekzone.com.au/ based on: http://guff.szub.net/2006/04/06/my-widget-example-wordpress-widget/ */ function widget_PHPlist_init(){ function widget_PHPlist($args) { extract($args); $options = get_option('widget_PHPlist'); $title = empty($options['title']) ? '<b>'.'Join our Mailing List:'.'</b>' : '<b>'.$options['title'].'</b>'; echo $before_widget; echo $before_title . $title . $after_title; $content = apply_filters('the_content', '<!--phplist form-->'); echo $content; echo $after_widget; }
// This is the function that outputs the form to let users edit // the widget's title and so on. It's an optional feature, but // we'll use it because we can! function widget_PHPlist_control() {
$options = get_option('widget_PHPlist');
if ( $_POST['PHPlist-submit'] ) { // Clean up control form submission options $options['title'] = strip_tags(stripslashes($_POST['PHPlist-title'])); update_option('widget_PHPlist', $options); }
$title = htmlspecialchars($options['title'], ENT_QUOTES);
?> <div> <label for="PHPlist-title" style="line-height:35px;display:block;">Widget title: <input type="text" id="PHPlist-title" name="PHPlist-title" value="<?php echo $title; ?>" /></label> <input type="hidden" name="PHPlist-submit" id="PHPlist-submit" value="1" /> </div> <?php // end of widget_PHPlist_control() } register_sidebar_widget('PHPlist', 'widget_PHPlist'); // This registers the (optional!) widget control form. register_widget_control('PHPlist', 'widget_PHPlist_control');
add_action('plugins_loaded', 'widget_PHPlist_init'); ?> You can download the file here. Keeping it Short - Journal - Web - Link 16 June 2007, 7:51pm I think the key for me is to try and blog short and often. Just post the various little things I find, and move on. Lets be honest, I'm so busy at the moment I barely get the time to think through anything in real detail anyway... .htaccess Redirect - Journal - Web - Link 10 April 2007, 10:34pm I started playing with Apache's .htaccess redirects tonight. Life becomes so simple. Redirect /Software http://www.techdoctor.com.au/index.php?dept=software redirects anyone that types www.techdoctor.com.au/Software to the correct page. there is a great tutorial with other info at www.javascriptkit.com |
Journal - Web Google maps Cakes First Wordpress Widget/Plugin Keeping it Short .htaccess Redirect |
||||
If you wish, you can mail me at mark@geekzone.com.au | Last Updated 4th September 2010 |
|---|