This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 12 - Pages: 1 - Last Post: 25-Feb-2019 16:27 Last Post By: BJWH
BJWH

Posts: 57
Registered: 16-Nov-2012
Display the Kommetar widget only in the folder
Posted: 24-Feb-2019 20:12
 
  Click to reply to this thread Reply
Hello everybody,

I would like to restrict the commenting function through the comment widget. The possibility to write a comment should only be seen in the folder view (you can see the overview of the photos in the folder). The individual photos themselves should not be able to be commented on.

greeting
Yannick
jGromit

Posts: 7,492
Registered: 31-Jan-2006
Re: Display the Kommetar widget only in the folder
Posted: 24-Feb-2019 21:19   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
In a skin like Minimal, which produces individual slide pages, you could hack the skin - turn off the automatic widget injection, then call the widgets explicitly in index.htt, but not in slide.htt.

But in a lightbox skin like Tiger, when you're viewing the individual images, you're not leaving the page of thumbnails - it's still there, hidden by the image viewer. The widget code has already been called - it's a bit late to unring that bell.
BJWH

Posts: 57
Registered: 16-Nov-2012
Re: Display the Kommetar widget only in the folder
Posted: 24-Feb-2019 21:23   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
Unfortunately, I have the Tiger Skin. Is there no solution for that?
jGromit

Posts: 7,492
Registered: 31-Jan-2006
Re: Display the Kommetar widget only in the folder
Posted: 24-Feb-2019 21:29   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
The skin would have to somehow turn the widgets off when you click on a thumbnail, and turn them back on when you close the image viewer. Maybe Laza could figure out how to do that. It's certainly not something a user could even begin to tackle.
BJWH

Posts: 57
Registered: 16-Nov-2012
Re: Display the Kommetar widget only in the folder
Posted: 24-Feb-2019 21:38   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
@ jGromit, thank you once.
@ Laza, do you have any solution for me?
jGromit

Posts: 7,492
Registered: 31-Jan-2006
Re: Display the Kommetar widget only in the folder
Posted: 24-Feb-2019 22:14   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
I'll move this to the Tiger forum section - Laza probably doesn't check the jAlbum widgets section very often.
Laza

Posts: 2,276
Registered: 6-Sep-2005
Re: Display the Kommetar widget only in the folder
Posted: 25-Feb-2019 14:55   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
Adding this CSS code to "Settings / Tiger / Site / Custom code / CSS" will probably work:
.lightbox { z-index: 400000; }
jGromit

Posts: 7,492
Registered: 31-Jan-2006
Re: Display the Kommetar widget only in the folder
Posted: 25-Feb-2019 15:18   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
A quick test tells me that it's working.

The sneaky sledgehammer. I like it. ;)
BJWH

Posts: 57
Registered: 16-Nov-2012
Re: Display the Kommetar widget only in the folder
Posted: 25-Feb-2019 15:48   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
Thanks, the code works ...
Now the following problems:
  • you can comment on the top level of the gallery / folder, but it should only be able to comment on the folder that contains photos and not more subfolders
  • In the folder with photos, the widget bar is only displayed with the "+" symbol

http://bahnfotografie-jwh.de/Auftrag%20DB%20Regio%20Nord%2C%2008.12.18/index.html

Edited by: BJWH on 25-Feb-2019 15:49
jGromit

Posts: 7,492
Registered: 31-Jan-2006
Re: Display the Kommetar widget only in the folder
Posted: 25-Feb-2019 16:03   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
If the user minimizes the widget bar, it's replaced by just a "+" on the right, and the album remembers that choice for a while. The skin is not controlling that. When I visit your link for the first time, the full widget bar is visible, unless I minimize it.

Don't understand what you mean about "folders that contain photos and not more subfolders." A folder is a folder is a folder. The widget code doesn't know the difference between "top level" and "subfolder." They're all just index.html pages, whether they contain photos, subfolders, or some combination.
BJWH

Posts: 57
Registered: 16-Nov-2012
Re: Display the Kommetar widget only in the folder
Posted: 25-Feb-2019 16:13   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
ok, that with minimizing I understood so far.

but a pity that you can not hide the widget bar on the "main page" of the gallery. The visitors should only be able to comment on the folder with photos and no folders above it.
jGromit

Posts: 7,492
Registered: 31-Jan-2006
Re: Display the Kommetar widget only in the folder
Posted: 25-Feb-2019 16:19   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
Again, the widget code doesn't know or care what's on the page. That page might have folders, might have photos, or might have folders and photos. It has no way to figure that out, especially since every skin codes the index pages differently. There's no "marker" that can be used to determine what kind of page it is.
BJWH

Posts: 57
Registered: 16-Nov-2012
Re: Display the Kommetar widget only in the folder
Posted: 25-Feb-2019 16:27   in response to: BJWH in response to: BJWH
 
  Click to reply to this thread Reply
ok, thanks for the help anyway
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums