coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ericwfrost on March 09, 2007, 05:02:57 PM

Title: Map of Visitors To Coppermine Gallery
Post by: ericwfrost on March 09, 2007, 05:02:57 PM
I developed this service that will display a map of visitors to gallery or site by placing this line of html code in the layout or footer --

<a href='http://www.mapvisitors.com' title='Map of Visitors'><img src='http://www.mapvisitors.com/m.png' alt='Visitor Map' style='border:0'></a>

After the html is placed, it will start recording visitors, you just click on the button on your web site and it will display a map of your visitors.

Do you think I should try to develop it as a mod for Coppermine? Otherwise I guess you have to dig into the template.html which may not be for everyone.

Is there a guide for developing Coppermine mods properly?

Thanks!
Eric
http://www.mapvisitors.com
Title: Re: Map of Visitors To Coppermine Gallery
Post by: nickfzx on March 09, 2007, 05:24:39 PM
i am not 100% on this but I think this mod already exists.

try searching.

I think it uses googlemaps to do it.
Title: Re: Map of Visitors To Coppermine Gallery
Post by: Joachim Müller on March 09, 2007, 07:21:36 PM
This thread definitely is related to Coppermine and not related to Photography Tips & Tricks (http://forum.coppermine-gallery.net/index.php?board=35.0), so you shouldn't have posted it on the Photography board. Moving accordingly.
Title: Re: Map of Visitors To Coppermine Gallery
Post by: Tranz on March 10, 2007, 03:04:41 PM
I don't see how this mod can show visitor info based on the code snippet used. Maybe I'm confused about how it's supposed to work.
Title: Re: Map of Visitors To Coppermine Gallery
Post by: Nibbler on March 10, 2007, 03:24:36 PM
Logs the IP and referer of requests for the image I expect.
Title: Re: Map of Visitors To Coppermine Gallery
Post by: ericwfrost on March 16, 2007, 09:29:49 PM
Yes Nibbler that is correct. It primarily uses the HostIP.info database for the IP to lat/lon lookups.

When you have the button on your site and then click on it, the index.php code on mapvisitors detects the referrer and queries the database for the visitors that have been recorded for your site. That is a mouthful but I hope it makes sense.

Eric