-
Author
-
September 11, 2013 at 12:45 #2637
jaybini
Participanti 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 youSeptember 12, 2013 at 11:49 #2692SQadmin
KeymasterHi, 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 solutionSeptember 15, 2013 at 20:35 #2846jaybini
ParticipantI copied the code into functions.php but nothing happened but what should i do next ?
September 16, 2013 at 12:33 #2892SQadmin
KeymasterIf 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);
..etcHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 17, 2013 at 06:20 #2940jaybini
Participantyea I got it thank u , but from where can i find the forum id ?
September 17, 2013 at 14:18 #2968SQadmin
KeymasterYou 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 -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

