• Hello, is it possible to create a tier that doesn’t hide content, but instead, hides ads for paid members? If a member has a paid subscription and is logged in, they won’t see any ads for any ad network?

    In this instance, the ad network is actually adsense.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support dimplemodi

    (@dimplemodi)

    Hello,

    Yes, if the ads you are referring to you can add them as content or shortcode in the page/post then, ARMember does provide a facility to add a Restrict Content shortcode which will display based on the member having a membership plan, not having a membership plan, logged in a member state or non logged in member state accordingly to your requirements.

    For example: If you want to hide content for the membership plan member then, you can add the Restrict Content shortcode as given below:

    [arm_restrict_content plan=”1,3,” type=”hide”]

       Ads Content – Hide Only To member Having Assigned Plan With Plan ID 1 or 3

    [armelse]

       Content 2 – Show If User Don’t Have Assigned Plan With Plan ID 1 or 3

    [/arm_restrict_content]

    Please check accordingly and let me know how it goes.

    Thanks

    Thread Starter erisf

    (@erisf)

    Would you mind elaborating on that, tutorial wise? Thank you for your answer.

    Plugin Support dimplemodi

    (@dimplemodi)

    Hello,

    Okay. Let me explain differently.

    As you are referring to the hide Ads for premium members so, if the Ads you are adding as shortcode or if you are adding Ads from the theme template file with plain content then you need to wrap the Ad with the ARMember Restrict Content Shortcode, and then further it restriction will work as set at the ARMember.

    Kindly refer to the below example:

    [arm_restrict_content plan=”{PLAN ID}” type=”hide”]
    ?? ad_shortcode or HTML content
    [armelse]
    ?? Add the content if the member does not have that plan.
    [arm_restrict_content]

    Kindly replace the (ad_shortcode) with the shortcode/HTML Content you have set for displaying the Ads.?
    Also replace the {PLAN ID}, with the ID you have for the plan you can get it from the ARMember Lite -> Manage Plans page.
    If you want to execute code from the code file then, you need to execute using the WordPress function “do_shortcode”.

    I hope this will help, let me know if there is anything else.

    Thanks

    dimplemodi I found this while searching.. can you update your example to show how a <div> tag would be outputted to the browser?

    Likely my confusion is more related to generally not understanding short codes ha. When I user the proper ARmemeber restricted block in a post and add the text below, the div text is displayed in the browser and not as an html element

    [arm_restrict_content plan=”{PLAN ID}” type=”hide”]
          <div id="should not be seen in browser"></div>
    [armelse]
    [arm_restrict_content]
    • This reply was modified 6 months, 3 weeks ago by skyzlmt.

    Disregard my prior message (as you have been doing). I realized it works with the standard WP shortcode widget but not with the ARmember supplied widget

    Thread Starter erisf

    (@erisf)

    Okay, I genuinely don’t understand what you’re saying very well and all of this is gibberish, to me.

    Would you mind giving me a proper step by step tutorial? I use Google Adsense for ads, and the ads are everywhere on the website, not just in articles (actually there are usually none on blog posts themselves, but there are all around that, in sidebars, footer, etc).

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.