• Resolved jscooper

    (@jscooper)


    Hi,

    On the page used to edit an existing event (accessed via the #_EDITEVENTLINK), there is only an “Update Event” button and no Delete Event” button, even though my users have delete_events and delete_recurring_events checked). How do my users delete an existing event?

    Thanks,

    Jeff

    https://ww.wp.xz.cn/plugins/events-manager/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry but can I know where is this? is this under admin-dashboard or using frontend management pages?

    Thread Starter jscooper

    (@jscooper)

    Front end. I have a page defined as the “Edit Events Page” so people can edit their events. Whatever page is rendered there has the Event Form (name, when, where, description, categories, etc) and at the bottom is a large “Update Event” button. I’m not sure if deleting an event should happen there or elsewhere, but in either case I could not find any documentation on what page or shortcode or function should help me show the users a “Delete Event” button.

    Thanks,

    Which version of Events Manager are you using?

    Thread Starter jscooper

    (@jscooper)

    5.6.4.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    did you already enable delete_events under Events > Settings > General > User Capabilities ?

    Thread Starter jscooper

    (@jscooper)

    Yes, delete_events is enabled.

    Some more info, if helpful: I did customize the code that list users’ events on the Formatting tab.

    <tr>
    <td>
    #_EVENTDATES
    #_EVENTTIMES
    </td>
    <td>
    #_EVENTLINK
    {has_location}
    <i>#_LOCATIONNAME</i>{/has_location}

    #_EDITEVENTLINK
    </td>
    </tr>

    The #_EVENTLINK and the #_EDITEVENTLINK work fine. Should there be some sort of #delete_event placeholder here? The actual edit page is whatever is rendered by the plugin on the page specified in Pages > Other Pages > Edit Events Page, so I see no way to specify what’s included on it.

    Thanks,

    Jeff

    Thread Starter jscooper

    (@jscooper)

    Hi Again,

    I think I may see where I may be confusing things. It seems that whatever code is generated for the page specified under other pages->Edit events page does not follow the formatting as specified in the formatting tab (that I modified as above). After editing a page, the user is presented with a list of events, but it’s formatted differently (five columns, the 2nd having a small + for duplicating the event, the last being blank). I don’t like this look and would like users to, rather than be presented with this page, simply get a “success” message like when they submit a new event. I would like the users to use the event editing form, and tried to do this manually using the event_form shortcake with an event= criteria, but it didn’t work (example: [event_form event=123]). I was generating the shortcode with php so I could grab the eventID from the url querystring of the page and had the link to it replace the #_EDITEVENTLINK placeholder.

    Example: Edit Event

    I would then have this code on the page where I have the edit form:

    <?php
    $eventID = $_GET[‘e’];
    echo do_shortcode(‘[event_form event=’.$eventID.’]’);
    ?>

    Again, I may be way overcomplicating things, but in short I want the event lists to be formatted as specified in the Formatting tab, EVERYWHERE, but still be able to use the built-in event editing form to edit events. And somehow add a delete button somewhere.

    Thanks,

    Jeff

    Thread Starter jscooper

    (@jscooper)

    OK, I think I went down a rabbit hole. I ended up uninstalling/reinstalling it and it seems to be working ok now. I will probably just tweak the php for generating the events list (the one with the + and extra column) to clean it up later, but the functionality is there. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Delete button/link on Front-end’ is closed to new replies.