Events Made Easy › Forums › Bug fixed or feature request implemented › Change Month Filter
- This topic has 21 replies, 2 voices, and was last updated 10 years, 2 months ago by Franky.
-
AuthorPosts
-
Wed 1 Oct 2014 at 22:22 #52939AnonymousInactive
It would be helpful if the “months” filter could be set to filter the months independently of the years. I would prefer for the user to be able to select the month desired and then, in a separate dropdown, be able to select the year desired.
Why?
I have clients who are booking events with me several years into the future. If I set the scope_count to 60 (to accommodate 5 years into future), the months dropdown is quite long. It would be more user friendly to select the month and year separately.
*Crossing my fingers with this feature request. I hope that this wouldn’t require much work / changes on your end.*
Thanks for the amazing plugin, Franky! It has enabled me to do some very cool things with my situation. I hope to post some tips on the forums in the future!
Wed 1 Oct 2014 at 22:36 #52941AnonymousInactiveI’d also like to mention that this feature request is a key part of using your plugin in my situation.
If you choose to implement this, please let me know approximately how much time you spent working on it. I’d like to give you a donation for it.
Thanks! ๐
Wed 1 Oct 2014 at 23:02 #52946FrankyKeymasterCurrently the filter creates in fact a “scope”, so splitting it in 2 would no longer create a correct scope.
But haven’t you tried a bit of jquery? Hide the month filter, add 2 new fields (all via jquery) and calculate the scope “onchange” of one of the 2 fields and update the hidden field accordingly.Wed 1 Oct 2014 at 23:28 #52948AnonymousInactive*Gulp!* (My jQuery skills are non-existent…)
I knew the scope would be an issue…
*Thinking…* ๐
Wed 1 Oct 2014 at 23:35 #52949FrankyKeymasterYeah, I know. It’s not that easy … but for this to be implemented by me will take some time …
Thu 2 Oct 2014 at 04:49 #52950AnonymousInactiveThat is what I figured.
Can we work something out? I would like this to be done right and I am not too excited about the jQuery idea…
If a promised donation is not enough, please let me know exactly how much reimbursement you would expect. I would like to sponsor the feature and feel that is the way it should be.
Also, if your current schedule does not allow for any extra EME work, let me know if you could do this in the future.
Sun 5 Oct 2014 at 23:36 #52996FrankyKeymasterMaybe I could do something else here: how about 2 date-select fields? That would solve a lot of problems …
Mon 6 Oct 2014 at 03:30 #52998AnonymousInactiveSuch as a separate month selector and year selector?
That would be fabulous and exactly what I am looking for!
See this for a better idea.
Mon 6 Oct 2014 at 23:43 #53003FrankyKeymasterI was more thinking about 2 date-field selectors … see http://keith-wood.name/datepick.HTML (click on “Range”).
Tue 7 Oct 2014 at 04:56 #53004AnonymousInactiveAh, I get it now.
That looks great! I think it would work well.
Wed 15 Oct 2014 at 14:11 #53038AnonymousInactiveJust sent a small donation, but plan to donate more when you have time to add this feature. Give me a rough estimate of how long it takes you to add this and I’ll get you a donation that is fitting for you time spent.
Thanks for the great plugin!
Tue 21 Oct 2014 at 23:56 #53071FrankyKeymasterNot completely tested yet, but see this change:
http://plugins.trac.wordpress.org/changeset/1011763Wed 22 Oct 2014 at 04:16 #53072AnonymousInactiveLooks like it will need some more testing.
It just gave me a text input. When I clicked on the input, the datepicker would not appear.
I first tried it on a page that contained both an event calendar and an event listing. It did not work there so I tried it on a page with only an event list, but got the same results.
Used shortcode: [eme_filterform fields=monthrange]
My filter format in Settings is:
#_EVENTFUL_FILTER_CATS
#_EVENTFUL_FILTER_LOCS
#_EVENTFUL_FILTER_TOWNS
#_FILTER_WEEKS
#_FILTER_MONTHRANGE
#_FILTER_YEARSWed 22 Oct 2014 at 06:43 #53073FrankyKeymasterDid you create js/eme_filters.js too?
Wed 22 Oct 2014 at 07:46 #53074AnonymousInactiveYes, added each change in the trunk.
Wed 22 Oct 2014 at 08:37 #53075FrankyKeymasterHmm, it worked fine for me. I’ll check again.
Anything in the webserver log files? Or your brower console?Wed 22 Oct 2014 at 17:13 #53081FrankyKeymasterok, found it: replace in eme_filters.php the word “eme_localised_scoperange_filter” by “eme_localised_scope_filter”, then it will work ๐
Wed 22 Oct 2014 at 19:31 #53082AnonymousInactiveChanged โeme_localised_scoperange_filterโ to โeme_localised_scope_filterโ in eme_filters.php and it still is not working. Same as it was before…
Safari Console said:
Failed to load resource: the server responded with a status of 403 (Forbidden) http://danbrubaker.com/wp-content/plugins/events-made-easy/js/eme_filters.jsWed 22 Oct 2014 at 21:39 #53083FrankyKeymaster403 Forbidden: are the permissions on that file ok?
Thu 23 Oct 2014 at 12:41 #53089AnonymousInactiveThat’s what I thought to check, and the folder’s permissions looked fine (755). I just checked the “file” and that was the problem (600).
It’s working now. Very cool!
How long did you spend working on this one?
Thu 23 Oct 2014 at 13:48 #53090FrankyKeymasterI might change another thing in there, but I think it took me about 3 hours, taken over all the days I read and thought about it ๐
Thu 23 Oct 2014 at 19:26 #53093FrankyKeymasterSome additional changes:
http://plugins.trac.wordpress.org/changeset/1012945
http://plugins.trac.wordpress.org/changeset/1012946
http://plugins.trac.wordpress.org/changeset/1012981Add 1 hour ๐
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.