HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Modify usergroups so you can select which is 'staff'

In stock form, if you go to the user groups page, the only groups that will be in staff is administrators and super moderators.   I know that I will have moderators that I don't want to have 'super moderator' access, some for all the sub forums, some for just one sub form, so I'd have different groups that I wanted to show as staff.   Thus this modification was born.

As well as that, I didn't want the 'apply to this usergroup' appearing on every user group when members are viewed.   As some groups should not be applied for.

So to start, I went into the f_groups table and added 'g_is_staff' and 'can_apply', both type tinyint(1), defaulting all to 0.

Files that needed to be modified (and are attached below):

adminzone/pages/modules_custom/admin_ocf_groups.php
site/pages/modules_custom/groups.php
sources_custom/forum/ocf.php
sources_custom/ocf_groups_action.php
sources_custom/ocf_groups_action2.php
lang_custom/EN/ocf.ini
themes/default/templates_custom/OCF_VIEW_GROUP_SCREEN.tpl

I have tested adding and editing and the change to the groups view screen and all appears to be working without issue.
Attachment
» Download: ocf_groups_action.php (8 Kb, 169 downloads so far)
Attachment
» Download: ocf_groups_action2.php (18 Kb, 175 downloads so far)
Attachment
» Download: admin_ocf_groups.php (34 Kb, 163 downloads so far)
Attachment
» Download: groups.php (28 Kb, 166 downloads so far)
Attachment
» Download: ocf.php (57 Kb, 166 downloads so far)

There are no pages beneath this page

Posted
Submitted by Arbo
Two more of the files you need attached.
Attachment
» Download: ocf.ini (84 Kb, 176 downloads so far)
Attachment
» Download: OCF_VIEW_GROUP_SCREEN.tpl (2 Kb, 186 downloads so far)
 
CEDI change-log Post