Blocking Events unless a listing has been purchased

This topic contains 3 replies, has 3 voices, and was last updated by  Anthony Tolman 5 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #433820

    Anthony Tolman
    Expired Member
    Post count: 7

    Hi there,

    I would like to block events from being added unless a live place listing has been bought and is active.

    Before I go in and start editing (and maybe breaking it) what would be your recommended approach to this? and if you have none can you point in the right direction of what files to edit.

    Many thanks!

    Anthony

    PS – great plugin BTW! 🙂

    #433839

    Kor
    Moderator
    Post count: 16516

    Hi Anthony,

    Do you mean you want to restrict users from creating an event if they did not have a listing? If I’m misunderstanding this, kindly elaborate a little bit more.

    Thanks!

    #433899

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    GeoDirectory doesn’t have any specific features for that, besides allowing you to restrict whether a certain GD post type can be added from the front end or not.

    These options are at GD – Design – Navigation

    For page restriction you will need a membership plugin like S2 Members. We don’t recommend any particular plugin.

    If you are looking for help with setup, you can find a GD Expert here: https://geodirectoryexperts.com

    A normal WordPress query could be used to find out if a user has already created a post of a particular type.

    Example: https://wordpress.stackexchange.com/questions/95630/get-count-of-custom-post-type-created-by-current-user

    Editing of the core plugin files is not recommended, but you can see this link for some best practices for overriding templates: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    It seems like, from what you have described, that this might be an alteration to the add-listing template. This is a complex page and we won’t be able to help with the customization as we do not do customizations here in the forum.

    https://wpgeodirectory.com/support-policy/

    It is possible to create an add listing form for a particular post type using the shortcode, and then it may be possible to restrict access to that with a membership plugin or custom code based on custom coded criteria.

    https://wpgeodirectory.com/docs/core-shortcodes/#add-listing

    #434446

    Anthony Tolman
    Expired Member
    Post count: 7

    OK thanks for all the links and info! I need to get this done quickly so will just put my own code in to do it! I suspected it might be a use case not covered by the core plugin.

    Many thanks for the response 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket