and there seach for:
// User Levels <- Do not change the values of USER or ADMIN
define('DELETED', -1);
define('ANONYMOUS', -1);
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);
define('GLOBAL_MOD', 3);
define('JUNIOR_ADMIN', 4);
define('DELETED', -1);
define('ANONYMOUS', -1);
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);
define('GLOBAL_MOD', 3);
define('JUNIOR_ADMIN', 4);
and after that, before the next "//" with the sintax:
create a new type of user
Ex:
So we´ve changed the red coloured zones.
NOTE THAT: we´ve choosed the number 5, but you can put any number that you want in that zone.
ANOTHER NOTE: the valve "GREAT_ADMIN" is an example, you can put what you want
=============================================================================
UTILITY: you can use this to disallow ohers admins to entry into the file
by typying at the start of the file (easymod style):
-----------SEARCH-------------------
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);
-----------AFTER, ADD---------------
if( $userdata['user_level'] != ADMIN && $userdata['user_id'] != 2 )
redirect($phpbb_root_path . 'errors.'.$phpbbEx.'?code=401');
==================================================================
NOTE: You can use this in any file.
----------------------------------------------------
How to modify the rank of auths:
Enter into a db manager with editor.
GO to the table "prefix+users"
Modify the user to apply auth
In "user_level" put the number of the define command.
That´s all.