WDDB - Web Design Database

Web Design Resources for the Common Man

Login here · Register · Lost your password?

In: Resources / Seditio / Seditio Plugins

User Map

Allows users to add their locations to a public map

Print
Author: byroman
Submitted by: byroman   Date: 2009-01-21 19:02
Comments: (0)   Ratings:
Average members rating (out of 10) : Not yet rated   
Votes: 0
Installation:
1. Unpack the plugin into /plugin/usermap
2. Create the new SQL table:
Code:
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(50) NOT NULL default '',
  `username` varchar(50) NOT NULL default '',
  `colour` varchar(8) NOT NULL default 'red',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
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 (See readme.txt for some examples)
6. Add your pin to the map by editing your profile, and call the map up with plug.php?e=usermap
7. Enjoy!


New In v2.0:

- Different coloured markers are now suported
- On the main map, the users Avatar will now be displayed on their pin
- Various security fixes
- Language file has been added
- Geocoder function has been improved


To Upgrade From v1.0 to v2.0:
1. Delete the old plugin and upload the new files
2. Run the following SQL:
Code:
ALTER TABLE `sed_usermap` ADD `colour` VARCHAR(8) DEFAULT 'red' NOT NULL;
3. You're good to go!

Screen Shots:





Note: The download package includes a Cotonti and a Seditio version of the plugin.
Download : User Map
Size: 10000KB, downloaded 344 times