Author Topic: Change name of default user group ('user')  (Read 5815 times)

0 Members and 1 Guest are viewing this topic.

Offline zassadgh

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Change name of default user group ('user')
« on: August 31, 2014, 11:12:32 AM »
Hello, I am trying to change the group name of the default group named 'user' to something like 'guest', what is the correct way to do this?

Thank you in advance

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Change name of default user group ('user')
« Reply #1 on: August 31, 2014, 02:35:22 PM »
Don't. If you really need to make another level, make one called "member" or something; but don't rename user.
Once you get to know me, you'll find you'll have never met me at all.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Change name of default user group ('user')
« Reply #2 on: August 31, 2014, 03:49:49 PM »
You can't rename user through xgui anyway.
Out of the Garry's Mod business.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Change name of default user group ('user')
« Reply #3 on: August 31, 2014, 10:46:31 PM »
true that ^
Once you get to know me, you'll find you'll have never met me at all.

Offline zassadgh

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Change name of default user group ('user')
« Reply #4 on: September 01, 2014, 06:19:44 AM »
You can't rename user through xgui anyway.
I know, I was thinking more of a hook/modifying files or would it that big of a problem to rename user? (does ulx even interact/grab any information by the group name 'user', it is only the Ulib that does anything with it, right. In that case what would be so bad by renaming it?)

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Change name of default user group ('user')
« Reply #5 on: September 01, 2014, 06:34:34 AM »
anything not admin or superadmin, ULX (and GMod) will assume it's user. If there's no user, the whole thing will blow up in your face. Literally 0_0.

Nah, jk. But don't edit user. Like Neku said, you can't anyway for that exact reason.
Once you get to know me, you'll find you'll have never met me at all.

Offline zassadgh

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Change name of default user group ('user')
« Reply #6 on: September 01, 2014, 07:24:46 AM »
there will he users in the sense that it will be renamed guest (weird that the default group is not name guest, just to point that out.)
Does ULX anywhere in it's code request any group by the name 'user' or is it only Ulib I then have to modify?

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Change name of default user group ('user')
« Reply #7 on: September 01, 2014, 08:54:00 AM »
Just make a group called guest and a hook to automatically add them to guest when they join.
Out of the Garry's Mod business.

Offline zassadgh

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Change name of default user group ('user')
« Reply #8 on: September 01, 2014, 09:04:45 AM »
thats a solution I like, now some help how this would be done, would be just what I need.

Offline zassadgh

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Change name of default user group ('user')
« Reply #9 on: September 02, 2014, 12:14:51 PM »
I cannot seem to find the function that defaults add new users into 'user' group, any of you guys know it?

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Change name of default user group ('user')
« Reply #10 on: September 02, 2014, 12:45:21 PM »
add a new user group. Call it "guest"

Set it to have permissions from: user
Once you get to know me, you'll find you'll have never met me at all.

Offline zassadgh

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Change name of default user group ('user')
« Reply #11 on: September 02, 2014, 01:28:15 PM »
Yearh , I know that, I assume you mean:
Code: [Select]
"guest"
{
"inherit_from" "user"
}
The problem is how to automatically add users that is not in a group to the new group, called 'guest'.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given