Quote:
Originally Posted by squidsk
The easiest way to do that would be have them do it from modcp by copying the award_request.php file to modcp and replacing the permission condition at the top with the one from modcp/award.php.
|
Great idea, thanks.
<-- wonders why we didnt think up of that idea
,we did something similar in the past with approving of newly registered members via the modcp.
/* another edit
Our mods reported that they cant "see" the new file in ModCP. So you have to edit the plugin "YAAS - Give Award to User Nav -> mod_index_navigation" in ACP so it looks like
Code:
// *************************************************
if ($vbulletin->options['aw_modcp'])
{
construct_nav_option($vbphrase['give_user_award'], 'award.php?do=manage');
construct_nav_option($vbphrase['yaas_edit_delete_user_award'], 'award_user.php?do=search');
construct_nav_option($vbphrase['award_requests'], 'award_requests.php?do=display');
construct_nav_group($vbphrase['award_system']);
construct_nav_spacer();
}
Thanks.
*/
As for permissions - you are the author and decide it - for me it would be sufficient to implement the "can view award list" permission for groups and the "moderator can give this award in modcp" option (when managing awards), both described (and code provided) in earlier posts.
Custom admin permission for the award plugin itself we have already working.
/* edit
Included the code changes for custom admin permission.
Note:
These are direct code changes! Use at your own risk!
(Yeah boo me coders and staff, but we are not used to the plugin system and not everything can be done with the hook system.)
*/