Home › Forums › Calendar Products › Community Events › Hide Recurring Events on Add Event page CONDITIONALLY?
- This topic has 6 replies, 2 voices, and was last updated 10 years, 7 months ago by
George.
-
AuthorPosts
-
September 10, 2015 at 2:54 pm #1003959
Mad Dog
ParticipantMy client thinks having Recurring Events will confuse most of his users when they add events and only one or two people will actually use it. So….it’s easy enough to hide it with CSS, but what I’d like to do is add, say, a checkbox “Recurring Event?” and if they check it, conditionally display the td (tr.recurrence-row.odd-row).
Do you have a jQuery snippet handy I can use for this?
THANKS
September 10, 2015 at 3:55 pm #1003983Mad Dog
ParticipantForget it. Unless you have a more built-in way, a little research and I figured it out using something like this test version:
<script> $(document).ready(function(){ $(".test").hide(); $("#recurring-test").click(function(){ $(".test").toggle(600); }); }); </script> <body> <label>Recurring Event? </label><input type="checkbox" id="recurring-test"> <br /><br /> <table> <tr class="test"><td>This is Recurring Event info.</td></tr> <tr><td>This is another small paragraph.</td></tr> </table> </body>September 10, 2015 at 4:31 pm #1004005Mad Dog
ParticipantThis plot thickens…..
I see there is (was!) a checkbox for Recurring Events that did exactly what I’m looking for. No wonder it felt so familiar. But it’s not functional now. It’s an unclickable square floating to the right (.tribe-event-recurrence .tribe-handle) with no actual input!
What I get is:
Recurrence Rules: [ONCE] A triangle that switches up and down with no label of function
[Add Another Rule]September 11, 2015 at 8:58 am #1004301George
ParticipantHey @Mad Dog,
Thank you for posting code that you’ve come up with so far – we unfortunately cannot help out with custom code projects like this, but to answer your question if there’s a more “built-in” way to do what you’re trying to do, there is unfortunately not at this time 🙁
Cheers,
GeorgeSeptember 11, 2015 at 9:03 am #1004305Mad Dog
ParticipantBefore the recent update, wasn’t there a “Recurring Event?” checkbox on the Add an Event page so it didn’t show that section unless you checked it? That’s what I remember….and it seems to be gone and always showing recurring event info which is what I’m trying to get around.
Or do I not remember how it was?
MD
P.S. This is what I see now by default…and don’t know what the arrow triangle on the right is. It does nothing though it does change up/down.
September 11, 2015 at 9:09 am #1004316Mad Dog
Participant[IMG]http://i61.tinypic.com/szzzir.png[/IMG]September 11, 2015 at 9:36 am #1004336George
ParticipantHey @Mad Dag,
There was indeed a different UI for the recurrence features in the past, which might suit your needs a bit more nicely – I would not recommend rolling back to old versions of the plugin just for this, but it is possible if you would like. You can access older versions for which your license was active for by heading to http://theeventscalendar.com/my-account/downloads
Just note that if you downgrade Events Calendar Pro to, say, version 3.10, then you should downgrade The Events Calendar to 3.10 too, or any version where the first two digits match the first two digits of Events Calendar Pro. e.g. you could run Events Calendar Pro 3.10.0 and The Events Calendar 3.10.2 together fine, but not Events Calendar Pro 3.10.0 and The Events Calendar 3.9.8
You can find older versions of The Events Calendar in the “Developer” tab at http://wordpress.org/plugins/the-events-calendar
If you do not have older versions of Events Calendar Pro before version 3.11, that means that you did not buy your license until version 3.11 was the “current” release, so you do not have access to older versions of the plugin before your license was activated.
We cannot offer more help with your customizations so I will close up this thread for now. Best of luck with your site!
— George
-
AuthorPosts
- The topic ‘Hide Recurring Events on Add Event page CONDITIONALLY?’ is closed to new replies.
