Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I am using extended users and need to create a new 'authenticated user (special) ', using level 5. I also wanted to rename the levels as 'month users' (level4) and 'subscribed users'(level5) but if I change the names in the database, they disappear from the user admin dropdown, leaving blank spaces. Is there a way to edit these names?
Hi,

No need to make changes to the database for tweaking the existing levels i.e. those defined in couch/auth/auth.php -
Code: Select all
    define( 'K_ACCESS_LEVEL_SUPER_ADMIN', 10 );
    define( 'K_ACCESS_LEVEL_ADMIN', 7 );
    define( 'K_ACCESS_LEVEL_AUTHENTICATED_SPECIAL', 4 );
    define( 'K_ACCESS_LEVEL_AUTHENTICATED', 2 );
    define( 'K_ACCESS_LEVEL_UNAUTHENTICATED', 0 );

Their display text can be changed from the language file used by your site (default is couch/lang/EN.php but can be changed from couch/config.php).

The relevant lines in EN.php are the following -
Code: Select all
$t['superadmin'] = 'Super Admin';
$t['admin'] = 'Administrator';
$t['authenticated_user_special'] = 'Authenticated User (Special)';
$t['authenitcated_user'] = 'Authenticated User';
$t['unauthenticated_user'] = 'Everybody';

For creating new levels, however, you'll have to add new records to the database (in users table) and also add corresponding entries to the two places mentioned above.

Hope this helps.
2 posts Page 1 of 1