Gossamer Forum
Quote Reply
[ NEW PLUGIN ] GoogleMap
Hi,

I'm pleased to announce the release of GoogleMap

NB: This plugin is also part o the ULTRA PRO Package - more details here - http://www.ultranerds.com/Detailed/134.html

Plugin Details: http://www.ultranerds.com/...sion/GoogleMap_L256/
Price: $80

About:

This plugin lets you show a cool map on your detailed page, assuming the linkowner has provided a valid address. It gets the longitude and latitude of the address, which in turn lets you get a more precise address on the maps Smile

Its very simple to setup (just install, enter your Google API key into the plugin settings - and add a bit of template code into detailed.html)

You can see an example of how it looks on the detailed page - as well as the attached image (from a site I've just set it up on)

If you have any questions, please let me know.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
IMPORTANT NOTE In reply to
Hi,

Just thought I would post this - for anyone using/going to use this plugin.

If you are using tables in your templates, then please be aware - that you need to put ALL the <script>..</script> stuff that is added into detailed.html, in the FOOTER of your template

For example, if you have:

Code:
<table border="1" style="border-collapse: collapse" width="100%">
<tr>
<td>sdfodsjfspojfsf</td>
</tr>
<tr>
<td>
<p align="center">MAP HEREe</td>
</tr>
</table>

..you must put the code below the </table> bit.

This is due to an issue with IE (all versions), and the Google Map JS. It doesn't seem to like being put inside table . If you fail to do this,you will notice a "gap" shows in the map - and it doesn't auto-navigate to the correct place on the map =)

If anyone has any questions, please don't hesitate to ask.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] IMPORTANT NOTE In reply to
Hi Andy,

I test your script and I have an error message :


Code:
A fatal error has occured:

Can't use an undefined value as a HASH reference at /../admin/Plugins/GoogleMap.pm line 289.
Please enable debugging in setup for more details.

You have an idea ?

Thank you for your assistance.

Mick
Quote Reply
Re: [Oyo] IMPORTANT NOTE In reply to
Hi,

Please send over FTP access, and GLinks admin details. Also, the LinkID of the link you're trying to work on.

I'll have a look into it for you.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] IMPORTANT NOTE In reply to
Hi,

Thanks, that was a bug. I've fixed it up now, and released version 1.1 into the Members Area Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] IMPORTANT NOTE In reply to
Hi,

I've just uploaded version 1.2.

This includes a "delete" function. This is only needed when you edit an existing link, and change the address. It will delete the co-ordinates from the the GoogleMap table (which is used to get the map co-ordinates, for showing on the map)

This version is available from the Members Area now.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] IMPORTANT NOTE In reply to
Hi,

I've just released version 1.3 of this plugin. This fixes up a bug, which was overwriting the LinkID on detailed pages.

If you already have this plugin installed, you can easily patch it up - in /admin/Plugins/GoogleMap.pm, find:

Code:
my $long_lat_details = $DB->table('GoogleMaps')->select( { LinkID => $ID } )->fetchrow_hashref;
..and add this after it:

Code:
delete $long_lat_details->{ID};

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] IMPORTANT NOTE In reply to
Hi,

Version 1.4 is now available from the Members Area. This includes a new link, which lets you manually add a Long/Lat value for a link (for links that are prooving hard for Google Maps to find the appropriate location Smile)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] GoogleMap In reply to
For anybody wishing to have a 'mouseover' effect on their detailed page you can try this code in place of the 'standard' code in the Plugin.


<%-- START GOOGLE MAP STUFF --%>
<%if LongVal%>
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2.x&key=<%API_Key%>"></script>
<style>.gmap {
margin: 0px;
padding: 0px;
}
.middleColumn {
margin: 0px;
padding: 0px;
}</style>
<div style="padding: 10px 10px 10px 10px;">
<div id="ForumMembers_mapdisplay" style="width: 500px; height: 300px" class="gmap display"></div>
</div>
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {

function createMarker(point,html) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
// The new marker "mouseover" listener
GEvent.addListener(marker,"mouseover", function() {
marker.openInfoWindowHtml(html);
});

return marker;
}

var map = new GMap2(document.getElementById("ForumMembers_mapdisplay"));
var center = new GLatLng(<%LatVal%>,<%LongVal%>);
new GLatLng(<%LatVal%>,<%LongVal%>);
map.setCenter(center, 12);
map.enableContinuousZoom();
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

var point = new GLatLng(<%LatVal%>,<%LongVal%>);
var marker = createMarker(point,'<h2><%Title%></h2>')
map.addOverlay(marker);
}
else {
alert("Your browser is not compatible with the mapping tool.");
}
//]]>
</script>
<%endif%>
<%-- END GOOGLE MAP STUFF --%>


I've tried this and it appeared to work OK.
Colin Thompson
Quote Reply
Re: [Andy] [ NEW PLUGIN ] GoogleMap In reply to
Hi,

Just an update on this.

Google have done some changes on their "map" system, which has stopped the older version codes working. For people using this plugin, please change:

Code:
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2.x&key=YOUR_KEY"></script>

..to

Code:
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=YOUR_KEY"></script>

(i.e take the .x out of the 2.x bit :))

I'm gonna get a release version made with this fix in a minute, as well as for the GoogleMapForCat plugin too.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] GoogleMap In reply to
Hi,

GoogleMap version 1.5 has now been released. This includes a couple of updates:

1) The "readme" has been changed, to include some fixes
2) By default, it not includes the "hybrid" map system, so you get the streets etc showing up, but also a "satellite" view of the location too - which looks very cool =))

To remove that functionality, please just remove this from the code you put in your detailed.html template:

Code:
map.setMapType(G_HYBRID_MAP);

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] GoogleMap In reply to
Hi,

I'm pleased to announce the release of version 1.5.

It now has a new field, where users can select an icon that is appropriate for their listing (a set of 29 different icons)

Version 1.5 is now available from the Download Area on our site.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [ NEW PLUGIN ] GoogleMap In reply to
Dude you were just talking to me online and helping me.. where in the 'freakin' world did you find time to finish this one? last I checked there were few more things you were doing on it.. !!!!!!!

Vishal
-------------------------------------------------------
Quote Reply
Re: [SWDevil.Com] [ NEW PLUGIN ] GoogleMap In reply to
haha yeah, last few things I had to do were just update the documentation, which didn't take too long Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!