• Resolved mccrodp

    (@mccrodp)


    Hi,

    Does anyone know the equivalent of the [private][/private] shortcode as a template function or tag? I need to use this function at template level to hide certain features on my site.

    E.g. – Hiding the “Register” button on an event page as only Members can register, that sort of thing…

    I’d greatly appreciate this, I’ve bought the plugin, but if this doesn’t exist……I shouldn’t have bought it/ I’m in trouble ??

    Thanks All,
    ~mccrodp

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Based on your description, I believe that you are referring to a plugin other than WP-Members, which is what this was tagged.

    The functionality you are looking for should be available to you without a plugin at all using the WordPress function is_user_logged_in. Using this, you can determine if a user is logged in, and if so, show them the register button, etc. You can use this at the template level as well.

    Thread Starter mccrodp

    (@mccrodp)

    You’re right, sorry, I should have explained in greater detail. I’m using the members plugin in combination with an event plugin. Only members can register for events etc.

    The function you mention is a great work around for me if I go down the route of only allowing current “members” to login. I can then hide specific parts of the event reg process using your method in a template as an alternative to the private shortcodes https://smartmediapro.com/client-area/knowledgebase/6/Hiding-content.html

    The good folk at SmartMediaPro also said I can use WP-Member to process the event registrations if the event plugin (Event Espresso) uses the standard WordPress register process. Not sure if it does though yet, will have to see.

    Cheers again for your help cbutlerjr, much appreciated,
    ~mccrodp

    Plugin Author Chad Butler

    (@cbutlerjr)

    Not a problem – hope it works out for you.

    As a point of clarification, my initial point was not that your question was unclear. It was that the plugin that you tagged this to (WP-Members) is not the plugin you are using. When you use the wp-members tag, it attaches your support query to WP-Members found at https://www.ads-software.com/extend/plugins/wp-members, which is why I saw this post.

    I am aware of SmartMediaPro’s plugin, but you will not find that plugin on this site because they are not GPL. I have nothing against them offering a commercial product, but I do have a problem with them trying to hijack the name of an already existing plugin.

    Thread Starter mccrodp

    (@mccrodp)

    Sh*t, sorry about that, I had no idea they did that and I’m more annoyed I didn’t realize the difference and find yours first.

    I was really stuck for a membership plugin and it was the first (and hopefully one of the last) time I went premium after seeing the name WP-Member crop up in places.

    As an supporter of open source I would certainly have at least tried your one first. They even charge for support after purchase, so I was trying to keep them sweet while pushing my luck on a few issues! ??

    Feel free to remove this thread and my apologies again. Hopefully I’ll get to try your plugin soon.

    Thanks,
    ~mccrodp

    Plugin Author Chad Butler

    (@cbutlerjr)

    Hey, no problem – especially because you didn’t know.

    Like I said, my problem isn’t with commercial vendors. And since they are commercial, they usually are more feature rich. My post was more for the “airing of grievances” and to raise awareness for those that may read this later since, as a free and open source project, my marketing budget is $0.

    cheers!

    I would avoid commercial plugins such as smartmediapro’s membership plugin that employ source encryption. You can’t make the changes you need, even to the simplest template files. I would instead use cbutlerjr’s WP-Members and hook him up with a donation. cbutlerjr is a regular contributor the the WordPress community, which is a great thing to see.

    Plugin Author Chad Butler

    (@cbutlerjr)

    Thanks for the props! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-Members] Hiding Member Only Content at Template Level’ is closed to new replies.