Dave Clements
Forum Replies Created
-
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] One page, specific content per day[time-restrict-repeat type="weekly" onday="Monday" offday="Monday"] Monday's content [/time-restrict-repeat]
Wash. Rinse. Repeat.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Date value from Other shortcodeI’m afraid that I’m unable to provide development services for free. If you wish to hire me to make this change, I would be happy to do that.
Thanks
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Date value from Other shortcodeOut of the box, it is not possible to do this. However, you could expand upon the plugin by grabbing the query var (using get_query_var()) before the shortcode is parsed and passing the query var to the shortcode for use as one of the attributes.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Time parameters not workingOh for sure. It’s not entirely clear what your intended schedule is, but, to have three different messages in a single day, you could do something like this:
[time-restrict-repeat type=”weekly” onday=”Monday” offday=”Monday” ontime=”00:01:01″ offtime=”09:59:59″] <h3>The Library is currently CLOSED. We’ll open today at 10am.</h3> [/time-restrict-repeat] [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Monday” ontime=”10:00:00″ offtime=”20:59:59″] <h3>The Library is open now until 9pm today.</h3> [/time-restrict-repeat] [time-restrict-repeat type=”weekly” onday=”Monday” offday=”Monday” ontime=”21:00:00″ offtime=”23:59:59″] <h3>The Library is currently CLOSED. We’ll reopen tomorrow at 10am.</h3> [/time-restrict-repeat]
That will show all the messages for a Monday. You can repeat that process for different days if the times differ. Or, if the same times apply to several consecutive days, you can “nest” the shortcodes. There’s some examples of this on the main plugin page.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Problem with nested shortcodesA couple of issues:
- There is no support for time-restrict-repeat-4, 5 or 6 shortcodes. The plugin only supports up to three.
- You don’t really want to nest the shortcodes. Each of these are independent from one another. That is, the fact that the form needs to display in January is separate from the rules for the form displaying in March. The remedy is to create separate shortcodes for each:
[time-restrict-repeat type="annually" onmonth="January" ondate="10" offmonth="January" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."][caldera_form id="CF591eb3cced9b9"][/time-restrict-repeat][time-restrict-repeat type="annually" onmonth="March" ondate="10" offmonth="March" offdate="26" else="Lebensmittel k?nnen zur Zeit nicht bestellt werden."][caldera_form id="CF591eb3cced9b9"][/time-restrict-repeat]
etc.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Time parameters not workingThe start date for each is a Monday, meaning that on Mondays, all 3 messages will show. In fact, all three messages will show until the third message turns off on Thursday at midnight.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Time parameters not workingPlease post the shortcodes you are using to try and display the content.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Help with nesting shortcodes?It should be in the form:
[time-restrict on="2017/05/21 17:00:00" off="2017/05/24 17:00:00"]We will be open on May 24[/time-restrict][time-restrict off="2017/05/21 17:00:00"]We will be open on May 21 & 24[/time-restrict]
These are two separate conditions and you can’t nest these shortcodes inside one another, so you need a shortcode for each condition.
- This reply was modified 7 years, 9 months ago by Dave Clements. Reason: add'l line break
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] shortcode isn’t working as expectedIt seems that your date format is incorrect. Try YYYY-MM-DD instead of YYYY-DD-MM ??
Forum: Plugins
In reply to: [WP Offload SES Lite] Do you have plan that php7.0 support?Hi Sylvain,
I actually made the switch to PHP 7 last week after a colleague of mine checked the plugin and confirmed that the function containing the deprecated ereg() function was not called anywhere in the plugin. I can confirm that my transition to PHP 7 has been successful, including WP SES.
Thanks so much!
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Sidebar ProblemIt looks like you probably need to enable shortcodes to be used in your widgets.
Forum: Plugins
In reply to: [WP Offload SES Lite] Do you have plan that php7.0 support?Hi Sylvain,
First of all, thanks for such a fantastic plugin. Secondly, any update on when PHP7 compatibility might come? I get several warnings, which aren’t critical, but there’s two errors regarding
ereg()
.Results of my PHP 7 Compatibility Scan:
FILE: /wp-content/plugins/wp-ses/ses.class.0.8.4.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 370 | WARNING | Method name "SimpleEmailService::__triggerError" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 563 | WARNING | Method name "SimpleEmailServiceRequest::__responseWriteCallback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 577 | WARNING | Method name "SimpleEmailServiceRequest::__customUrlEncode" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 588 | WARNING | Method name "SimpleEmailServiceRequest::__getSignature" is discouraged; PHP has reserved all method names with a double underscore prefix for future use ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /wp-content/plugins/wp-ses/ses.class.0.8.6.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 484 | WARNING | Method name "SimpleEmailService::__triggerError" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 663 | WARNING | Method name "SimpleEmailServiceRequest::__responseWriteCallback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 677 | WARNING | Method name "SimpleEmailServiceRequest::__customUrlEncode" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 688 | WARNING | Method name "SimpleEmailServiceRequest::__getSignature" is discouraged; PHP has reserved all method names with a double underscore prefix for future use ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /wp-content/plugins/wp-ses/lib.inc.php ----------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------- 9 | ERROR | Function ereg() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_match instead 9 | ERROR | Extension 'ereg' is deprecated since PHP 5.3 and removed since PHP 7.0 - use pcre instead. ----------------------------------------------------------------------------------------------------------- FILE: /wp-content/plugins/wp-ses/ses.class.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 350 | WARNING | Method name "SimpleEmailService::__triggerError" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 532 | WARNING | Method name "SimpleEmailServiceRequest::__responseWriteCallback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 546 | WARNING | Method name "SimpleEmailServiceRequest::__customUrlEncode" is discouraged; PHP has reserved all method names with a double underscore prefix for future use 557 | WARNING | Method name "SimpleEmailServiceRequest::__getSignature" is discouraged; PHP has reserved all method names with a double underscore prefix for future use -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Doesn’t always workHi John,
I’m sorry that this has been your experience. Given that the logic just does what it’s told, my guess is that your experience is the result of a caching plugin or something similar that is causing the site to not accurately reflect what you’re telling it to at all times. Do you use a caching plugin?
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Moveable feastsHaha, breaking your own rules! I like it!
As you say, this is something that can currently be achieved with the plugin as it is, so I’m not intending to put any effort into incorporating this unless people step in and indicate that it’s something they really want (this is your chance to speak up). More than anything, having an extra attribute would likely complicate matters rather than adding additional value to the plugin, but I appreciate your suggestion (and acknowledgement that it is a free plugin, maintained by a developer with limited time ?? )
Cheers!
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Love it!Thanks man. I really appreciate the kind words ??