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

Share expiration duration option #3

Open
petitssuisses opened this issue Oct 28, 2017 · 8 comments
Open

Share expiration duration option #3

petitssuisses opened this issue Oct 28, 2017 · 8 comments
Assignees

Comments

@petitssuisses
Copy link
Owner

Option to share an album for n days instead of forever

@toddgee
Copy link

toddgee commented Sep 14, 2018

How about in addition to an expiration time option, an access count expiration.
Define a property 'accessCount' attached to the link (I'm a dev, but don't know piwigo at all)
if accessCount = -1,the feature is disabled
if accessCount > 0, access is enabled. Every time link is used, acessCount is decremented.
if accessCount = 0, access is disabled (maybe disables the user when this count reaches zero)
what do you think?

@toddgee
Copy link

toddgee commented Sep 14, 2018

oh, didn't realize this was closed. Should I suggest this as a new enhancement?

@petitssuisses
Copy link
Owner Author

petitssuisses commented Dec 29, 2018

Hi @toddgee, the Fatal error issue #22 is closed, but not this one. It is logged as an enhancement. Thanks for the suggestion ? Does it correspond to a use case you have ? Could you describe it (what would you use it for ?) Thanks

@toddgee
Copy link

toddgee commented Dec 29, 2018

This was an enhancement suggestion.

From the README, the mod allows:
Implemented #15 Add number of visits and last visit using the shared link enhancement

I was thinking that an individual share could allow a max allowed number of visits. (If set to 0, the default, this behavior would be disabled.) Every time the link was accessed, a check could be made: if (visit count = max allowed number of visits). If 'true', the private gallery would not be shown.

This would allow sharing a gallery a specific number of times, rather than only for a specific amount of time.

Does that make sense?

Thx

When the visit counter

@petitssuisses
Copy link
Owner Author

Hi, sorry I never replied to your comment.
No, I do not think it's a viable option to count per number of accesses (it would imply much additional complexities such as : shall you count 2 access from the same IP only 1 ? Quid of people behing a public IP ? ... etc.
So I think we should stick to the duration option only

@petitssuisses
Copy link
Owner Author

expiration date in progress, will be released soon

@toddgee
Copy link

toddgee commented Dec 25, 2020

Hi, sorry I never replied to your comment.
No, I do not think it's a viable option to count per number of accesses (it would imply much
additional complexities such as : shall you count 2 access from the same IP only 1 ?
Quid of people behing a public IP ? ... etc.
So I think we should stick to the duration option only

I would expect that any usage count would be an absolute number of accesses to the home page.
I would like to be able to distribute a link that was only good once. The recipient could visit the link and then access the photos on it, but after that, the link to access that album couldn't be accessed again.

How about an expiration date that was relative to the first time of access? So, once the request was triggered, the link would only be good for X days? This could be instead of or in addition to a hard deadline.

thoughts?

@bfd69
Copy link

bfd69 commented Apr 30, 2021

any news on expiration date ? i'd love to have this function !, but the simple version when u just put a date (and time ?) and that's all, not the complicated one with numbers of days that activates after first connexion.

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

No branches or pull requests

3 participants