Admin Panel

Location of the Videos
Post Reply
PKDemon
Posts: 91
Joined: Tue Nov 15, 2011 5:51 pm

Admin Panel

Post by PKDemon »

i didnt see this anywhere so i figured that i would post this and see what people had to say about it

i was wondering if there was away to make an admin panel for the game and add like another field into the players table to show where or not the user is an admin or not and if is admin show the link for the admin panel if not admin then dont show the link

but i figure having an admin panel it would help people make new creatures and items faster plus help manage the users that are joining up too
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Admin Panel

Post by OldRod »

Shouldn't be too hard

Put a flag in the database on the user record to show whether the user is an admin or not. Then on your main menu bar, only show the link to the admin page if the current user is an admin. Probably should also put a check on the admin page itself to make sure only logged in admins can use it (in case someone goes directly to the page without using the menu).

You could do something on the admin page that checks whether the user is an admin or not and if not automatically redirect him back to the menu (or give him a message and a link back to the main page).
dust1031
Posts: 92
Joined: Fri Jul 22, 2011 3:38 am

Re: Admin Panel

Post by dust1031 »

sounds like a good idea, i could make a sample code, and go from there. but first tell me what u want to use the admin panel for.
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Admin Panel

Post by hallsofvallhalla »

that is actually the subject of a upcoming video :) hopefully by friday
PKDemon
Posts: 91
Joined: Tue Nov 15, 2011 5:51 pm

Re: Admin Panel

Post by PKDemon »

hallsofvallhalla wrote:that is actually the subject of a upcoming video :) hopefully by friday
goodie cant wait :)
Post Reply

Return to “Older Browser MMO Videos”