Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhotoSwipe only working for Webmaster #356

Closed
FredFabLab opened this issue Mar 12, 2023 · 6 comments
Closed

PhotoSwipe only working for Webmaster #356

FredFabLab opened this issue Mar 12, 2023 · 6 comments

Comments

@FredFabLab
Copy link

I have the following problem: I'd like to open PhotoSwipe's lightbox by default when clicking on a picture's thumbnail. I've found the corresponding setting under Configuration > Themes > Boorstrop Darkroom > Configuration > Settings > Appearance > Thumbnail page display > Link thumbnail to PhotoSwipe Slideshow.
It works perfectly fine when I'm logged in as the webmaster. But for other users (User or Generic), the Picture details page opens, the full-screen button is also not working.
Is there a requirement to enable PhotoSwipe for all users? I didn't find an option for that… Or do you have any other ideas?

Tested on:

  • Firefox 110.0.1 and Safari 16.3 on macOS Ventura 13.2.1
  • Piwigo 13.6.0
  • Bootstrap Darkroom 2.5.17
  • PHP: 8.0.25
@FredFabLab FredFabLab changed the title PhotoSwipe only working for admin PhotoSwipe only working for Webmaster Mar 12, 2023
@ClaudiaLev
Copy link

Sounds like the same problem:
#353

@FredFabLab
Copy link
Author

Also thought so, but @MondyNor mentioned it's solved in 2.5.17 while I still have the problem within this version.

@MondyNor
Copy link

MondyNor commented Mar 14, 2023

Sounds like the same problem: #353

No, the problem i had was to show pictures full screen, as i understand his post he has problem with getting the slideshow to work. Anyway maybe it can be related to a plugin so here are a list of all the plugins i have installed and which ones i have active https://gyazo.com/33e30cf5a577a8947801709c3a321f7e

And my configuration for the theme https://gyazo.com/86262b729a530abd6ff2ba48de8ceff5

@FredFabLab
Copy link
Author

FredFabLab commented Mar 15, 2023

Oh, I'm very sorry! I created my Piwigo installation some time ago and totally forgot about plugins (which I normally first try to deactivate…). I had the plugin “rightClick” installed and activated. When I deactivate this plugin, it works perfectly.
Thank you, @ClaudiaLev and @MondyNor!

PS: I know that disabling the right click is in no way fully protecting images from being stolen, but this is a private photo share and I just wanted to prevent some people from downloading them. Now, I implemented the same feature with an additionalHead element, some JavaScript (which again is easy to bypass):

<script>
document.addEventListener("contextmenu", function(e){
    if (e.target.nodeName === "IMG") {
        e.preventDefault();
    }
}, false);
</script>

@MondyNor
Copy link

You could also use the watermark option for that, which i do :) Good to her you solved it

@DeWir3
Copy link

DeWir3 commented Sep 4, 2023

Thanks for the script! I managed to disable the right-click menu with that using the Personal Plugin option as described here https://github.com/Piwigo/piwigo-bootstrap-darkroom/wiki/Add-custom-CSS-and-Javascript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants