The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Private Blogs: Permissions for Supermoderators
I have posted over at vBulletin.com but it keeps getting buried and Wayne doesn't seem to understand the issue: Question: How do I set permissions so member blogs are really private?
I have played with all combinations of permissions that might be related to blogs at
I can set it so that Super Moderators can see ALL blogs, public or private. I can NOT set it so that moderators and regular members can see PUBLIC blogs but Not private blogs. Quote:
I have no blog moderators, only supermoderators. 1. I can set those supermoderators to be able to view blogs from other members, in which case they can view blogs even when the members has made the blog private and not given specific permission to the moderators to have access; OR 2. I can set it so supermoderators cannot view blogs from others, in which case they cannot even view public blogs. I can find no combination that results in supermoderators being able to view public blogs but not private ones. What you describe, Wayne, is logical and would be exactly the way I would expect it to work, BUT it simply does NOT work that way. Any ideas? How can I accomplish this either with native vBulletin or with a customization. |
#2
|
|||
|
|||
To clarify: if a member makes a blog private, a supermoderator is still able to read the blog -- this is the unwanted condition. Are you looking for some source code changes or are you just looking for a vbulletin permission / conditional that can handle it?
I am a little confused because I know you code. Anyway, trying to help, just need to know what your looking for. |
#3
|
|||
|
|||
That is exactly the situation: Supermods (and maybe regular mods - I don't have any) can read private blogs.
And yes I can do some basic coding but I'm not sure why this isn't a built-in standard option or where exactly I would need to customize to override this. I don't think Wayne is either. If someone knows how to do this or would like to create a plug-in for me, I am willing to pay. |
#4
|
|||
|
|||
I will take a quick look at this for you, when I get home. Waiting for my delayed flight at the airport right now. You share your work with the community so lets see if the community can assist you.
|
#5
|
|||
|
|||
Thank you.
|
#6
|
|||
|
|||
I grabbed a fresh vbulletin to my laptop and looked at some of the code. I am not sitting at my development station so I cannot test this.
This is a quick fix, but it also banishes the administrator from seeing the private blogs. Code:
"/includes/blog_functions_share.php" "$issupermod = TRUE". See below: Code:
if ($modinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator']) { DEVDEBUG(' USER IS A SUPER MODERATOR'); // $issupermod = true; // <-- Comment this out. } The only time I have used the blogging system is for my daughters board. So I do not have a firm grasp on the permissions, but I clearly see in the code where privacy permissions are bypassed for supermoderators. |
#7
|
|||
|
|||
Thank you, tbworld.
The file is actually /includes/blog_functions_shared.php I commented out the line you highlighted Code:
if ($modinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator']) { DEVDEBUG(' USER IS A SUPER MODERATOR'); // $issupermod = true; // <-- Comment this out. } Code:
if (empty($do)) { if ($issupermod) { // return true; // <-- comment this out } else if (isset($modinfo['isblogmoderator'])) { if ($modinfo['isblogmoderator']) { DEVDEBUG(' USER HAS ISBLOGMODERATOR SET'); return true; } else { DEVDEBUG(' USER DOES NOT HAVE ISBLOGMODERATOR SET'); return false; } } |
#8
|
|||
|
|||
I'm not sure if you have to undo the code changes you made after trying this method. I also don't have any blogs on my test site to test this with
Go to user group manager / supermods Scroll down to the administrator permissions are Select YES for can access control panel Save Go to user groups / admin permissions Click on edit permissions (will have to do this one by one) Adjust permissions (can admin blog and can admin blog permission to NO ) Save Test and report back here if it works. |
Благодарность от: | ||
tbworld |
#9
|
|||
|
|||
Great Suggestion John!
Unfortunately, mine were already defaulted to 'NO so it did not make any difference. I had completely forgotten about that menu, on the board I run we have rewritten the permission system so we do not use super moderators, nor blogs. Your suggestion should help others here if they are reading the thread It does seem odd that this permission was overlooked, so I had to check your idea out. Permissions can be embedded anywhere, I could have easily overlooked it in my 10 minute search. --------------- Added [DATE]1368743195[/DATE] at [TIME]1368743195[/TIME] --------------- hmm.. Nothing in the bitfields for a direct permission. Onto the cache, maybe it will unearth some details. |
#10
|
|||
|
|||
Quote:
Unfortunately, that does not work. Following all your instructions, Supermoderators can still see private blog posts (actually all the admin permissions were set to No by default). They just can't edit or otherwise moderate them them. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|