My favorites | Sign in
Logo
                
Search
for
Updated May 16, 2009 by dylankkuhn
Labels: Phase-Deploy
UpgradeConsiderations  
Things to consider before upgrading.

If you are upgrading from a version prior to 1.1, at least some minor updates to geo mashup tags will be required. See TagRefOneOne for old and new tag formats.

Other considerations all have to do with Geo Mashup customizations. If you haven't created any files for Geo Mashup (aside from those it comes with), you are safe to upgrade any way you like.

If you have some customizations, keep reading. If something doesn't make sense, you probably don't have to worry about it.

Upgrading with Customizations

Starting with WordPress 2.7, you can upgrade plugins automatically from the admin interface via the "upgrade automatically" and related links. This method deletes the geo-mashup directory, and any files you've created there. Here is a safe upgrade path:

  1. If you are using a customized version of Geo Mashup, please download, install and activate the Geo Mashup Custom plugin;
  2. After activation click the link to 'list current custom files' on the Manage Plugins page in WP Admin;
  3. If all of your custom files are listed (e.g. map-style.css, info-window.php, full-post.php, custom.js) then you can now safely perform an automatic upgrade of the Geo Mashup plugin itself to retain your customizations;
  4. If your custom files could not be automatically recovered during activation of the Geo Mashup Custom plugin (e.g. due to server permissions) you will need to move them manually into the /plugins/geo-mashup-custom directory. Once here they will not be overwritten during subsequent upgrades of Geo Mashup itself, which you can now perform automatically.

That's it for upgrading. The rest of the information here relates to options and requirements for customizations.

Optional Theme Locations

If you'd rather keep Geo Mashup templates and stylesheets in your theme folder or folders, that is also an option. Copy your files to these locations in the wp-content folder, where

<your-theme>
is the folder of your active theme.

copy from geo-mashup folder copy to
map-style.css themes/<your-theme>/map-style.css
info-window.php themes/<your-theme>/geo-mashup-info-window.php
full-post.php themes/<your-theme>/geo-mashup-full-post.php

The files in your theme folder will be used by Geo Mashup 1.2 and later.

About the Geo Mashup Custom Plugin

There is a separate plugin now that provides a place for the custom.js file, and optionally any of the files above, as well as any other files you'd like to preserve.

Geo Mashup Custom plugin

This plugin's directory, geo-mashup-custom will safely house your custom files. No new versions will be released, so automatic upgrades will never be an option, and your files will not be deleted.

Geo Mashup Custom will try to copy the custom files listed above from the geo-mashup folder, but file permissions on your server may not allow this. Check that all your files are safe in the geo-mashup-custom folder. Once they are, Geo Mashup can be upgraded automatically as often as you please without touching your files.

Downgrading

Locations are now stored in their own table in the database. Locations from versions of Geo Mashup prior to 1.2 will be converted in an upgrade process invoked on the settings page, but the reverse is not true, so any locations saved in this version will be invisible to prior versions. Nothing is deleted, though, so you can downgrade and see your old locations.

As of 1.2.1, your locations will be converted when the plugin is activated, and a log of what happened is available on the options page.

Customization Name Changes

I've tried to improve the consistency of some names. In general I've avoided any renaming that would break a default installation of 1.1.3, but if you've customized your installation you may need to make some updates.

CSS Selectors

Selectors use lower case and dashes now instead of underscores or mixed case in names. These changes should only affect you if you've applied custom styles to Geo Mashup output in your theme.

old new
.geo_mashup_link .gm-link
#geoPost #gm-post
#geoMashupCategoryLegend #gm-cat-legend

Custom Javascript

1.1.3 installations should be okay as they are.

If you have a 1.2beta1 installation and have a custom.js file, you may need to make some changes to it:

Hosted by Google Code