This topic has 5 replies, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #2637
     jaybini
    Participant

    i have to kind of memberships , free membership and premium one, how can i make premium members only access the forum I check in membership> advanced and didn’t find it anywhere . from where & how i can make it ?
    Thank you

    #2692
     SQadmin
    Keymaster

    Hi, There is no predefined setting to restrict the forums.
    There is a code you can see how to do that: http://www.paidmembershipspro.com/2012/01/lockdown-bbpress-wp-plugin-forums-using-paid-memberships-pro/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2846
     jaybini
    Participant

    I copied the code into functions.php but nothing happened but what should i do next ?

    #2892
     SQadmin
    Keymaster

    If you modified it to match your needs then you don’t have to do anything else.
    What I mean by modifying to suite your needs is this line:
    $restricted_forums[207] = array(1,2);

    You need to put instead of 207 your forum id, and instead of array(1,2) your levels ids that have access to that forum.
    Add more lines if you have more forums:
    $restricted_forums[207] = array(1,2);
    $restricted_forums[320] = array(2,3);
    ..etc

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #2940
     jaybini
    Participant

    yea I got it thank u , but from where can i find the forum id ?

    #2968
     SQadmin
    Keymaster

    You can see the forum id when editing it from the admin as a url component

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?