Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every x days #12

Open
theukedge opened this issue Sep 2, 2015 · 2 comments
Open

Every x days #12

theukedge opened this issue Sep 2, 2015 · 2 comments
Assignees
Labels

Comments

@theukedge
Copy link
Owner

Submitted by email by Gabor Galantai:

I just found your shortcodes and it's almost exactly what I need. i was wondering if you'd care to add a little feature to it though.
would it be possible to have a recurrence based on a number of days what i set up, and not only weekly or monthly?
the idea is this: i am going to display a song of the day post. I have songs from 4 albums now and i will add others later. i can make a list of posts and set which would appear and hide on which day, but the recurrence would depend on the number of songs - currently 42. so I would need to repeat the cycle after every 42 days - and after every 52 days after the next album.
would it be possible?
it would also be a super freaking awesome neat feature if i could select a group of contents and display one of them randomly within a certain period - so we could easily make a post of the day, image of the week, etc. kind of thing. if you feel like it... :)

@theukedge theukedge self-assigned this Sep 2, 2015
@theukedge theukedge added this to the 2.4 milestone Sep 2, 2015
@theukedge
Copy link
Owner Author

The first part of this I might consider building, but it needs some thought to think about how it can be implemented. The second part (random items) isn't really in line with the purpose of the plugin, so I probably won't build it, but I'm not completely discounting it at this point.

@ghost
Copy link

ghost commented Sep 2, 2015

Thanks Dave, I appreciate it.
The way I see it, I would be comfortable using this new feature in this way:
[time-restrict-repeat type="interval" repeatday="42" lengthday="1" repeatstart="10-08-2015" display="show"]
In this case we'd specify that the type of repetition is based on intervals, and then repeat the display of the content for 1 day, every 42 days, starting with 10.08. I'm not native English so I assume you can come up with better names for these than I did :)
Additional parameters could be:

  • repeattime - if the repetition could be more precisely expressed with hours and minutes
  • lengthtime - if the amount of time the content remains displayed or hidden can be more precisely expressed with hours and minutes
  • repeatend - if we want that the repetition stops at a certain date.
  • display="show" or "hide", declaring whether I want to show this content in the specified time or hide it. If it is set to show, then in the remaining time the content would be hidden by default, and if it is set to hide, then the opposite.
    Well... This is how I see it, anyway. I thought it might help, give you some ideas maybe.

As for the randomizing, a lot of people I encountered would take good use of a properly created post of the day plugin (at least that's what they say anyway). Even though it wouldn't be the scope of this plugin, it might be a good idea to build one properly. It would make my job easier than the way I'd do it with your current plugin. I'd even give a few bucks for it and I'll be happy to help with my actual requirements. :)
Keep up the great work! Bests.

@theukedge theukedge removed this from the 2.4 milestone May 23, 2016
@theukedge theukedge added idea and removed feature labels May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant