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 ... 7 8 9 10 [11] 12 13 14 15   Go Down

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

0 Members and 1 Guest are viewing this topic.

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #200 on: December 14, 2007, 06:06:20 pm »

I just tried now without the google analytics javascript code on my template and removing the code in codebase.php...everything looks the same!!

Also comented out this line
Quote
//   $uacct='NN-NNNNNN-N';

I thing there's a problem with my master template...Its ok to change the code AFTER the installation or should I tried BEFORE installing it??
Im completely Lost here!! If you can thing on something else please let me know.

Also just to make sure: Does the host need an extra feature installed?? Im running the site on a free host...

Thanks!!

Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #201 on: December 14, 2007, 07:48:21 pm »

definetely I thing the problem is with the Master Template wich may be in conflict with another of the plugins I have installed in the site as the following line doesn't show up neither:

in codebase.php
Quote
<a href="http://coppermine.sf.net"><img src="plugins/master_template/images/mycoppermine.png" width="300" height="64" border="0" alt="Coppermine Logo" /></a>

I can't find this line in the generated page ( no pic displayed ) so it might be another pluging interfering with the functionality of the Master Template

What do you think?? Someone realized if there's a pluging wich causes problems with the Master Template v 1.2??

I uninstalled few plugs wich I no longer need but I would like to keep the following ones:

Master_Template v1.2     --> In order to make this beauty working
Movie Download Link Plugin v1.0    
Display Fields v1.02    
HighSlide v2.3    
Custom FilmStrip v1.0    
CPG MiniCMS v1.6    
Loginform v1.1    
Login info v1.3.1    
Advanced Thumbnail Captions v1.01    
Calendar v1.0    
Keywords_add v1.0    
Album List v1.0    
Photo Summary v2.1    
OpenSearch v1.0    
Picture annotation v1.0    
Multiline comments v1.1    
Remove Crop and Rotate v1.1    
Keyword List v2.0    
Engine Friendly URLs v1.1    
Author Coppermine Development Team
CAPTCHA v2.0    
Contact v1.3    
FileMove v1.0.1    
Extra Anycontent v1.0    
Orderable Category List v1.1    
Name Multilingual texts v1.0

If someone have one of them installed and causing Master Template not working as supposed to do please let me know, I really want Tranz's awesome mod working   :P

Thank you all  ;)
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 #202 on: December 14, 2007, 11:34:05 pm »

Thanks for your quick reply!! wasn't expecting it that fast.

for clarification: I do have the master templated installed see attached pic, and yes you are right I can't find the code you mentioned on my map.

Could this happen because I have a plugin or javascrit conflict??

I'm using the Google Analytics so I left the code without commenting out the line:

Code: [Select]
$uacct='NN-NNNNNN-N'; is that right??

I dunno what else try...I'm pretty sure I followed the instructions

Thanks again!!


Sorry, I misunderstood since you had written that you tried to skip having the template, I didn't realize that you were using it at the time that I looked at it.

If you are using Google Analytics, have you tried entering your analytics code in place of the placeholder Ns? Edit that file, then upload and install the plugin.

Hope that helps.
Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #203 on: December 15, 2007, 02:05:52 am »

Thanks for your help but didn't make the mod working; I replaced the n's from the codebase with my code numbers from analytics.
Anyway, the prob is not with the master template as I thought. Made few tests and everything works fine with the MT plugin.

I made sure the following code in codebase.php was placed in order:

FIND:
Code: [Select]
$thisplugin->add_filter('template_html','change_template_html');
AFTER it, ADD:
Code: [Select]
// Add a filter
$thisplugin->add_filter('page_html','add_gmap_html');
As these lines injects the javascript code before the body tag so the map can be shown (as you explained before).

Reviewed few times and everything placed as instructed but remains the problem as I cannot find in the generated code line:
Code: [Select]
<script src="http://maps.google.com/maps? so no map shown

