• Resolved samwise16

    (@samwise16)


    Hi there, firstly thanks for the great plugin.

    I am using it on a golf site for people to post up if they are free to play during the week.

    I need to make it either delete all existing posts every sunday or to only display posts from during the week.

    Can you suggest me a way to edit gwolle_gb-entry.php to make that possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcel Pol

    (@mpol)

    HI, I am not sure about a good way to do this with the current code.
    There is a filter for gwolle_gb_get_entries_sql in the file /functions/gb-get_entries.php but I have my doubts if this is feasible.
    I will get back on a good way for this.

    Thread Starter samwise16

    (@samwise16)

    Hi Marcel,

    Is there any way I could have a public ‘delete’ button beside each post that would just remove it from the database.

    It will be on a password protected page for members only.

    Could you suggest a command that would work on the frontend?

    Cheers, Sam

    Plugin Author Marcel Pol

    (@mpol)

    And you would want to have that delete button only available for the original author?
    It might be an idea, I will think about it.

    Plugin Author Marcel Pol

    (@mpol)

    Hi,
    I have looked into this.
    Adding a Delete button, like on the admin side, requires quite some code for it. It needs a setting on the settings-page, some code in the form, and an AJAX-handler, which will be easily more than 100 lines of code.
    I don’t think this is worth it if only one or a few users want this, and the usecase is quite different from a standard use of a guestbook. It looks more like event reservations or something like that.
    So I am saying no to this, sorry.

    It should be possible to add this yourself. You can use filters to add a link to each entry. Then have an AJAX handler do the heavy work in PHP.
    If you cannot do this yourself, it should be possible to hire someone to do this. If you need any more pointers, then I will gladly answer questions. I will not write the code however.

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

The topic ‘Show only this weeks posts’ is closed to new replies.