• Resolved helpmypw

    (@helpmypw)


    Guten Tag
    
    Ich habe NexGen Gallery und GEO2 Map for NexGen Gallery insalliert
    Es funktioniert soweit.
    Nur bei der Karte Zeigt es mir nicht an, wo das Bild entstanden ist.
    Als Shortcode habe ich [geo2 map=aerial geo2 exif=1 / 0 ] verwendet. Setze ich noch ID=2, kommt eine Fehlermeldung "JSON Antwort". Entferne ich ID=2, funktioniert die Karte wieder.
    
    Mein ZIEL ist folgendes:
    Ich habe Links eine Gallery mit Bilder, viele haben GEO Info, welche auf der Karte angezeigt werden soll.
    Also Pro Seite gibt es eine Gallery und rechts die entsprechende Karte der Bilder.
    
    Wie muss ich den Shortcode schreiben, dass es funktioniert.
    
    Danke fürs Feedback
    Yves
    ==
    Hi
    
    I installed NexGen Gallery and GEO2 Map for NexGen Gallery
    It works so far.
    Only on the map Doesn't tell me where the picture was taken.
    As a shortcode I used [geo2 map=aerial geo2 exif=1 / 0 ]. If I also set ID=2, an error message "JSON response" appears. If I remove ID=2, the card works again.
    
    My GOAL is this:
    I have links to a gallery with pictures, many have GEO info to be displayed on the map.
    So per page there is a gallery and on the right the corresponding map of the pictures.
    
    How do I have to write the shortcode to make it work.
    
    Thank you for your feedback
    Yves

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter helpmypw

    (@helpmypw)

    Hi
    I would be really happy if I could get some feedback on my question above, which I would like to put the homepage online at the end of the month.

    Plugin Author pablo2

    (@pablo2)

    Hi.

    I’m sorry I missed your message. Firstly shortcode geo2 is needed only once inside the brackets. You also don’t need to indicate map parameters unless you want to have a different look for this specific map. What is needed is a gallery id or a picture id number (pid). Use small letters only, so id not ID.

    Your shortcode would look like this [ geo2 id=2 map=aerial exif=1]

    Thread Starter helpmypw

    (@helpmypw)

    It’s a shame you didn’t get an answer to the question.

    Thread Starter helpmypw

    (@helpmypw)

    Yesterday’s answer can be initialized.
    It didn’t show me the latest message on my smartphone.

    Whether I e.g. I have GPS data on the picture “flower”, nothing is shown on the map where it is.

    If you want I can give you a test login so you can see the site in the background.

    Plugin Author pablo2

    (@pablo2)

    Hi, Sure I can check it for you.

    Try also a code like this: [geo2 pid=15] Just replace 15 with your image id number. You can find in any NextGen gallery. First column.

    The code should be replaced with a map with just this one photo.

    You can also check if there are any warnings in the browser console. For this press F12 when the web page is open or before loading it and switch to the console panel. You may see also warnings related to other things.

    Thread Starter helpmypw

    (@helpmypw)

    It doesn’t matter whether I write the ShortCode ” [geo2 pid=61] ” or set the GEO2 for NextGen Gallery options to Automatically insert plan.
    It doesn’t tell me where the picture was taken from.

    Thread Starter helpmypw

    (@helpmypw)

    I have created a test login for you, so you can also look at it in the admin area.
    Admin: https://test.str66.ch/wp/wp-admin
    User: testforum
    Password: Test20Forum23

    Plugin Author pablo2

    (@pablo2)

    Hi, Thank you for this. I made an attempt to find a problem. I located a missing code which is for some reason not generated by your server. Likely the GPS information can not be acquired from a photo and returns nothing. Images are fine. I uploaded one of my images to your WP site and it didn’t work as well. I tried to recreate your setting including the Theme and plugins on my website but nothing affected it. The Exif PHP module is installed on your server. I’m sorry but currently, I don’t know how to repair this. I’m working on an update to the plugin and I can include some code that maybe could give me a clue if the issue is where I think it is, although I don’t currently think this is caused by a faulty code in my plugin. It may take me a couple of weeks to issue this update. Meanwhile, I will think about how I can find a reason for this not working on your site. Kind regards.

    Thread Starter helpmypw

    (@helpmypw)

    Thanks for watching and your feedback
    Here on the link https://test.str66.ch/iphp.php is the current PHP config of my server.
    It’s a shame that the plugin doesn’t work.
    It would be great if the plugin worked. I would really like to put my gallery online soon.

    Plugin Author pablo2

    (@pablo2)

    Hi,

    I’m like 90% sure that I found a reason why your photos were not shown. The global variable to the server I used in your case probably is not returning the full path because your WP is installed in a subfolder.

    The solution is to replace all occurrences of $_SERVER['DOCUMENT_ROOT'] with ABSPATH in a file functions.php located in my plugin directory: wp-content\plugins\nextgen-gallery-geo

    I will do it when I will finish my updates but you can also do it manually. This way we could know for sure sooner.

    I think you can now remove User: testforum or change the password.

    Thread Starter helpmypw

    (@helpmypw)

    Thanks for the reply
    I tried it like this:
    before now
    $_SERVER[‘DOCUMENT_ROOT’] $_SERVER[‘ABSPATH’]
    $_SERVER[‘DOCUMENT_ROOT’] $_ABSPATH
    $_SERVER[‘DOCUMENT_ROOT’] ABSPATH()

    The first time the homepage is displayed, but still the same as before the change.
    For the other two the homepage no longer loads and it says undefined variable/function.
    How should I write this correctly, i.e. replace it.

    Plugin Author pablo2

    (@pablo2)

    You tried like everything except what I exactly wrote. Replace?$_SERVER['DOCUMENT_ROOT']?with?ABSPATH.

    ABSPATH is a constant and does not need to have $ in front and anything else.

    Thread Starter helpmypw

    (@helpmypw)

    https://test.str66.ch/wp/juhu/

    Now it works that it shows on the map.
    Thanks in advance.

    Just a small question.
    Currently all images are displayed on the map, which is good, but a bit too big. Can this be adjusted so that it is slightly smaller?
    How can you set if the image is displayed LARGE, ONLY the image is displayed on the map and not all of them as in the overview.

    Thread Starter helpmypw

    (@helpmypw)

    I found out how to reduce the size of the images on the map.
    Looks good already.

    What would be great is that if you click on the position of the image in the gallery overview at the bottom of the map, the large image appears.
    As well as when the large IMAGE is open on the map ONLY shows this position of the image and not all the others

    Plugin Author pablo2

    (@pablo2)

    I’m not sure I understand correctly, but in the Plus version on which I’m still working I added a mini-map with a photo location shown when an image is presented by the Fancybox. I think during Christmas I will have time to finish it completely.

    I spent a lot of time recently removing all warnings from the plugin and I hope it will work better.

    I’m also planning to add one improvement to the free versions – the same organisation of photos which is selected in the NextGEN gallery.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Geo2 Map mit NexGen Gallery verbinden’ is closed to new replies.