WBCE Home | WBCE Hilfe | WBCE Addon Repository | Impressum | Datenschutz

WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 13.04.2019 03:59:35

losttrip
Member

Reviews Module - Allow moderation by non Administrator

Reviews 1.4 - https://addons.wbce.org/pages/addons.ph … em&item=87

By default this module only seems to allow the Administrator (user 1) to moderate (accept, reply) the reviews.  The problem is, I am the administrator of a client page, because they are not technical and so they prefer a less complicated backend experience.  So, I created User Group called "Manager" for them to use.  But, they do want to moderate the reviews for their business.  Is this possible?

Online

#2 13.04.2019 07:56:31

florian
Administrator

Re: Reviews Module - Allow moderation by non Administrator

Yes.
First, install the small admin tool "Group ID Info" attached. It displays the ID of the user groups of the site (until the new WBCE version there's no easy way to figure out the ID of a group).
You will need the ID of the Manager group in the next step.

Then, open /modules/reviews/reviews.class.php with the AFE or your preferred source code editor. Go to line 995 and find

if($admin->ami_group_member(1)) {  // administrators

Change this to

if($admin->ami_group_member(1) || $admin->ami_group_member(2)) {  // administrators

Replace the 2 in the code above with the actual ID of the manager group.

(The admin tool can be removed afterards.)

Last edited by florian (13.04.2019 09:01:52)

Offline

#3 13.04.2019 15:28:06

losttrip
Member

Re: Reviews Module - Allow moderation by non Administrator

That works.  Thank you very much.

Online

Board footer

Powered by FluxBB

up