Wiki ⇒ Dragonfly admininistration ⇒ How to give regular admins message rights ⇒ CPG Dragonfly™ CMS
WikiDragonfly admininistration ⇒ How to give regular admins message rights

5. 6: How to give regular admins message rights Parent


DragonflyCMS v9.3+ implements changes to set granular permissions to admins, thus deprecating this article.
While creating or editing an existing admin you will be presented with a set of permissions list.
Use CTRL to select multiple choices and save.

Depracated

Run this query in phpMyAdmin to add the "messages" option to the list of permissions in the admins section:
PHP:
ALTER TABLE `cms_admins` ADD `radminmessages` TINYINT( 4 ) DEFAULT '0' NOT NULL ;
To allow users to modify the messages, open your admin/modules/messages.php file and change line 17 from:
PHP:
if (!can_admin()) { die('Access Denied'); }
to:
PHP:
if (!can_admin('messages')) { die('Access Denied'); }
And lastly, to show the messages link in the administrator menu, open admin/links/adlnk_main.php and cut lines 58 and 59 and paste them at the end of the file. Then put around them:
PHP:
if (can_admin('messages')) { }
So, the end of this file should look like:
PHP:
if (can_admin('messages')) {
$menuitems['_AMENU3'][_MESSAGES]['URL'] = adminlink('messages');
$menuitems['_AMENU3'][_MESSAGES]['IMG'] = 'messages';
}

Created: Sunday, December 31, 2006 (20:40:39) by Dizfunkshunal
Updated: Tuesday, December 04, 2012 (02:58:17) by NanoCaiordo