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

List existing URLs and their expiration date #48

Open
bpmartin20 opened this issue Nov 6, 2024 · 3 comments
Open

List existing URLs and their expiration date #48

bpmartin20 opened this issue Nov 6, 2024 · 3 comments

Comments

@bpmartin20
Copy link

I suspect I'm missing the obvious, but how do you query the expiration date/limit of an existing shortened URL in the web interface? I can prune it or drop it, but I don't see how to query it. I just want to verify that my code has set the expiration date correctly.

@SimonChiu930
Copy link

I suspect I'm missing the obvious, but how do you query the expiration date/limit of an existing shortened URL in the web interface? I can prune it or drop it, but I don't see how to query it. I just want to verify that my code has set the expiration date correctly.

After EXPIRY_DB_UPDATE is set to True, it seems that a new shortener link is required to take effect.

@bpmartin20
Copy link
Author

Thank you for the response. So what wasn't obvious to me was that if I had any URLS with expirations on them, they would appear in the Expiry page under:
Expiry URL List
You can add an Expiry condition to a link that is already in the database
Put another way, if that list is empty, it's not clear that it's an empty list. It just looks like a place to manually assign expirations to existing URLS, not a place to display existing ones.

I still wish that the plugin would add a column to the main admin page showing expirations (or blank if none). That would be intuitive, but also perhaps difficult to do. Failing that, changing the text on the Expiry page from "You can add an Expiry..." to "Existing expiration dates (if any) are shown below. You can add an Expiry...." would help.

Thanks for the response SimonChiu930, and thanks to joshp23 for the plug-in.

@SimonChiu930
Copy link

There is already an Expiry button in the Action, and the Expiry mode can be manually set.

If you want to use it for users in the frontend, you can change "sample-public-front-page.php.txt" to index.php or modify the page you are using yourself.

If Expiry has been set for Link, the admin interface will display Green color in the related Shorty URL Row.

image

I just started using Activate Expiry plugin yesterday and display it to users in index.php
image

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

2 participants