USER MAP INSTALLATION
Plugin by Sean (Byroman) - http://sean-byron.ca

1. Unpack the plugin into /plugin/usermap

2. Create the new SQL table:

CREATE TABLE `sed_usermap` (
  `id` int(11) NOT NULL auto_increment,
  `userid` int(11) NOT NULL default '0',
  `lat` decimal(12,8) NOT NULL default '0.00000000',
  `lon` decimal(12,8) NOT NULL default '0.00000000',
  `description` varchar(255) NOT NULL default '',
  `username` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;


CREATE TABLE `sed_usermap` (
  `id` int(11) NOT NULL auto_increment,
  `userid` int(11) NOT NULL default '0',
  `lat` decimal(12,8) NOT NULL default '0.00000000',
  `lon` decimal(12,8) NOT NULL default '0.00000000',
  `description` varchar(255) NOT NULL default '',
  `username` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;

3. Sign up for a Google Maps API key at: http://code.google.com/apis/maps/signup.html
This is important! User Map will not function with out this code!!

4. Copy your key into the configuration panel for the plugin (admin.php?m=config&n=edit&o=plug&p=usermap)
Here you can also change the size of the maps to fit your site.

5. Add the tags listed on the plugin page to your TPL's
Heres an example on how to use these tags:

users.profile.tpl:	

	<tr>
		<td>User Map<br />
		(Select a point on the map where you would like your pin to apear, leave blank for no point)</td>
		<td>{USERMAP_MAP}</td>
	</tr>


	<tr>
		<td>Lattitude</td>
		<td>{USERMAP_LAT}</div></td>
	</tr>

	<tr>
		<td>Longitude</td>
		<td>{USERMAP_LON}</div></td>
	</tr>
	<tr>
		<td>Description</td>
		<td>{USERMAP_DESC}<br>
		{USERMAP_GEOCODER}</div></td>
	</tr>

users.edit.tpl:	

	<tr>
		<td>User Map<br />
		(Select a point on the map where you would like your pin to apear, leave blank for no point)</td>
		<td>{USERMAP_MAP}</td>
	</tr>


	<tr>
		<td>Lattitude</td>
		<td>{USERMAP_LAT}</div></td>
	</tr>

	<tr>
		<td>Longitude</td>
		<td>{USERMAP_LON}</div></td>
	</tr>
	<tr>
		<td>Description</td>
		<td>{USERMAP_DESC}</div></td>
	</tr>

users.details.tpl:

	<tr>
		<td>User Map</td>
		<td>{USERMAP_MAP}</td>
	</tr>

6. Add your pin to the map by editing your profile, and call the map up with plug.php?e=usermap

7. Enjoy!


FEATURES
- User Map uses Google's Geocoder service to automatically get the users Latitude and Longitude based on the location and country specified in their profile
- Has two different maps
	- The main map with all the users pins (plug.php?e=usermap)
	- Another map visible when you view a users profile