moodle-mod_customcert icon indicating copy to clipboard operation
moodle-mod_customcert copied to clipboard

Expiry Dates

Open i-am-sheep opened this issue 3 years ago • 12 comments

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

i-am-sheep avatar May 24 '22 16:05 i-am-sheep

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

IntrovertHedgehog avatar May 30 '22 01:05 IntrovertHedgehog

oh wow, that is great news, thank you

i-am-sheep avatar May 30 '22 14:05 i-am-sheep

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

IntrovertHedgehog avatar May 31 '22 02:05 IntrovertHedgehog

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

i-am-sheep avatar May 31 '22 11:05 i-am-sheep

@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?

BLKLearning avatar May 03 '23 19:05 BLKLearning

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

mdjnelson avatar Mar 19 '24 18:03 mdjnelson

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

mdjnelson avatar Mar 19 '24 18:03 mdjnelson

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 avatar Mar 19 '24 21:03 mdjnelson

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 avatar Mar 21 '24 11:03 mdjnelson

Ping @i-am-sheep.

mdjnelson avatar Mar 21 '24 14:03 mdjnelson

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

i-am-sheep avatar Apr 03 '24 14:04 i-am-sheep

Added PR #633 with a proposed implementation of this.

leonstr avatar Jul 23 '24 16:07 leonstr

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

mdjnelson avatar Aug 26 '24 10:08 mdjnelson

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.

animaux avatar Sep 27 '24 13:09 animaux

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

mdjnelson avatar Sep 28 '24 15:09 mdjnelson