Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Development > Topic : How to Create Usergroup Permissions

A2 Hosting

News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team



Threaded Mode | Print  

 How to Create Usergroup Permissions, How to add new permissions to Usergroup Manager (1 Replies, Read 2769 times)
Guest
Group: Guest
Status:
First you'll need to add a new column to the "permissions" table in your database.
Log into phpmyadmin, select the database "aef" is installed on, click on the "permissions" table. Add a new column named "test_perms".

Open: your_forums/main/admin/usergroups.php
Find: (There are two instances)
Code
$ugpermissions = array('view_forum' => 0,


After Add: (For both instances)
Code
'test_perms' => 0,

Notice that "test_perms" is the same as the column we added to the database?

Find: (There are two instances)
Code
$ugpermissions_yn = array('view_forum' => 0,


After Add: (For both instances)
Code
'test_perms' => 0,


Save and upload.


Open: your_forum/themes/default/admin/usergroups_theme.php
Find: (There are two instances)
Code
$forum_per = array('view_forum' => array('yn', 'Can view the forum', ''),


After Add: (For both instances)
Code
'test_perms' => array('yn', 'This is my test permissions', ''),

Notice that "test_perms" is the same as the column we added to the database?

Save and upload.

All done.


If you need help placing the permission somewhere else I'll help.


IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Members who read this topic
, pulkit, Bug, Paul, ultra_vires, t6q4, chandy, kab012345, thinker5555, kingchandio, eZ--eZ, jcloonan, Jedi74, bloomer, Beacher, tsrx, harmor, Chavez, Aymenbnr, velias, anne46, alevin46


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is September 15, 2019, 1:13 pm.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.029