1. Forum
    1. Themen Übersicht
  2. Hilfe
  3. Forenregeln
  4. Mitglieder
    1. Team
    2. Mitgliedersuche
  5. Webseite
  6. Archiv
  • Anmelden
  • Registrieren
  • Suche

Neuigkeiten

Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche

Neuigkeiten

Letzte Beiträge
  1. JoomGallery 3.x JUX für Joomla! 3
  2. Alle Beiträge zur JoomGallery 3.x JUX
  3. Frontend - JG 3.x

Viewing an image incorrectly marks the prior and next images as viewed

  • dan40
  • 24. Juni 2022 18:06
  • Erledigt
1. offizieller Beitrag
  • dan40
    Benutzer
    Reaktionen
    1
    • 24. Juni 2022 18:06
    • #1

    When I view one image, as long as there is an image before it and after it, Joomgallery marks all three images as viewed.

    You can see what I mean if you select any image from any of my galleries at https://disney.dansmith.ca. Go to the Album view and select any page, then click on an image and then click on the detail view. The image will open in a Slimbox window. Then go back to the page view and look at the number of hits (views) below each image. Each image will show it had '1' view, even though I only viewed the middle image, therefore causing inaccurate viewing statistics.

    This has been an ongoing problem with many prior versions and I believe is a bug that I'm hoping can be fixed in subsequent versions.

    Is anyone aware of this? I posted on this very issue a few years ago and I don't think got a definitive response on if/when it was going to be fixed, or even acknowledgement that it was an issue.


    I love Joomgallery... I've got several websites going with a lot of images! Many thanks for your consideration!

    • Zitieren
  • dan40 24. Juni 2022 19:59

    Hat den Titel des Themas von „Viewing an image marks the prior and next images as viewed“ zu „Viewing an image incorrectly marks the prior and next images as viewed“ geändert.
  • Elfangor93
    Moderator
    Reaktionen
    191
    • 24. Juni 2022 22:10
    • Offizieller Beitrag
    • #2

    JoomGallery is counting up a view every time a detail view is requested even if it is not shown in full screen.

    Are you using template overrides?

    Wir sind auf der Suche nach Helfern für die JoomGallery 4 Entwicklung!
    Melde dich bei Interesse bei mir (Elfangor93).
    (Verfügbare Jobs: PHP-Entwicklung, Testen, Übersetzen, Dokumentation)

    • Nächster offizieller Beitrag
    • Zitieren
  • dan40
    Benutzer
    Reaktionen
    1
    • 24. Juni 2022 22:13
    • #3

    Hi there, thanks for the quick reply. I am not using any overrides, except for changing the word "Hits" to "Views". It's a brand new Joomla/JoomGallery install (yesterday).

    • Zitieren
  • Elfangor93
    Moderator
    Reaktionen
    191
    • 25. Juni 2022 13:55
    • Offizieller Beitrag
    • #4

    Ok, I looked into that. The problem is the following:

    Everytime an image which is not the thumbnail image is requested from the frontend using the view=image and format=raw the views are counted up.

    As you can see in the network log of the browser, the slimbox is requesting the image plus the previous and the next image. That is why all three images get a new view even if only one image is really viewed by the user.

    The code line responsible for that is the following:
    https://github.com/JoomGalleryfri…ew.raw.php#L192

    I dont really see a possibility to change that behavior. From my point of view slimbox is doing wrong by requesting the other two images. My proposition is to use another Popup-Plugin which does not do that misbehavior.

    Wir sind auf der Suche nach Helfern für die JoomGallery 4 Entwicklung!
    Melde dich bei Interesse bei mir (Elfangor93).
    (Verfügbare Jobs: PHP-Entwicklung, Testen, Übersetzen, Dokumentation)

    • Vorheriger offizieller Beitrag
    • Nächster offizieller Beitrag
    • Zitieren
  • dan40
    Benutzer
    Reaktionen
    1
    • 25. Juni 2022 19:40
    • #5

    Thanks for that, I've just installed and enabled Fancybox and Shadowbox and went to view an image, and both of these plugins exhibit the same behaviour. Can the code in Joomgallery be adjusted so that it doesn't do this? I only viewed the centre image.


    The attached example shows what's happening with Shadowbox.

    EDIT: Highslide JS, DHTML Container, JavaScript Window and Thickbox 3 do not do this. Lightbox 2, Shadowbox, Slimbox and Prettyphoto do. Fancybox, when I click on an image, marks that image, the next one and the third images as viewed.

    Einmal editiert, zuletzt von dan40 (25. Juni 2022 19:58)

    • Zitieren
  • Elfangor93
    Moderator
    Reaktionen
    191
    • 26. Juni 2022 15:56
    • Offizieller Beitrag
    • #6
    Zitat von dan40

    Can the code in Joomgallery be adjusted so that it doesn't do this?

    As said, the code of the popup plugin needs to be changed such that only this image is really loaded by the javascript. The code of the JoomGallery component behaves correctly in my opinion.

    Wir sind auf der Suche nach Helfern für die JoomGallery 4 Entwicklung!
    Melde dich bei Interesse bei mir (Elfangor93).
    (Verfügbare Jobs: PHP-Entwicklung, Testen, Übersetzen, Dokumentation)

    • Vorheriger offizieller Beitrag
    • Nächster offizieller Beitrag
    • Zitieren
  • dan40
    Benutzer
    Reaktionen
    1
    • 26. Juni 2022 19:49
    • #7

    Thanks very much for your timely responses. Much appreciated. I'll just use Highslide JS for my image pop-up handler going forward, until a new version of the others is released.

    • Zitieren
  • Elfangor93
    Moderator
    Reaktionen
    191
    • 26. Juni 2022 21:35
    • Offizieller Beitrag
    • #8

    I will keep that in mind.

    Maybe we can improve this for JoomGallery 4 which is currently under development...

    Wir sind auf der Suche nach Helfern für die JoomGallery 4 Entwicklung!
    Melde dich bei Interesse bei mir (Elfangor93).
    (Verfügbare Jobs: PHP-Entwicklung, Testen, Übersetzen, Dokumentation)

    • Vorheriger offizieller Beitrag
    • Zitieren
  • daren78
    Neumitglied
    • 11. Juli 2022 11:54
    • #9

    interesting information

    • Zitieren

Letzte Beiträge

  • Is there a way to hide the "Description:" text for Category view?

    GJSchaller 11. Juli 2025 00:48
  • JoomGallery 4.1.0 - Fehler nach dem Update

    reni 9. Juli 2025 21:32
  • URLs nach Update auf JoomGallery4 und SH404SEF /4SEF

    Bjoern 9. Juli 2025 18:14
  • JoomGallery für Joomla 4

    soenke 9. Juli 2025 18:11
  • Can you change the parent category of a category?

    GJSchaller 8. Juli 2025 00:32
  • Looking to replicate JG3 Gallery / Category View under JG4

    GJSchaller 1. Juli 2025 20:01
  • What can you do with Tags?

    FriendlyUser 30. Juni 2025 22:40
  • JG3 Bilder als Artikelbild verlinkt - Welche Migrationseinstellung erhält die Dateipfade?

    MrMusic 30. Juni 2025 10:21
  • JoomGallery for Joomla 4

    MrMusic 26. Juni 2025 13:53
  • Bearbeiten von Bildern nicht möglich

    kaufi88 26. Juni 2025 11:11
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™