New Admin/Donator Setup

Announcements and news related to Crit Sandvich.

New Admin/Donator Setup

by NuclearWatermelon » Sun Jan 30, 2011 1:22 am

Previously we had a sort of hybrid system where the Blue admins and doantors were done from a database, and the Pink and Gold admins were done manually. However, with the influx of donators who come from our fun and trade servers (who would not get donator on the servers without bugging an admin to do it manually), we decided to fix this.

Benny and I went through and got this all set up, and now all admins are given their rights by the database on the appropriate servers, and donators now automatically get access to all servers, as advertised.
User avatar
NuclearWatermelon
 
Posts: 669
Joined: Sun Oct 10, 2010 8:47 pm

Re: New Admin/Donator Setup

by Repoman » Sun Jan 30, 2011 4:44 am

I think it replaced my admin with donater, because I cant use admin commands now. o.o

Nevermind, it was fixed by Benny.
User avatar
Repoman
 
Posts: 646
Joined: Mon Oct 11, 2010 4:01 pm

Re: New Admin/Donator Setup

by Vivi Hill » Sun Jan 30, 2011 6:21 am

No worries, Repo was entered in the database twice, once as donator, once as admin. When I removed his Admin one and added it to the Donator one, everything works perfectly :)
Image
"Just because nobody complains doesn't mean all parachutes are perfect." --Benny Hill
User avatar
Vivi Hill
Red Admin
Master of Ceremonies
 
Posts: 1498
Joined: Sat Oct 09, 2010 12:27 pm
Location: Troy, NY

Re: New Admin/Donator Setup

by NuclearWatermelon » Sun Jan 30, 2011 12:03 pm

And now we know that people can be added twice to the database, how odd.
User avatar
NuclearWatermelon
 
Posts: 669
Joined: Sun Oct 10, 2010 8:47 pm

Re: New Admin/Donator Setup

by Vivi Hill » Sun Jan 30, 2011 2:14 pm

Yeah, the "identity" field is not a primary key, there's a separate id field for it. I think the reason is you can specify multiple types of id, not just steamid. So if the ID field was a primary key I guess it could be problematic. Or something. Or the guy just didn't think about it.

Anyway the donator interface won't add multiple steamids with multiple donations as it does a REPLACE.
Image
"Just because nobody complains doesn't mean all parachutes are perfect." --Benny Hill
User avatar
Vivi Hill
Red Admin
Master of Ceremonies
 
Posts: 1498
Joined: Sat Oct 09, 2010 12:27 pm
Location: Troy, NY

Re: New Admin/Donator Setup

by Argent » Sun Jan 30, 2011 5:36 pm

I think this may have turned my [a] into an [A] which doesn't seem right. Thought you ought to know.
Image

Image

>[I] TAKE THAT, CLOCKS
User avatar
Argent
Donator
The Fourth Suited Ace
 
Posts: 486
Joined: Fri Oct 15, 2010 12:23 pm

Re: New Admin/Donator Setup

by NuclearWatermelon » Sun Jan 30, 2011 5:55 pm

Argent wrote:I think this may have turned my [a] into an [A] which doesn't seem right. Thought you ought to know.

Which server?
User avatar
NuclearWatermelon
 
Posts: 669
Joined: Sun Oct 10, 2010 8:47 pm

Re: New Admin/Donator Setup

by Argent » Sun Jan 30, 2011 6:00 pm

NuclearWatermelon wrote:
Argent wrote:I think this may have turned my [a] into an [A] which doesn't seem right. Thought you ought to know.

Which server?
SB2
Image

Image

>[I] TAKE THAT, CLOCKS
User avatar
Argent
Donator
The Fourth Suited Ace
 
Posts: 486
Joined: Fri Oct 15, 2010 12:23 pm

Re: New Admin/Donator Setup

by NuclearWatermelon » Sun Jan 30, 2011 6:01 pm

Should be fixed.
User avatar
NuclearWatermelon
 
Posts: 669
Joined: Sun Oct 10, 2010 8:47 pm

Re: New Admin/Donator Setup

by dieinafire » Sun Jan 30, 2011 7:54 pm

benny hill wrote:Yeah, the "identity" field is not a primary key, there's a separate id field for it. I think the reason is you can specify multiple types of id, not just steamid. So if the ID field was a primary key I guess it could be problematic. Or something. Or the guy just didn't think about it.

Anyway the donator interface won't add multiple steamids with multiple donations as it does a REPLACE.


Add a unique index.
User avatar
dieinafire
Donator
 
Posts: 63
Joined: Wed Oct 13, 2010 10:05 pm

Re: New Admin/Donator Setup

by Vivi Hill » Sun Jan 30, 2011 8:59 pm

There is a unique index.
Image
"Just because nobody complains doesn't mean all parachutes are perfect." --Benny Hill
User avatar
Vivi Hill
Red Admin
Master of Ceremonies
 
Posts: 1498
Joined: Sat Oct 09, 2010 12:27 pm
Location: Troy, NY

Re: New Admin/Donator Setup

by NuclearWatermelon » Sun Jan 30, 2011 9:52 pm

Make steamid unique is what we need. Either in the SQL, or when we add a user do a check.
User avatar
NuclearWatermelon
 
Posts: 669
Joined: Sun Oct 10, 2010 8:47 pm

Re: New Admin/Donator Setup

by Argent » Mon Jan 31, 2011 2:04 pm

I used to have access to the sm_removespray command, and now I do not, is that intentional, or a side-effect of this move?
Image

Image

>[I] TAKE THAT, CLOCKS
User avatar
Argent
Donator
The Fourth Suited Ace
 
Posts: 486
Joined: Fri Oct 15, 2010 12:23 pm


Return to News



Who is online

Users browsing this forum: No registered users and 1 guest