Restricting send enquiry form

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 7 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #382763

    Andrew Noakes
    Free User
    Post count: 30

    Hi,

    This may be a little beyond the scope of support, but would love some tips. I’m working on restricting access to the ‘send enquiry’ pop up form as per the guidance here: https://wpgeodirectory.com/making-popup-forms-require-login/

    I’m using S2member and I want to restrict users from using the form if they’re a level 0 (free) subscriber. I’ve successfully altered the advised PHP code a little to make this work, BUT I also want the form to become accessible to level 0 subscribers IF more than 7 days have passed since the listing was first created.

    After several hours of scouring the web and breaking my site with my limited understand of PHP, I wondered if someone here might have a suggestion for some code that would accomplish this?

    P.S. to make it work with S2member, I replaced “if(!get_current_user_id()){” with “if(current_user_is(“s2member_level0”)){“.

    Let me know if you have any thoughts!

    Cheers,

    Andrew

    #382881

    Paolo
    Site Admin
    Post count: 31211

    None of this is GeoDirectory related. The GeoDirectory portion of the function you need is covered. This is really beyond support and you should ask to s2member support to help out.

    Thanks

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount