Advanced search  

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

Pages: 1 2 3 4 [5] 6 7 8 9 ... 15   Go Down

Author Topic: Google Map in Coppermine Gallery, version 2 (of mod and api)  (Read 326099 times)

0 Members and 2 Guests are viewing this topic.

gt4mike

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • wallpaper
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #80 on: September 12, 2006, 08:01:27 am »

Yes, but in your Private message because the photos are too hot. ;)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #81 on: September 12, 2006, 08:31:23 am »

You have the gmap css showing up twice. Otherwise, changing #gmap height value works.
Logged

gt4mike

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
    • wallpaper
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #82 on: September 12, 2006, 08:57:58 am »

You have right.

I have delete the CSS style in google_map.php

And i have modified the height from #gmap in :

/plugins/master_template/codebase.php

It work's fine.  ;D

Thanks
Logged

Brunosh

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #83 on: September 17, 2006, 06:38:51 pm »

Thank you very much for this great mod ! It is amazing.
I used it for few month without any problem. But now, if I have 3 or more pictures with the same lat/long, tab doesn't work (nothing is displayed when I clic to mark) and if I clic to image, a JS error occurs :

Code: [Select]
Erreur : [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]"  nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"  location: "JS frame :: http://maps.google.com/mapfiles/maps2.59.api.js :: Lb :: line 45"  data: no]
Fichier source : http://maps.google.com/mapfiles/maps2.59.api.js
Ligne : 45

I have noticed than Brunosh'map has the same error (http://yourbde.free.fr/coppermine/map.php)

This problem is quit new, all was ok before.

I have tried to upgrade the mod with your recent modification, without success  :'(

Bongadam

ps : sorry for my poor english

I checked and it is true that my main map http://yourbde.free.fr/coppermine/map.php was not working anymore!

so finally I followed this instruction =>

Yeah, something happen to the api code so for now, I'd recommend rolling back the version. In include/map.inc.php

Look for this:
Code: [Select]
<script src="http://maps.google.com/maps?file=api&amp;v=$version&amp;key=$map_key" type="text/javascript">

Replace with:
Code: [Select]
<script src="http://maps.google.com/maps?file=api&amp;v=2.58&amp;key=$map_key" type="text/javascript">

This is just temporary until Google fixes the latest version.

But I still have nothing on my main map  :'(
I don't know what is wrong!!!

Could it be possible that I tagged too much photos and the script doesn't like it ?

As for bongadam the other maps for albums and pictures are ok...

TranzNDance as during july I need you again  :)
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #84 on: September 17, 2006, 06:48:27 pm »

Brunosh,

I think you copied too much text when you got the coordinates for this image: http://yourbde.free.fr/coppermine/displayimage.php?pos=-463

Notice that the map is broken on that page, too.

Hope that helps.
Logged

Brunosh

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #85 on: September 17, 2006, 06:54:52 pm »

False Alarm... lol
working again...
I tagged a photo with a piece of text...
he did not liked it I guess!

Everything Green, Super Green  ;)

TranzNDance, as the others, I'm loking foward for your code gathering the tags !
great feature for the future  ;)

[edit] haha you checked faster than me for my own website! Oh TranzNDance, again I am impressed  ;) :D
Logged

Cino

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #86 on: September 21, 2006, 09:09:25 pm »

Thanks for a great mod!!! You already said it, reading exif would have been better. Would make the import go real smooth. Thanks again tho!!! keep up the great work.
Logged

jidol

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • My gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #87 on: October 22, 2006, 04:17:51 pm »

Thank very much for great mod! If it waspossible to read  geolocated exif date, It would be amazing!!!!

Just one silly question, how to display in admin mode hybrid map insted of default map for editing the position? ( I tried it Settings/Google API and with no result). It is better if you need to locate your pics precisly in the more remote areas not covered with detailed maps.
Thank for your time.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #88 on: October 22, 2006, 05:08:44 pm »

You can change in Config: Default type for small map

