Moderator MOD       Back to File List | Edit This File

Moderator MOD - Click to Download
Submitted by basleijser on 09.07.2008 (954 Downloads)
With this mod you can have moderators in your game. You can give them less possibilities than admins, so you can have users who can only add news/edit items and nothing more.
You can also use the instructions to create submoderators, moderators, admins and a 'superadmin' (you of course).
Have fun!
File rating: 4.23 out of 5.00 (13 votes total).
Rate this file:       (Sucks) 1   2   3   4   5 (Rocks)      

Posted by Justas on 09.07.2008

---------------

Replace:

$template = gettemplate("admin");

with:

$template = gettemplate("moderator");

--------------------------------------------------------------------------------------------------------------------
Did you meant copy&paste, then replace?
Posted by Justas on 09.07.2008
Sorry, My mistake!
Posted by Justas on 09.07.2008
Did you tested that mod? I did everything like readme says, but its not working..
Posted by basleijser on 09.07.2008
It works perfect for me.
Posted by Justas on 09.07.2008
I need to use phpmyadmin to change user auth level to "3"
Posted by basleijser on 09.07.2008
If you want to edit someone's authlevel to 3 using the DK's default admin panel:

Open admin.php, find:
if ($row["authlevel"] == 0) { $row["auth0select"] = "selected=\"selected\" "; } else { $row["auth0select"] = ""; }
   if ($row["authlevel"] == 1) { $row["auth1select"] = "selected=\"selected\" "; } else { $row["auth1select"] = ""; }
   if ($row["authlevel"] == 2) { $row["auth2select"] = "selected=\"selected\" "; } else { $row["auth2select"] = ""; }

add after:

if ($row["authlevel"] == 3) { $row["auth3select"] = "selected=\"selected\" "; } else { $row["auth3select"] = ""; }

---------------------------------

Still in admin.php add:

<option value="3" {{auth3select}}>Moderator</option>

after:

<option value="2" {{auth2select}}>Blocked</option>

That'll do it.
Posted by Fayt on 09.07.2008
This mod is from the Dragon's Kingdom illegal version.
Posted by basleijser on 09.11.2008
WTF? This is from DRAGON KNIGHT. Not Dragon Kingdom.
Posted by Fayt on 09.11.2008
And I suppose your sure about this?
Posted by basleijser on 09.11.2008
Of course I am!
What makes you think this is Dragon Kingdom? And have you voted a score of 1 just because of that???
I've modded a default version of Dragon Knight, with copyright info and everything, and I've used it to create this mod and others, like Turns Mod V2.
I don't even know what Dragon Kingdom is.
Posted by Fayt on 09.11.2008
And what version do you have?
Posted by basleijser on 09.12.2008
1.1.11
Posted by Fayt on 09.12.2008
So a modified version
Posted by sLysdal on 10.16.2008
Works PERFECT!! ill give it a 5!
Posted by brian elooh on 06.07.2013
tweaks to the current mod - this is so there is a moderator link inside the left navigation were admin link normally is

step 1


in lib.php find

if ($userrow["authlevel"] == 1) { $userrow["adminlink"] = "<a href=\"admin.php\">Admin</a><br />"; } else { $userrow["adminlink"] = ""; }

under that.... paste

if ($userrow["authlevel"] == 3) { $userrow["moderatorlink"] = "<a href=\"moderator.php\">moderator</a><br />"; } else { $userrow["moderatorlink"] = ""; }

then in leftnav.php find

{{adminlink}}

past this under it

{{moderatorlink}}
--------------------------------------------------------------------------------

to change authoration level to moderator in adim panel

Open admin.php, find:
if ($row["authlevel"] == 0) { $row["auth0select"] = "selected=\"selected\" "; } else { $row["auth0select"] = ""; }
  if ($row["authlevel"] == 1) { $row["auth1select"] = "selected=\"selected\" "; } else { $row["auth1select"] = ""; }
  if ($row["authlevel"] == 2) { $row["auth2select"] = "selected=\"selected\" "; } else { $row["auth2select"] = ""; }

add after:

if ($row["authlevel"] == 3) { $row["auth3select"] = "selected=\"selected\" "; } else { $row["auth3select"] = ""; }

Add A Comment

In order to cut down on comment spam, you must be registered on the support forums and provide your username and password before you are allowed to comment. The name shown in your comment will be your forums display name. Sorry it had to be like this. If you haven't already, please register an account.

Forums Username:


Forums Password:


Your Comment:




Information & Rules
This is a file index for any Dragon Knight modifications. If you've made a mod you'd like to share with the community, upload it.

Mod authors, please include a name, version, and brief description along with your file. All files should be submitted in a zip file that includes the actual PHP scripts as well as any readme/instruction files.

DISCLAIMER: I take absolutely no responsibility for the content or functionality of any of these files. You use them entirely at your own risk. Make sure to run all files through a virus scanner before opening them. Hopefully the people here are above such petty nonsense as putting a virus in the files, but you can never be to careful.