Can you please have a look?? What else can I try?? I don't understand, can this be a plugin conflict issue?? Im lost  :'(
Thinking now about having a javascript conflict coz I dunno what else I can check...
Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #204 on: December 15, 2007, 11:59:38 am »

WOW!!! I MADE IT TO WORK!! IM REALLY HAPPY!!

thank you Tranz!!

I made seem stupid now as the problem was even more easy than that...you will have to slap me!! For some reason there was no body tag on my template file Do'h ( probably coz I deleted it by mistake ).

Just one little question: how can I delete the Album name and owner name from the ballon once you press in the marker??

I'm a happy man!! thanks Tranz and sorry for my stupidity: I learn the lesson: Just check, check & re-check TF code!!!  :o

Thanks!! Luv this beauty!! I will start marking my map  ;)
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 #205 on: December 15, 2007, 04:02:30 pm »

WOW!!! I MADE IT TO WORK!! IM REALLY HAPPY!!

thank you Tranz!!

I made seem stupid now as the problem was even more easy than that...you will have to slap me!! For some reason there was no body tag on my template file Do'h ( probably coz I deleted it by mistake ).

Just one little question: how can I delete the Album name and owner name from the ballon once you press in the marker??

I'm a happy man!! thanks Tranz and sorry for my stupidity: I learn the lesson: Just check, check & re-check TF code!!!  :o

Thanks!! Luv this beauty!! I will start marking my map  ;)

I'm glad you were able to figure out. Since master template looks for the body tag, that would explain why it failed earlier.

To edit the balloon text as you requested:
Edit map.inc.php:

Find:
Code: [Select]
$details = "<a href=\"" . $thumb_link . '"><img src="' . $CONFIG['ecards_more_pic_target'].$thumb_url . '" class="image";></a><br/><b>' . $thumb_title . '</b><br/>' . $thumb_caption . '<br/><br/>' . addslashes($lang_picinfo['Album name']) . ': <a href="' . $album_link . '" title="' . $album_link_title . '">' . $album_title . "</a></i><br/>" .
$lang_adv_opts['owner_name'] . ': <a href="' . $owner_link . '" title="' . $profile_link_title . '">' . $owner_name . '</a>';

Replace with:

Code: [Select]
$details = "<a href=\"" . $thumb_link . '"><img src="' . $CONFIG['ecards_more_pic_target'].$thumb_url . '" class="image";></a><br/><b>' . $thumb_title . '</b><br/>' . $thumb_caption;
Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #206 on: December 15, 2007, 04:27:27 pm »

Thanks so much for the info. I just updated the ballon tip and deleted the owner name as I'm the only registered user and no one else can registrate and upload their own pictures to the gallery...I'm using CPG as per personal gallery, so no need to show the username...

Cool I'm going to mark a few files; Everything looks great; I really appreciated your HARD code-work, it must be kind of difficult and you must be very patient to read all the google API documentation in order to achieve that lovely mod!!

I just realized that the sidebar don't show properly in IE; the scrollbars don't even apear...Ah well, I'm FF user and most of the visitors use FF as well, so nevermind, IM VERY HAPPY AS IT IS...Thanks, thanks & Million Thanks!!  :P
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 #207 on: December 15, 2007, 06:06:22 pm »

Thanks so much for the info. I just updated the ballon tip and deleted the owner name as I'm the only registered user and no one else can registrate and upload their own pictures to the gallery...I'm using CPG as per personal gallery, so no need to show the username...

Cool I'm going to mark a few files; Everything looks great; I really appreciated your HARD code-work, it must be kind of difficult and you must be very patient to read all the google API documentation in order to achieve that lovely mod!!

I just realized that the sidebar don't show properly in IE; the scrollbars don't even apear...Ah well, I'm FF user and most of the visitors use FF as well, so nevermind, IM VERY HAPPY AS IT IS...Thanks, thanks & Million Thanks!!  :P
You're welcome. :)

I think there's an issue with your theme, then. The scrollbars show up in IE for my map page.
Logged

