New GoogleMaps plugin for Coppermine v1.5 New GoogleMaps plugin for Coppermine v1.5
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

New GoogleMaps plugin for Coppermine v1.5

Started by Sapman, May 22, 2010, 09:03:15 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Sapman

Hi everybody!

Recently I developed new plugin to integrate Google Maps window into Coppermine PicInfo section. Now I like to share my experience with others.

Plugin currently supports 2 languages - Russian and English.  No configuration requied to install, no code modification needed. Also forget about GoogleMaps site keys.

How to use:

1. Install like any other plugin. When installed, plugin adds row 'Geotags' in PicInfo section.

2. Open picture with geotags. Row 'Geotags' should have a hyperlink with Longitude and Latitude from image.

3. Click on hyperlink. GoogleMaps window expands below.

Sample album with geocoded photos and plugin installed -
http://www.anyphoto.ru/displayimage.php?album=3&pid=4#top_display_media

Plugin can be downloaded from here - http://anyphoto.ru/GoogleMaps(Coppermine_v1.5).rar

P.S. I hope somebody will tell me, how my plugin can be registered with others for Coppermine 1.5 on SourceForge. 

phill104

Good work but still needs a little more to make it really good.

Instead of hard coding the languages in codebase it is better to use a variable and a language file. At the moment adding languages could result in a right mess.

A good example of how this should be done can be found by looking at the following plugins code - http://forum.coppermine-gallery.net/index.php/topic,64820.0.html

Keep up the good work. I'm sure Joachim will add this to the repositry on soundforge. I'm not sure I know or have the relavent permissions to do so.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Well done - keep on improving your plugin; I have cleaned it up a little in terms of standards compliance, naming scheme and indentation. Please base your improvements on the version I attached.

Cheers

Joachim

Sapman

Quote from: Phill Luckhurst on May 22, 2010, 11:07:10 PM
Good work but still needs a little more to make it really good.

Instead of hard coding the languages in codebase it is better to use a variable and a language file. At the moment adding languages could result in a right mess.

A good example of how this should be done can be found by looking at the following plugins code - http://forum.coppermine-gallery.net/index.php/topic,64820.0.html

Keep up the good work. I'm sure Joachim will add this to the repositry on soundforge. I'm not sure I know or have the relavent permissions to do so.

Plugin Updated (multilanguage support added in separate files.) Everything ok now?

Joachim Müller

Hm, no. It's a pity that you haven't done as I suggested:
Quote from: Joachim Müller on May 23, 2010, 12:37:51 AMPlease base your improvements on the version I attached.
, but in fact you did quite the opposite. As I suggested, I have spent quite some time to correct several flaws in your initial release. Wasting all those changes by ignoring my advice is not a bright idea, or at least not nice. Please read up the documentation's sections that explain naming schemes, i18n and coding standards. Naming your variables "bla_bla" and so on is not helpful and not something we're fond of, sorry.

Sapman

Joachim,

I'm not sure I have enough time to read all sections of developers info. I had an idea to write this plugin and share it to other end-users, not coders. End-users not interested in code exellence - they need functionality and reliability. 


To coders: anybody can change my plugin to satisfy Joachim's rules, just put it in repository for end-user convenience.


Joachim Müller

#6
Being too lazy to read the docs is one thing. Ignoring the effort I have put into improving your plugin is another thing. There's no added functionality in the attachment in Sapman's second attachment in this thread, so please don't use it. Additionally, the changes I applied are not only cosmetical, but they serve a purpose, as there is a reason behind the policies that is not only beauty and readability of code, but practical reasons. It's for example a bad idea to use capitalization in folder names, as this will work in some cases (i.e. on some webserver setups) and won't work on others. Reacting in the way you did seems a bit stubborn and selfish to me...
I have added i18n and cleaned the plugin up even more - changes went into the attached file. Anyone who wishes to further improve the plugin, please use that version.
I wasn't able to actually test the plugin, as I don't have geocoded images I could test with.

Joachim

P.S. The demo image you refered to above in your initial posting no longer exists, that's a pity.


mykee

I get this error when click a picture:
Fatal error: Call to undefined function read_exif_data_raw() in /plugins/google_maps/codebase.php on line 24

I have installed Jsmin, Flash Media Player, Who is online, Filetypes editor, Keyboard navigation plugins.
Link is here, try a foto:
http://foto.acegem.hu/index.php
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

mykee

Ok, I deactivated this plugin while not working.  :-\
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

mazze

i used CP 1.5.6 and the plugin cpg1.5.x_plugin_google-maps_v1.2
when i click on a photo there is an error: Fatal error: Call to undefined function read_exif_data_raw() in /web/x/xxx/xxxxx/xx/htdocs/cp/plugins/google_maps/codebase.php  on line 24
i have PHP Version 5.2.13 and EXIF Support is enabled...

Joachim Müller


sjat

Can anybody help me:
How can I remove the EXIF output in the top of the screen, when I am using this plugin ?
Link: http://yksi.dk/test/displayimage.php?pid=1#top_display_media

Its only a testsite with that one photo, but the problem is the same at my real site...
Thanks in advance
Sjat

cavok

Hello,
I have some position errors on the map with this plugin v1.2.
Where is West longitude, the position is show on the map as East.
It seems he does not make a distinction between West and East, and that makes every East.
When I display a East Longitude position, there is no error.
All this with a North Latitude, I have nothing in South to try if the error Repette in Latitude.
Do you have the same errors ?
Would you solutions to fix this problem ?
Thank you for your help
Coppermine 1.5.22 hosting by Free

Ruhrpottjung

I'm sorry but it don't work at me only get a error when I click on a picture:

QuoteFatal error: Call to undefined function read_exif_data_raw()

Maybe can be fixed?

Thnx
Hans

cmfa

The error message is ok, because there is no longer this function. In the appendix the codebase.php with another function. So it should work again.

cmfa