Dave Clements
Forum Replies Created
-
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Multiple times in a day?Thanks @printpunkuk. That’s what I would have suggested and that should work.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] question about variablesYou know, I’m not entirely sure. You’d have to give it a go, but I think it could be done. You’d have to use
do_shortcode()
and concatenate the string with your variable, but I think it should work.Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Is the plugin still supported?Development is still going on in the background. It’s just that the plugin is quite simple and so, short of adding new features, it just keeps on working.
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Brilliant!Sadly, shortcodes cannot be added to an attribute (like the else clause) within a shortcode because the regex that finds and processes shortcodes would get disrupted by that behaviour. This is explained in a bit more detail here.
However, you can easily reverse your conditions to provide a message during the times that the stock market is closed. So in your case, you create another shortcode that turns on at 4pm and off at 9.30am in the “outer loop” and then off on Saturday and Sunday on the inner loop. That covers weekday nights. Then you just need a weekend shortcode, so it would be a single weekly repeating shortcode that turns on at 9.30am Saturday and turns off at 9.30am Monday. I hope that makes sense. You can follow the same general logic that I explain in this support thread.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Message for weekly hoursHi there,
The easier way to do this is to do a new shortcode every time the store opens or closes. Using the
else
attribute will cause it to appear every time a shortcode hides the content, so it will appear multiple times. This should so what you’re trying to achieve:`[time-restrict-repeat type=”weekly” onday=”Monday” offday=”Friday”]
[time-restrict-repeat-2 type=”daily” ontime=”08:00:00 offtime=”18:00:00″]
We are open. This will turn on every weekday from 8-6.
[/time-restrict-repeat-2]
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Monday” offday=”Saturday”]
[time-restrict-repeat-2 type=”daily” ontime=”18:00:00 offtime=”08:00:00″]
We are closed. This will appear the evening of every weekday at 6, until 8 the following morning (incl. Friday night to Sat morning)
[/time-restrict-repeat-2]
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Saturday” offday=”Saturday” ontime=”08:00:00 offtime=”16:00:00″]
We are open. This will appear on Saturday from 8-4.
[/time-restrict-repeat][time-restrict-repeat type=”weekly” onday=”Saturday” offday=”Monday” ontime=”16:00:00 offtime=”08:00:00″]
We are closed. This will appear from 4 on Saturday until 8AM on Monday.
[/time-restrict-repeat]I’m afraid I don’t know. It’s especially baffling since it did work, but is no longer. My gut instinct based on what I’m seeing is that the Formidable View plugin isn’t processing shortcodes inside its own shortcodes, but I don’t know I’m afraid.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Do First Saturday of Each Month?You were on the right lines with what you were trying. This pair of shortcodes will do what you’re trying to achieve:
[time-restrict-repeat type="monthly" ondate="01" offdate="07"] [time-restrict-repeat-2 type="weekly" onday="Saturday" offday="Saturday"] This will only show on the first Saturday of the month [/time-restrict-repeat-2] [/time-restrict-repeat]
Forum: Reviews
In reply to: [Show/Hide Content at Set Time] Brilliant!Hi there,
Thanks so much for the positive and encouraging review.
Thanks for adding this clarification for others who might have made the incorrect assumption about the on and off attributes. I’m not sure what you don’t think is possible about when you nest shortcodes, but I don’t see why it couldn’t be the way you said it could. An example would help.
Thanks, and have a great day
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Issue with shortcode workingNot a problem Bob. Thanks for circling back.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Issue with shortcode workingHi,
I suspect it’s more an issue of caching. When you test it out, do you do a “hard refresh” when you reload the page? The logic is based on when the page is loaded and when the page was updated has no bearing on it.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] help with else statementIn order to add the “closed” message at all other times, add a shortcode in between each pair of shortcodes above that cover the times when you’re closed. For example, on the first one, you would do this:
[time-restrict-repeat type="weekly" onday="Monday" ontime="14:00:00" offday="Wednesday" offtime="11:30:00"]We’re closed[/time-restrict-repeat]
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Using with Divi templateYes, you can use this to hide as much of a page as you want, assuming that it is built with shortcodes, which I believe that it is.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] Issue with timeYour shortcodes don’t cover all time periods. Were you perhaps trying to look at the content after 16:30? Also, your logic isn’t quite correct. For example, the ontime for the second shortcode should be 12:00:01, not 12:01:00 (this will mean that nothing shows up between 12:00:01 and 12:00:59). Also make sure that you are using true quotes, not curly quotes.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] OfftimeThat is correct. The logic only applies when the page is loaded, so if the page gets loaded before the offtime, it will continue to be visible after the offtime, unless the page gets reloaded.
Forum: Plugins
In reply to: [Show/Hide Content at Set Time] How can I show content after 6 minutes.Showing/hiding content based upon when a user views a page is not possible with this plugin. This plugin shows/hides content based on absolute time.
Thanks