Creating Opt-In Forums on vBulletin

Discussion in 'vBulletin Discussions' started by Dan Hutter, Aug 9, 2012.

  1. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York
    From time to time you may want to create a forum that not all members want to be part of; so you make it opt-in this way those that want to see and participate can opt-in. The members that don't want to see the forum won't have to do anything. For instance, we do this with a politics discussion board on my forum.

    Create a new user group based off either registered users or your promoted users group. Make it publicly joinable by setting "Public (Joinable) Custom Usergroups" to Yes.

    Next create the forum and set all permissions to No for all member usergroups except mods, super mods, admins, and the user group you just created.

    Now your members can join the forum right from their User CP under "Permission Groups". Upon joining a user will be assigned to the secondary group.
     
    Brandon and cpvr like this.
  2. Cerberus

    Cerberus Admin Talk Staff

    Joined:
    May 3, 2009
    Messages:
    1,031
    Likes Received:
    500
    Not a bad idea..You can also add a new field in the User Cp and then allow them to select if they want to see the forum.. I have done it that way in the past just using if statements with Yes and No as the options in the new User Cp Field... But either way same thing nice tip :) ..
     
    Dan Hutter and Brandon like this.
  3. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York
    I never thought of that. How does that work? Do you add a conditional on the forumhome template? I haven't mucked with profile fields in along time. I like using built in tools because they're usually upgrade proof.
     
  4. Cerberus

    Cerberus Admin Talk Staff

    Joined:
    May 3, 2009
    Messages:
    1,031
    Likes Received:
    500
    Yeah its just a simple on off switch ..

    You make a custom profile field with 2 choices Yes and No for a certin forum. Then use an if statement to hide the forum.. I am on my Ipad so I dont know the code off hand but I am sure you can find it vb.org

    http://www.vbulletin.org/forum/showpost.php?p=633283&postcount=2

    Similar to that post but VB4 code.. I know the if statements are a lil different now..
     
  5. Dan Hutter

    Dan Hutter aka Big Dan

    Joined:
    Jul 20, 2006
    Messages:
    1,412
    Likes Received:
    515
    Location:
    New York
    Ahh. I like the idea but don't want to be bothered with redoing templates when upgrade time comes.
     
  6. Cerberus

    Cerberus Admin Talk Staff

    Joined:
    May 3, 2009
    Messages:
    1,031
    Likes Received:
    500
    You would only have to do one template if having to do it at all... And its only a line of code for each if statment. The Custom Profile Fields is built in.. I added a link to my post

    http://www.vbulletin.org/forum/showpost.php?p=633283&postcount=2

    Similar to that but I would set defualt to no if its an opt in...
     

Share This Page