rubenix

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 43
    • Rubrenix Gallery
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #208 on: December 15, 2007, 07:22:13 pm »

OK, I will look into it; Any way Im quite happy how it looks now; also I don't even care that much about not showing the scrollbars while browsing with IE... I have always encouraged people to switch to FF as have lots of capabilities and most important thing: Its Free!!

Thank you again!!
Logged

xav31

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #209 on: December 28, 2007, 02:14:33 am »

Hello ,

 I want to replace the photograph (in displayimage.php) by google map.
I have a lot search but, I don't succeed in finding.

Can you help me?

sorry for my bad english!

[Edit GauGau] Replaced hotlinked image with attachment [/Edit]

Xavier
http://www.quipollue.com
« Last Edit: December 28, 2007, 10:44:50 am by GauGau »
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 #210 on: December 28, 2007, 02:34:14 am »

Sorry, Xavier. It seems like an interesting idea but I don't have the time to put into it. Perhaps someone who is good with knowing where things are in displayimage.php could easily point you to where you need to look to put the map where you want.
Logged

xav31

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #211 on: December 28, 2007, 12:28:38 pm »

Ok TranzNDance  ;)

no problems; Happy New Year !

Xavier  :)
Logged

xav31

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #212 on: December 28, 2007, 12:37:52 pm »

Logged

paquets

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #213 on: December 28, 2007, 04:25:25 pm »

Hello TranzNDance,

Thank you for this Mod. Very cool.

Maybe I missed it in this thread but here it is anyway: is there a way to link the maps generated by this MOD, to the same location on Google Maps? That is if a viewer wants to explore the area of the map a bit more afterwards.

Thank you!

Paquets
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 #214 on: December 28, 2007, 04:51:37 pm »

It would be possible. This mod generates a permalink that works within the map you installed. You would just need to create a version of the permalink (or edit the existing permalink) url to point to google maps instead of your own.
Logged

paquets

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #215 on: December 28, 2007, 05:01:26 pm »

It would be possible. This mod generates a permalink that works within the map you installed. You would just need to create a version of the permalink (or edit the existing permalink) url to point to google maps instead of your own.

Thank you TranzNDance.

I will try that.
Logged

Felixb

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #216 on: February 18, 2008, 09:44:23 pm »

Maybe it has already been told, but i couldnt find it (i've used the search button)  ;)

But, i've followed all the steps mentioned in this topic, to get the 'Goolge Earth' map, but the map wont show up  :-\

http://www.labrador-web.nl/gmap.php

I can fill all i want, but i see he want to connect to maps.google.com ... and then stops! (i have a correct api-key), so on this moment i'am clueless (all the steps went just fine, but NO map!) .. So maybe one off you're folks has an idea !?  8)

Thanks already!  ;D
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 #217 on: February 19, 2008, 12:10:40 am »

It might be how you're entering the lat/long data. The javascript error console directed my attention to an issue with an illegal character in this line:

   gmap.setCenter(new GLatLng(52�12'58.73"N,5�57'52.64"E), 1, G_SATELLITE_MAP);

The illegal one is the one that showed up as '?', at least on my system. Convert the values to decimal values. For example, this is how it would look like from my own map:
           gmap.setCenter(new GLatLng(37.70120736474139,-118.67431640625), 6, G_HYBRID_MAP);
Logged

Felixb

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #218 on: February 19, 2008, 12:15:52 am »

So, what is the correct notation for: 52°12'58.73"N, 5°57'52.64"E

I get this info directly from the google earth progam  ???
Logged

Felixb

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Google Map in Coppermine Gallery, version 2 (of mod and api)
« Reply #219 on: February 19, 2008, 12:32:33 am »

Oke .. i've found the trick ;)

It's not 100% right now, but atleast, i get a google earth map on my screen!  ;D
Logged
Pages: 1 ... 7 8 9 10 [11] 12 13 14 15   Go Up
 

Page created in 0.042 seconds with 19 queries.