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
Admin Panel
Re: Admin Panel
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).
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).
Re: Admin Panel
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.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Admin Panel
that is actually the subject of a upcoming video
hopefully by friday

Re: Admin Panel
goodie cant waithallsofvallhalla wrote:that is actually the subject of a upcoming videohopefully by friday