Or just click the type option button in the top right corner. If that's not available, let me know.
Logged

jidol

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • My gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #89 on: October 22, 2006, 09:40:17 pm »

You can change in Config: Default type for small map

Or just click the type option button in the top right corner. If that's not available, let me know.

I changed that option a few times without any result - I set small map to hybrid, but still is being displayed as a  normal map.
As well there si  no button to switch to another map type in admin mode ( when I am updating single picture).

Again  big thank you for time spent with my questions :'(
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #90 on: October 22, 2006, 10:54:12 pm »

Sorry, that's my bad. In editOnePic.php,

FIND:
Code: [Select]
map.addControl(new GSmallMapControl());
REPLACE with:
Code: [Select]
map.setMapType({$CONFIG['gmap_small_type']});
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());

I have updated the code on the first page. Thanks for bringing it up. edipics.php is a little bit more complicated so I'll look into that.
Logged

pocketmon

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #91 on: November 06, 2006, 03:12:21 pm »

Hi,

I am new to this forum, and like this mod very very much.
So, I spend sometime, (ok, not as much as applying this mod..) to check how to add EXIF support.

It's simpler than I expect, and The code I modified does work on my test bed.

However, I never write any PHP code before this. So, maybe please TranzNDance take a look at this code, to make this mod complete.

just my .02
Logged

arlon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #92 on: November 06, 2006, 07:00:25 pm »

This plugin seems great.. just.. I can't get it to work :-(

here is the map page http://www.agfx.eu/_/map.php "internal error"
Everything seems to work fine (admin, sql, etc..) except the main page.. how can I be the only one with such a problem? :-S

I checked the copy/paste twice, any suggestions?

Thanks in advance..
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #93 on: November 07, 2006, 06:50:49 am »

pocketmom, thanks for your contribution. I'll take a look at it when I can.

arlon, have you checked that the chmod permissions are correct? If they are, can you copy the map file, rename it test.php and put in the following:
Code: [Select]
<?php
phpinfo
();
?>
Logged

arlon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #94 on: November 07, 2006, 08:48:54 am »

This is strange.. I can't create a phpinfo file, but can only access these informations via the server admin page.. here they are
[removed]
(hope it works)
what should I look for? (I'm pretty unexperienced, as you can understand :))
« Last Edit: November 07, 2006, 06:04:02 pm by TranzNDance »
Logged

arlon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #95 on: November 07, 2006, 10:41:35 am »

sorry for another post: I changed permissions for albums and include folders, during installation.. nothing else..
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #96 on: November 07, 2006, 04:57:49 pm »

OK, instead of the php info, can you have the following in between the php tags:

Code: [Select]
echo 'hello world';
There could be any number of reasons why there is a server error. One could be improper chmod setting. I want to see if the problem is with the file or with the code. I doubt the map code would cause a server error.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #97 on: November 07, 2006, 06:03:33 pm »

Here's a post with a list of possible reasons for a 500 error:
http://www.lunarforums.com/forum/index.php?topic=36218.msg270977#msg270977

If none of them apply, and you've done the testing I've suggested, I would advise you ask your webhost.

I've removed the link to your phpinfo page. You really don't want others to see it. I just wanted you to see if there are issues with your settings or with the map file.
Logged

arlon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #98 on: November 07, 2006, 06:12:06 pm »

ok, I'll check this out!!

thanks a lot for your help, I'll let the board know if (and how) I'll solve this :)
Logged

pocketmon

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #99 on: November 08, 2006, 12:51:29 am »


I found that the following code doesn't work. 
if($exifRawData['GPS']['Longitude Reference']=='W') ..
So I changed it to
if(strncmp($exifRawData['GPS']['Longitude Reference'],"W",1)==0) ...

Now it should be ok for west and south earth location.

Logged
Pages: 1 2 3 4 [5] 6 7 8 9 ... 15   Go Up
 

Page created in 0.029 seconds with 19 queries.