Search found 282 matches: permission

Searched query: permission

by maxrpg
Mon Jun 22, 2020 2:30 pm
Forum: Extension Writers Discussion
Topic: List of top forums - access permission
Replies: 2
Views: 496

Re: List of top forums - access permission

Thanks david63

Managed to solve it (i think) using:

if($this->auth->acl_get('f_read', $rows['forum_id'])

In my while loop.

Whenever I get stuck on something it seems every time I post on here I seem to solve my problem, usually by myself, five minutes later :lol:
by david63
Mon Jun 22, 2020 2:09 pm
Forum: Extension Writers Discussion
Topic: List of top forums - access permission
Replies: 2
Views: 496

Re: List of top forums - access permission

I don't think that you can do that in one query. You will need to run the query to get an ordered list of the fora then loop through that list to check the user permissions
by maxrpg
Mon Jun 22, 2020 1:57 pm
Forum: Extension Writers Discussion
Topic: List of top forums - access permission
Replies: 2
Views: 496

List of top forums - access permission

Hi, I'm trying to get a list of the 5 most active forum sections/categories but I don't know how to do it with permissions. Basic code: $sql = 'SELECT * FROM ' . FORUMS_TABLE . ' ORDER BY forum_topics_approved DESC'; $result = $this->db->sql_query_limit($sql, 5); Can someone help ...
by -=ET=-
Tue May 05, 2020 12:02 pm
Forum: Extension Writers Discussion
Topic: Best way to do without modifying core files?
Replies: 10
Views: 996

Re: Best way to do without modifying core files?

Thanks guys for your first answers! Create a new group and then copy permissions from Global Moderators group. Go to permissions and select your new group, select type - Global Moderators and remove all but edit posts permission (unless you also want them ...
by david63
Tue May 05, 2020 9:28 am
Forum: Extension Writers Discussion
Topic: Best way to do without modifying core files?
Replies: 10
Views: 996

Re: Best way to do without modifying core files?

Not fully tested but try this. Create a new group and then copy permissions from Global Moderators group. Go to permissions and select your new group, select type - Global Moderators and remove all but edit posts permission (unless you also want them to ...
by kasimi
Mon Apr 20, 2020 9:44 pm
Forum: Extension Writers Discussion
Topic: Set permissions on a Forum
Replies: 4
Views: 468

Re: Set permissions on a Forum

A role can't be applied to forums. A role can only be applied to a group/user (global permissions) or a pair of group/user and forum (local permissions). You will need to: Create a group. Use the permission tool to create a role: $role_name = 'SOME_ROLE_NAME'; $role_type ...
by kizuzi
Mon Apr 20, 2020 9:11 pm
Forum: Extension Writers Discussion
Topic: Set permissions on a Forum
Replies: 4
Views: 468

Re: Set permissions on a Forum

Dear Kasimi, I have checked the whole class permission but I have not found any possibility to define the forum to set any permission. It seems that class can be used to create new permissions, they can be added via the acp to users, roles or groups. ...
by kasimi
Mon Apr 20, 2020 7:45 pm
Forum: Extension Writers Discussion
Topic: Set permissions on a Forum
Replies: 4
Views: 468

Re: Set permissions on a Forum

You can use the migrator.tool.permission service:

Code: Select all

$role_name = 'ROLE_FORUM_STANDARD';
$auth_name = 'f_some_permission';
$this->permission_tool->permission_set($role_name, $auth_name, 'role', true);
by kizuzi
Mon Apr 20, 2020 7:05 pm
Forum: Extension Writers Discussion
Topic: Set permissions on a Forum
Replies: 4
Views: 468

Set permissions on a Forum

... form, in that the user or administrator write the name and the description and the group and the forum will be created. The group should get user permissions to the group related forum and the group moderators should get moderator permissions on that group related Forum. Now my question: How I ...
by 3Di
Mon Apr 13, 2020 12:25 am
Forum: Extension Writers Discussion
Topic: Tool for making Protected Demo forums
Replies: 24
Views: 2021

Re: Tool for making Protected Demo forums

... that logs in. ... Then I told you.. When it comes to give an user the right to acces the ACP side of one of our extensions we grant him the custom permission we made on purpose, simple as it is. Then you told me... That was my initial thought. Just set up a demo forum install and add an admin account ...
by rxu
Sat Apr 11, 2020 10:49 am
Forum: Extension Writers Discussion
Topic: sql and conditional statement...
Replies: 12
Views: 942

Re: sql and conditional statement...

... and avatar not loading properly on index page if (!defined('PHPBB_USE_BOARD_URL_PATH')) { define('PHPBB_USE_BOARD_URL_PATH', true); } } /** * Edit permission function * * */ public function can_edit_message($author_id) { return $this->user->data['user_type'] == USER_FOUNDER || $this->auth->acl_get('a_') ...
by spaceace
Thu Apr 09, 2020 2:05 pm
Forum: Extension Writers Discussion
Topic: sql and conditional statement...
Replies: 12
Views: 942

Re: sql and conditional statement...

... and avatar not loading properly on index page if (!defined('PHPBB_USE_BOARD_URL_PATH')) { define('PHPBB_USE_BOARD_URL_PATH', true); } } /** * Edit permission function * * */ public function can_edit_message($author_id) { return $this->user->data['user_type'] == USER_FOUNDER || $this->auth->acl_get('a_') ...
by ctrstudio
Thu Apr 09, 2020 6:33 am
Forum: Extension Writers Discussion
Topic: Tool for making Protected Demo forums
Replies: 24
Views: 2021

Re: Tool for making Protected Demo forums

When it comes to give an user the right to acces the ACP side of one of our extensions we grant him the custom permission we made on purpose, simple as it is. That was my initial thought. Just set up a demo forum install and add an admin account and password with permissions limited ...
by 3Di
Thu Apr 09, 2020 4:05 am
Forum: Extension Writers Discussion
Topic: Tool for making Protected Demo forums
Replies: 24
Views: 2021

Re: [Info] Extension Writer Tools

When it comes to give an user the right to acces the ACP side of one of our extensions we grant him the custom permission we made on purpose, simple as it is.
by mrgoldy
Wed Apr 08, 2020 4:53 pm
Forum: Extension Writers Discussion
Topic: sql and conditional statement...
Replies: 12
Views: 942

Re: sql and conditional statement...

... and avatar not loading properly on index page if (!defined('PHPBB_USE_BOARD_URL_PATH')) { define('PHPBB_USE_BOARD_URL_PATH', true); } } /** * Edit permission function * * */ public function can_edit_message($author_id) { return $this->user->data['user_type'] == USER_FOUNDER || $this->auth->acl_get('a_') ...

Go to advanced search