Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
The rss_googlemap_stats plugin displays recent visitors to your site on a Google Map along with a chart of recent visitors below. Here’s how the plugin works:
- The last x distinct IP Addresses written to the TXP log table are queried (25 by default)
- The physical location of the IPs are looked up using an IP Address Lookup service and results are cached locally using a PHP function written by Carlos Averett
- If the location is found, the coordinates are added to the Google Map using the GXmlHttp object, Google’s implementation of “AJAX” support.
How To Use the Plugin
- Go get a Google Maps API Key. Its free, and you need a unique key for each domain you use the plugin on.
- Setup a cache directory for IP Address Lookups and make it writeable.
- Add the <code><txp:rss_googlemaps_js apikey=“xxx” /></code> tag to the <code><head></code> section of your page. Set the apikey attribute using the key you just got.
- Add the <code><txp:rss_googlemaps /></code> tag to the <code><body></code> section of your page. Set the attributes as you like.
Last edited by wilshire (2006-01-17 21:19:57)
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
Nice one Rob. Are you on a roll here? I can’t wait to see what’s next :)
Offline
#3 2006-01-07 19:40:22
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
Having trouble getting anthing to display. I noticed there is a google maps api key hard coded in the plugin code, is it supposed to be there?
Last edited by lee (2006-01-07 20:54:52)
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
lee – That’s not a problem. Its just the default (my key). You still need to signup for your own Google Maps API Key. I’ve used the plugin on other domains without a problem once I signed up for a key for those domains.
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
I like the plugin. However, while it seems to work fine in Firefox, it fails in IE. I tried it on your site’s example and it fails there also. Is anybody else seeing this or is it my corporate standard IE that’s causing the problems?
Thank you.
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
Works for me in IE 6. If there’s a Javascript failure then it would be something related to Google Maps. Can you view any google maps in your browser?
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
I’m on IE 6 as well. Other Google Maps sites seem to work. HousingMaps and GMap Pedometer both work fine.
The page begins to load. I see the map (but not the city list below that), then the following error appears in a pop-up:
Internet Explorer cannot open the Internet site http://www.exit133.com/maps
Operation aborted
Click OKAY and it goes to a “The page cannot be displayed” error page.
I get this same error on your site. I’ve also tried my personal laptop and get the same error using IE 6.
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
Did you take the map off that page?
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
It’s back now.
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
Looks like this is a general IE bug as noted here
Someone even had the same problem with Google Maps as noted here
If you remove the chart below the map by setting showchart=“0” the error should go away in IE for now. I’ll have to investigate the workarounds.
Last edited by wilshire (2006-01-10 02:28:10)
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
Setting showchart=“0” doesn’t solve the problem for me in IE 6.
Last edited by gdtroiano (2006-01-12 18:44:11)
Offline
Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps
I’ve been playing around with a XMLHttpRequest based version of the plugin. Anyone get errors in IE on my stats page now?
Offline