Skip to:
Content
Pages
Categories
Search
Top
Bottom

Only Register to forum ?

  • @kaminoda

    Participant

    Hi everyone 🙂

    I have a question about the registration to my website’s forum : i’m currently setting the forum and the registration form. I asked a friend of mine to register to see if it works but it didn’t go as intended and i have two (little) problems :

    The first one is that when they register they register to the wordpress website and can access to the toolbar on the top of the screen (as seen on this screenshot http://image.noelshack.com/fichiers/2014/32/1407314693-capture-d-ecran-2014-08-06-a-10-42-52.png). The problem is that i just want them to be able to post on the forum : even if there is not much informations in the toolbar since they are not admin, i’d just like them to just be able to post on the forum (and not have access to the dashboard of wordpress or anything else). I don’t know if what i’m asking is very clear ?

    The second thing is that i’d like to set up a forum for the beta of my game : i understood that the “hidden” attribute on a forum hide it from the “participant” level user. The problem is that when i set a user to “keymaster” in order to make him able to see the hidden forum, he has also access to some new features like “create a new forum” (via the toolbar on the top of the screen) and i don’t want them to be able to do that. Is it possible to set a custom user’s “category” (like “beta user”) so they’ll only be able to access to the “hidden” forum, create topic, and post ?

    I may not be very clear here so i hope you’ll be able to help me 🙂
    Thank you

Viewing 12 replies - 1 through 12 (of 12 total)
  • @robin-w

    Moderator

    First one :

    add this code to your functions file

    //disable toolbar for non-admins
    if (!current_user_can('manage_options')) {
    show_admin_bar(false);
    }

    see

    Functions files and child themes – explained !

    Second one

    use my plugin

    https://wordpress.org/plugins/bbp-private-groups/

    This will let you set exactly who can see forums

    @kaminoda

    Participant

    Thank you 🙂

    @supremor

    Participant

    Where in the functions file do we add the code?

    @robin-w

    Moderator

    see

    Functions files and child themes – explained !

    but basically at the end.

    @supremor

    Participant

    so basically i have to create a child theme first.

    @robin-w

    Moderator

    ideally you should, and this will ensure you don’t lose changes.

    If you just put this isn’t the main theme, it will be overwritten by any theme updates, so if you decide to go this route and not create a child theme, keep a note of any changes as you’ll need to add them back after any updates

    @supremor

    Participant

    If I choose to add it to the main theme, should I ignore the ‘do not edit’ message located in the functions file?

    @robin-w

    Moderator

    yes, the warning is there for the upgrade reason, and as long as you change it knowing that it might disappear on upgrade, then you can change it.

    @supremor

    Participant

    One last thing, do I add the code via the editor or FTP?

    And is there a tutorial on how to add a child theme?

    @robin-w

    Moderator

    One last thing, do I add the code via the editor or FTP?

    Either is fine, I’d tend to do it via FTP and keep ols and new versions of the function file on your PC

    And is there a tutorial on how to add a child theme?

    This is a wordpress feature

    Just google ‘wordpress creating a child theme’ or ‘wordpress creating a child theme video’ depending on whether you prefer seeing or reading

    How to Create a WordPress Child Theme

    looks a reasonable explanation

    @supremor

    Participant

    Thanks for your help. Created the child theme and the code works great. No more dashboard. 🙂

    @robin-w

    Moderator

    Great – glad you are fixed !

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