Events Made Easy › Forums › Bug fixed or feature request implemented › Current date
Tagged: #_CURDATE
- This topic has 5 replies, 2 voices, and was last updated 2 years, 4 months ago by Anonymous.
-
AuthorPosts
-
Mon 4 Jul 2022 at 18:36 #64414AnonymousInactive
Dear Franky,
I have the impression that in version 2.2.88 the use of #_CURDATE or #_CURDATE{} or #_CURDATE{Y-m-d} or another allowed expression between {} breaks the output. Also when used in conditions using #ESC_CURDATE.
However this one works fine:
[eme_if3 tag="#ESC_STARTDATE{}" ge="#ESC_CURDATE{}"]<br>Aanmelden/afmelden klik op[/eme_if3] #_LINKEDNAME<br> and so on and so on …This one does not give good response
[eme_if3 tag="#ESC_STARTDATE" ge="#ESC_CURDATE"]<br>Aanmelden/afmelden klik op[/eme_if3] #_LINKEDNAME<br> and so on and so on …
The output gives “4 juli 2022” in stead of “Aanmelden/afmelden klik op …. ” and all the other stuff thereafter is missing.The same bad response for
[eme_if3 tag="#ESC_STARTDATE{Y-m-d}" ge="#ESC_CURDATE{Y-m-d}"]<br>Aanmelden/afmelden klik op[/eme_if3] #_LINKEDNAME<br> and so on and so on …
The outout gives “Y-m-d2022-07-04 18:18:06” in stead of “Aanmelden/afmelden klik op …. ” and all the other stuff thereafter is missing.#_CURDATE gives output 4 juli 2022
#_CURDATE{} gives output 4 juli 2022
#_CURDATE{l d F Y} gives output 4 juli 2022. To my opinion this must be (in Dutch) maandag 04 juli 2022. I use this f.i. in a dated pdf file.My question is: Do I use #_CURDATE in a wrong way, or has something changed in version 2.2.88 which was not meant by you.
I hope you can give some information about this.
Ard Hartsuijker
Mon 4 Jul 2022 at 18:46 #64415AnonymousInactiveSorry:
#_CURDATE gives output “4 juli 2022”
#_CURDATE{} gives output “#_CURDATE{}”
#_CURDATE{l d F Y} gives output “l d 4 juli 2022”. To my opinion this must be (in Dutch) maandag 04 juli 2022. I use this f.i. in a dated pdf file.Mon 4 Jul 2022 at 18:51 #64416FrankyKeymasterIndeed, this should fix it (one-liner):
https://plugins.trac.wordpress.org/changeset/2751759/Tue 5 Jul 2022 at 11:32 #64417AnonymousInactiveDear Franky,
I might have found that oneliner myself. However it does not solve the problem with #_CURDATE.
In https://www.e-dynamics.be/wordpress/event-formatting/ you write “If you want to show the current date or time in your event or form or mail: #_CURDATE and #_CURTIME (give you the current date//time based on your wordpress date/time preferences).” That’s correct, but the ouput is broken behind the #_CURDATE placeholder. And with broken I mean there is no output visible on the screen or in the generated pdf file.
I hope the problem is still another oneliner, but I have no idea where to look in the plugin code.
Ard Hartsuijker
Tue 5 Jul 2022 at 14:06 #64418FrankyKeymasterI confirm that it wasn’t fixed, this should do it (I overwrote a $format variable which it obviously shouldn’t do):
https://plugins.trac.wordpress.org/changeset/2752086/Tue 5 Jul 2022 at 15:00 #64419AnonymousInactiveDear Franky
I had the impression it was about this variable because that one is used for more replacements. But you know your plugin code better than I do.
So I’m glad you found the right solution.
The bug I noticed, now seems to be solved by you 🙂
Thanks for your very quick and good respons *****
This ticket can be closed.
Ard HartsuijkerPS When you are in the Netherlands you should contact us and visit the Dwingeloo Radio Telescope.
In the summer holidays we have regular openings https://www.camras.nl/bezoekersinfo/bestel-tickets/ -
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.