Advertisement:

Navigation

SMF Mod Site

Mod Name:
Custom Permissions
Created By:
Kays
Type:
Permissions
First Created:
February 02, 2011, 12:22:07 PM
Last Modified:
March 16, 2012, 07:08:46 PM
Latest Version:
1.1.0
Compatible With:
1.1.13, 1.1.14, 1.1.16, 2.0 RC4, 2.0 RC5, 2.0, 2.0.2
Total Downloads:
2131

Download this mod

CustomPermissions_1-1-0.zip (13kB) [1480]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:

This mod will allow you to create custom permissions. Custom permissions can be used when one is scripting to include or exclude member groups from doing certain actions or viewing certain pages.

Usage:

Permissions are used in conjunction with the allowedTo() function. Which will return either true or false depending on whether the permission is set for that member group or not. As an example, if you create a permission named view_this then it can be used as such:

Code: [Select]
if (allowedTo('view_this'))
echo 'Yes, you can see this.';
else
echo 'Nope, say goodbye';