mdjnelson / moodle-mod_customcert

Enables the creation of dynamically generated certificates with complete customisation via the web browser.
https://moodle.org/plugins/mod_customcert
GNU General Public License v3.0
93 stars 159 forks source link

Expiry Dates #499

Closed i-am-sheep closed 1 month ago

i-am-sheep commented 2 years ago

Hi Mark

I love this plug in, thank you so much for it. We've been using it for years.

I'm wondering if you are planning to add the expiry date feature that the new Workplace Certificates (which I know are based on your code) have?

Cheers

IntrovertHedgehog commented 2 years ago

Hi. I am not Mark but I have created this function. I will make a pull request in several day after the testing.

Personally it is working just fine. If you need an installable .zip I can send it to you

i-am-sheep commented 2 years ago

oh wow, that is great news, thank you

IntrovertHedgehog commented 2 years ago

This is the zip file. It's not very conventional but workable. I will notify you when production-grade version is ready. You also need to put $string['expriedon'] = 'Expired on'; to lang/en/moodle.php and clear the cache for language string to update. I'll figure this hassle out in future version. customcert.zip

i-am-sheep commented 2 years ago

That's great, thank you very much, I'll give it a try

BLKLearning commented 1 year ago

@IntrovertHedgehog Is it possible to use your modification but have it set the expiry date for 2 years from the date of course completion for example?

mdjnelson commented 6 months ago

Closing as a duplicate of https://github.com/mdjnelson/moodle-mod_customcert/issues/195.

mdjnelson commented 6 months ago

Also expiry dates were added in https://github.com/mdjnelson/moodle-mod_customcert/pull/389 but it's very limited.

mdjnelson commented 6 months ago

Reopening. I have decided to close #195 as there was a PR associated with it which I have used. This issue can be used to improve the current behaviour.

mdjnelson commented 6 months ago

Is the consensus here just to add a date picker (like the workplace plugin) so a user can specify an exact date? We already have expiry dates for 1 - 5 years and am wondering how that should change.

mdjnelson commented 6 months ago

Ping @i-am-sheep.

i-am-sheep commented 6 months ago

I'm happy with just 1-5 years but it would be great if you could add it to the verification page

leonstr commented 2 months ago

Added PR #633 with a proposed implementation of this.

mdjnelson commented 1 month ago

Code is up now on GitHub. I'll be releasing it on the plugins DB shortly.

animaux commented 5 days ago

Dear @mdjnelson, are the expiry dates really limited to a range of 1–5 years? We would need half a year for us to use this on a semester basis. Is it possible to use this?

Apparently we are using an older version without expiration date support. As a normal user it looks like I’m not able to check the version number.

mdjnelson commented 4 days ago

Could you please create a new issue to introduce this? Right now it is only yearly.