Hide Recurring Events on Add Event page CONDITIONALLY?

Home Forums Calendar Products Community Events Hide Recurring Events on Add Event page CONDITIONALLY?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1003959
    Mad Dog
    Participant

    My 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

    #1003983
    Mad Dog
    Participant

    Forget 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>
    
    
    • This reply was modified 10 years, 7 months ago by Mad Dog. Reason: Display code better
    • This reply was modified 10 years, 7 months ago by Mad Dog.
    #1004005
    Mad Dog
    Participant

    This 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]

    #1004301
    George
    Participant

    Hey @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,
    George

    #1004305
    Mad Dog
    Participant

    Before 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.

    • This reply was modified 10 years, 7 months ago by Mad Dog.
    • This reply was modified 10 years, 7 months ago by Mad Dog.
    • This reply was modified 10 years, 7 months ago by Mad Dog.
    #1004316
    Mad Dog
    Participant

    [IMG]http://i61.tinypic.com/szzzir.png[/IMG]

    #1004336
    George
    Participant

    Hey @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

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Hide Recurring Events on Add Event page CONDITIONALLY?’ is closed to new replies.