WordPress.org

Plugin Directory

Changeset 537853


Ignore:
Timestamp:
04/29/12 08:42:09 (2 years ago)
Author:
SteveAtty
Message:

Version 2.1 - Minor bug fix

Location:
canalplan-ac
Files:
3 edited
10 copied

Legend:

Unmodified
Added
Removed
  • canalplan-ac/tags/2.1/canalplan.php

    r537712 r537853  
    44Plugin URI: http://blogs.canalplan.org.uk/canalplanac/canalplan-plug-in/ 
    55Description: Provides features to integrate your blog with <a href="http://www.canalplan.eu">Canalplan AC</a> - the Canal Route Planner. 
    6 Version: 2.0 
     6Version: 2.1 
    77Author: Steve Atty 
    88Author URI: http://blogs.canalplan.org.uk/steve/ 
     
    2929define ('CANALPLAN_GAZ_URL','http://www.canalplan.eu/gazetteer/'); 
    3030define ('CANALPLAN_MAX_POST_PROCESS',20); 
    31 define('CANALPLAN_CODE_RELEASE','2.0.0 r00'); 
     31define('CANALPLAN_CODE_RELEASE','2.1.0 r00'); 
    3232 
    3333global $table_prefix, $wp_version,$wpdb,$db_prefix; 
  • canalplan-ac/tags/2.1/canalplan_widget.php

    r537712 r537853  
    11<?php 
    22/* 
    3     Plugin Name: Canalplan Latitude 
    4     Plugin URI: http://www.canalplan.org.uk 
    5     Description: Displays your current Latitude location and displays a link to the nearest Canalplan AC Location 
    6     Version: 1.00 
    7     Author: Steve Atty 
    8     Author URI: http://www.canalplan.org.uk 
    9  
    103    Copyright 2012, Steve Atty 
    114 
     
    5144        $lat=$x[1]; 
    5245          #  $sql="SELECT place_name,canalplan_id,lat,`long`,GLength(LineStringFromWKB(LineString(AsBinary(lat_lng_point), AsBinary(GeomFromText('Point(".$lat." ".$lng.")'))))) AS distance FROM ".CANALPLAN_CODES." ORDER BY distance ASC LIMIT 1"; 
    53         $sql="SELECT place_name,canalplan_id,lat,`long`,GLength(LineString(lat_lng_point, GeomFromText('Point(".$lat." ".$lng.")'))) AS distance FROM ".CANALPLAN_CODES." ORDER BY distance ASC LIMIT 1"; 
     46        $sql="SELECT place_name,canalplan_id,lat,`long`,GLength(LineString(lat_lng_point, GeomFromText('Point(".$lat." ".$lng.")'))) AS distance FROM ".CANALPLAN_CODES." where place_name not like '%!%' ORDER BY distance ASC LIMIT 1"; 
    5447        $res = mysql_query($sql); 
    5548        $gazstring='http://www.canalplan.org.uk/cgi-bin/gazetteer.cgi?where=$'; 
    5649        while($row=mysql_fetch_array($res)) { 
    57         print "<p><br />Nearest Canalplan location is : <br /> <a href='".$gazstring.$row['canalplan_id']."' target='_new' > ".$row['place_name']."</a> <br /></p></div>"; 
     50        print "<p>Nearest Canalplan location is : <br /> <a href='".$gazstring.$row['canalplan_id']."' target='_new' > ".$row['place_name']."</a> <br /></p></div>"; 
    5851        } 
    5952    } 
  • canalplan-ac/tags/2.1/readme.txt

    r537712 r537853  
    55Requires at least: 3.0 
    66Tested up to: 3.3.2 
    7 Stable tag: 2.0 
     7Stable tag: 2.1 
    88 
    99== Description == 
     
    5353== Changelog == 
    5454 
     55= Version 2.1 29/04/2012 = 
     56- Fixed an incorrect header in the widget plugin which confused the Wordpress SVN which reported the plugin as Version 1.0 rather than 2.0 
     57- Latitude Widget no longer shows ! places as nearest locations. 
     58 
     59 
    5560= Version 2.0 28/04/2012 = 
    5661- Checked for Wordpress 3.3.2 compatability 
  • canalplan-ac/trunk/canalplan.php

    r537712 r537853  
    44Plugin URI: http://blogs.canalplan.org.uk/canalplanac/canalplan-plug-in/ 
    55Description: Provides features to integrate your blog with <a href="http://www.canalplan.eu">Canalplan AC</a> - the Canal Route Planner. 
    6 Version: 2.0 
     6Version: 2.1 
    77Author: Steve Atty 
    88Author URI: http://blogs.canalplan.org.uk/steve/ 
     
    2929define ('CANALPLAN_GAZ_URL','http://www.canalplan.eu/gazetteer/'); 
    3030define ('CANALPLAN_MAX_POST_PROCESS',20); 
    31 define('CANALPLAN_CODE_RELEASE','2.0.0 r00'); 
     31define('CANALPLAN_CODE_RELEASE','2.1.0 r00'); 
    3232 
    3333global $table_prefix, $wp_version,$wpdb,$db_prefix; 
  • canalplan-ac/trunk/canalplan_widget.php

    r537712 r537853  
    11<?php 
    22/* 
    3     Plugin Name: Canalplan Latitude 
    4     Plugin URI: http://www.canalplan.org.uk 
    5     Description: Displays your current Latitude location and displays a link to the nearest Canalplan AC Location 
    6     Version: 1.00 
    7     Author: Steve Atty 
    8     Author URI: http://www.canalplan.org.uk 
    9  
    103    Copyright 2012, Steve Atty 
    114 
     
    5144        $lat=$x[1]; 
    5245          #  $sql="SELECT place_name,canalplan_id,lat,`long`,GLength(LineStringFromWKB(LineString(AsBinary(lat_lng_point), AsBinary(GeomFromText('Point(".$lat." ".$lng.")'))))) AS distance FROM ".CANALPLAN_CODES." ORDER BY distance ASC LIMIT 1"; 
    53         $sql="SELECT place_name,canalplan_id,lat,`long`,GLength(LineString(lat_lng_point, GeomFromText('Point(".$lat." ".$lng.")'))) AS distance FROM ".CANALPLAN_CODES." ORDER BY distance ASC LIMIT 1"; 
     46        $sql="SELECT place_name,canalplan_id,lat,`long`,GLength(LineString(lat_lng_point, GeomFromText('Point(".$lat." ".$lng.")'))) AS distance FROM ".CANALPLAN_CODES." where place_name not like '%!%' ORDER BY distance ASC LIMIT 1"; 
    5447        $res = mysql_query($sql); 
    5548        $gazstring='http://www.canalplan.org.uk/cgi-bin/gazetteer.cgi?where=$'; 
    5649        while($row=mysql_fetch_array($res)) { 
    57         print "<p><br />Nearest Canalplan location is : <br /> <a href='".$gazstring.$row['canalplan_id']."' target='_new' > ".$row['place_name']."</a> <br /></p></div>"; 
     50        print "<p>Nearest Canalplan location is : <br /> <a href='".$gazstring.$row['canalplan_id']."' target='_new' > ".$row['place_name']."</a> <br /></p></div>"; 
    5851        } 
    5952    } 
  • canalplan-ac/trunk/readme.txt

    r537712 r537853  
    55Requires at least: 3.0 
    66Tested up to: 3.3.2 
    7 Stable tag: 2.0 
     7Stable tag: 2.1 
    88 
    99== Description == 
     
    5353== Changelog == 
    5454 
     55= Version 2.1 29/04/2012 = 
     56- Fixed an incorrect header in the widget plugin which confused the Wordpress SVN which reported the plugin as Version 1.0 rather than 2.0 
     57- Latitude Widget no longer shows ! places as nearest locations. 
     58 
     59 
    5560= Version 2.0 28/04/2012 = 
    5661- Checked for Wordpress 3.3.2 compatability 
Note: See TracChangeset for help on using the changeset viewer.