Pro Sites Plugin: Advertisement Module Not Showing In Free Level

I am using TwentyThirteen theme ,
pay to blog works but show/hide advertising is not working, the ads are not being displayed on free
http://screencast.com/t/ChenuQAijJ
http://screencast.com/t/OlEtP3lxy3QJ

  • Ash
    • WordPress Hacker

    Hello there

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    Is it home page or single page? Advertise won't show if it is an archive home page, it will be shown only in single page.

    Please let me know.

    Cheers
    Ash

  • asjax
    • WPMU DEV Initiate

    yes it is a home page set to use a page. thanks for the clarification, is there no way to have it shown in the home page. We basically want to use it to display a powered by domain.com in the footer or after page content when a user is a free level
    or is there any function we could use to detect the level e.g.
    If level =>2 hide div footer

  • Ash
    • WordPress Hacker

    I am afraid that it won't work in home page. For your requirement you can do one thing. Add this code in a file in your mu-plugins folder.

    add_action('wp_footer', 'footer_text');
    function footer_text() {
    echo "YOUR TEXT HERE";
    }

    But I am not sure if it looks good.

    Cheers
    Ash

  • Ash
    • WordPress Hacker

    Ahh sorry - I missed that. Use this code instead:

    add_action('wp_footer', 'footer_text');
    function footer_text() {
    if(is_user_on_level(2))
    echo "YOUR TEXT HERE";
    }
    }

    Change "2" with your free level id. Then the text should show only for free level.

    Please let me know if it is helpful and feel free to ask more question if you have.

    Cheers
    Ash

  • Ash
    • WordPress Hacker

    You should have a mu-plugins folder in your /wp-content/ folder. If you don't have, don't worry - just create one.

    So, create a folder under wp-content folder with name 'mu-plugins' and create a file inside that folder with any name but with .php extension and paste my above code there.

    Please let me know if it is helpful and feel free to ask more question if you have.

    Cheers
    Ash

  • Ash
    • WordPress Hacker

    Ahh I am really sorry for mixing. I had mixed up with membership, may be I needed more coffee :slight_smile:

    And yes, you are right. Did you try this?

    add_action('wp_footer', 'footer_text');
    function footer_text() {
        if(!is_pro_user(get_current_user_id()))
            echo "YOUR TEXT HERE";
    }

    Please let me know if it is helpful and feel free to ask any more question if you have.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.