Admin Only Can Post Public Stuff

Hello, folks. I wonder if anyone could help me with something that is becoming really annoying to me and I've no idea how to sort it out, and I've tried other posts, but couldn't find anything related to that.

 

The thing is: I don't want people to post anything into the PUBLIC folder, like videos and photos, cause I don't want them to appear in the photo or video box on the front page. I wish only ADMIN could post photos, videos, etc into the public folder. The thing is, if I disable the PUBLIC FOLDER option under the PRIVACY SETTINGS, then nothing will show up in the front page boxes, and that's not what I want at all.


I don't want to restric members to upload photos and videos either, but I don't want their folders with pics and videos and whatever showing in the public one. 


How can I solve this issue? Is there a script that will allow ADMIN only to use the public folder option?


Thanks a lot for your time. 

Quote · 27 May 2012

This should work. Backup the file before making changes. I have not done any extensive testing of the change.

 

In inc/classes/BxDolPrivacy.php

Look for the function getGroupChooser

Inside the function, find :

foreach($aGroups as $aGroup) {

Just below, add this code snippet :

            if(($aGroup['id']==BX_DOL_PG_ALL) && !isAdmin($iOwnerId))
               continue;

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 27 May 2012

Another option is to modify the sys_privacy_groups table.

a) Look for the record with id=3

b) Set the owner_id field to the profile id of the administrator (typically = 1)

c) set the title field to Public

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 27 May 2012

Thanks a lot, modzzz.

I'll sure test one of them later today and I'll post you a feedback.

Thanks a lot for your time, mate.

Quote · 28 May 2012

Ok, modzzz, my dear....

Unfortunately, the first option didn't work, and to be honest I'm having a hard time to figure out how to proceed with the second one. Hehehehe. Please forgive my ignorance, but could you explain a bit further what to do? I mean, I don't even know where to find the sys_privacy_groups table.


Thanks a lot for your patience.

Quote · 1 Jun 2012

Oops, wait a minute. It did work. I tried to open a new album and worked perfectly, the reason why I thought it didn't work is cause I added a photo into an existing album, and of course that will work only for the new folders added.

 

Oh, thank you sooooooo much, modzzz. You're the best!!! :0) I'm a happy bunny now! Cheers, mate!

Quote · 1 Jun 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.