Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-07 03:42:16

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

[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:

  1. The last x distinct IP Addresses written to the TXP log table are queried (25 by default)
  2. 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
  3. If the location is found, the coordinates are added to the Google Map using the GXmlHttp object, Google’s implementation of “AJAX” support.

See The Example

Documentation

Download

How To Use the Plugin

  1. Go get a Google Maps API Key. Its free, and you need a unique key for each domain you use the plugin on.
  2. Setup a cache directory for IP Address Lookups and make it writeable.
  3. 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.
  4. 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

#2 2006-01-07 14:13:13

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#4 2006-01-08 04:23:54

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

#5 2006-01-09 19:09:29

Liiint
Member
From: Tacoma, WA
Registered: 2004-10-01
Posts: 18
Website

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

#6 2006-01-09 20:06:40

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

#7 2006-01-09 21:09:39

Liiint
Member
From: Tacoma, WA
Registered: 2004-10-01
Posts: 18
Website

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

#8 2006-01-10 01:11:21

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps

Did you take the map off that page?

Offline

#9 2006-01-10 02:06:34

Liiint
Member
From: Tacoma, WA
Registered: 2004-10-01
Posts: 18
Website

Re: [plugin] [ORPHAN] rss_googlemap_stats - Textpattern Logs + Google Maps

It’s back now.

Offline

#10 2006-01-10 02:27:48

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

#11 2006-01-12 15:43:48

gdtroiano
Archived Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

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

#12 2006-01-14 22:40:05

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

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

Board footer

Powered by FluxBB