Skip to:
Content
Pages
Categories
Search
Top
Bottom

How restrict the create group for one user


  • anthorfacte2019
    Participant

    @anthorfacte2019

    Hi everybody 😀

    I am new, i am french, i live in ukraine, my website is not online for the moment, and.. i don’t know programmation… =/
    Just i know to put snippet, incorpore code, plugin, and my spciality it’s the CSS 😀 (hum .. but not complex 3D animation)

    I search since one hour without find, because all the converse have more than 4/9 years, one snippet for the file .function for just the admin and one role can create a group,
    +
    For if one member go on the link create group, is redirect on one page i did

    Somebody can help me and do this snipet please ?.. =/

    Sorry for my bad english !
    Have a good day
    Antorfacte

    Last version wordpress and budypress, php5, php7 in one week

Viewing 13 replies - 1 through 13 (of 13 total)

  • Venutius
    Moderator

    @venutius


    anthorfacte2019
    Participant

    @anthorfacte2019

    Hello Venutius, thanks for your answer, and fast 😀
    but i forgot to said i tested him XD

    1 – I didn’t understood how put roles o_O * *** (and normaly never problem, buti saw the case but didn’t understood) and

    2 – more important, he don’t do redirection =/)

    Thanks again for your help !
    (precision : it’s the first time i ask, normaly i found all the time snipet or plugin, i search a lot, but now.. found nothing =/ )


    Venutius
    Moderator

    @venutius

    I’m pretty sure we can get it to work for you. What you need to work out is a capability level that your chosen role has that the other roles to not, set that as the restriction in the form and save it.

    Which role do you wish to allow group creation for?


    anthorfacte2019
    Participant

    @anthorfacte2019

    Hum.. ok 😀

    Juste the admin and the members :
    https://nsa40.casimages.com/img/2019/02/20/190220081326395108.jpg

    Must use, can create a group
    And if one member normal come on the link, is redirect on one URL 😀

    Thanks a lot (i will come often if it’s fast the answers here lol ^_^)


    Venutius
    Moderator

    @venutius

    Ah good, you are using a user role editor, that should make this easy, simply find a role that the member has that the other users do not, that could be publish-posts or similar. Then you would add that as the capability required.

    You could work out a code snippet to do this, but you would still need to know the capability to filter on.


    anthorfacte2019
    Participant

    @anthorfacte2019

    Sorry i eat
    I am here now

    Humm….. i didn’t found with User role how do .. o_o and it’s china language for me your message xS

    I saw snippets in others converses but lot of messages with differents snippets, and all they was differents and old,

    You can’t do one ? Or something ? =/

    See you, i will go sleep 🙂
    Have a good night (day?)


    Venutius
    Moderator

    @venutius

    Without knowing what capability to filter on it would not work, that’s the basic thing we need.


    Venutius
    Moderator

    @venutius

    Member is not part of WordPress’s default roles, so you must have created this using the user role editor you posted the link to. When you did that, you must have added some extra capabilities above the default subscriber, it’s one of those extra capabilities that we need.


    anthorfacte2019
    Participant

    @anthorfacte2019

    Hello, i come fast 😀
    Aaaaaaaaaaaaah ok now i understand.. 🙁 zut
    You have one turoriel or something for said me how i can find what we need ? 😀
    (my girlfriend yell i returned on computer :p)
    See you 😀


    Venutius
    Moderator

    @venutius

    1. Go to Roles in the Dashboard.

    1. Inspect the roles assigned to the role that is the default for new sign-ups.

    2. Inspect the roles assigned to Members and find one that is not assinged to your default users.

    Tell me what that is.


    anthorfacte2019
    Participant

    @anthorfacte2019

    Hi Venutius, sorry for too late answer, i was very too late in mails clients and after wasn’t at home,

    if i understood good, you ask me this ? :

    https://nsa40.casimages.com/img/2019/02/22/190222090105949790.png

    See you 😀
    And thanks


    Venutius
    Moderator

    @venutius

    In WordPress each user role has a number of assigned capabilities, I’m looking for you to tell me a capability that the Member has that the visitor does not.


    anthorfacte2019
    Participant

    @anthorfacte2019

    Yes of course ! The member have access member area and differents pages
    but i think we must stop this conversation =/ because it’s in english, and i understand your english, but i don’t understand exactly what you want what you need =/ (with screen ?)
    And i don’t want you loose more time or think bad about me,
    It’s not easy for understand, and i don’t want you loose more time for me, i will search other soluce or paid one developpor in my city just for this =/
    Thanks again for gave me time for help me

    I have other ideas or snippet, perhaps you could help me in next time, next problem, more esealy ?
    Thanks a lot again

    Have a good day
    Anthorfacte

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