Jump to content
MakeWebGames

Recommended Posts

Posted

Hi there MWG,

I got bored so thought i'd make a little change too V2s education system!

What has changed?

Nothing major. Just that players now have to be a required level to do a course. This required level can be set by the Game owner when adding the course in the staff menu.

Firstly run this into phpmyadmin:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Secondly Replace education.php with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Finally replace staff_courses.php with:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Hope you all like it :) Have tested and does work perfect for me but if you get any errors please tell me and I will fix them for you :)

Thanks'

razor42

Posted

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I like this way better :p

The last time I checked, a normal player is 1, this would also block things like moderators and other staff positions that are generally assigned to 3 and above. Not something that's usually done as they are staff after all.

  • 3 weeks later...
Posted
The last time I checked, a normal player is 1, this would also block things like moderators and other staff positions that are generally assigned to 3 and above. Not something that's usually done as they are staff after all.

In most cases I would agree, but with it being staff_courses i wouldnt want anyone but admins to have access to it anyway, possibly secs. though I would do it more like...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Which is much more specific in which user levels can gain access. (the die() function cuts off the bottom of my pages so i have to use the endpage() function.)

Posted
In most cases I would agree, but with it being staff_courses i wouldnt want anyone but admins to have access to it anyway, possibly secs. though I would do it more like...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Which is much more specific in which user levels can gain access. (the die() function cuts off the bottom of my pages so i have to use the endpage() function.)

That works too.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

also would work, although this way would only be useful if you had a lot more than just 2 levels. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...