Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 May 2013, 23:05
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
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
  • AdminCP >> vBulletin Blog >> Blog Moderators
  • AdminCP >> Usergroups >> Super Moderators --> various blog permissions
  • AdminCP >> Forums & Moderators > Show All Moderators --> individual moderators permission
I can set it so that moderators and regular members can see ONLY their own blogs.

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.

Originally Posted by Wayne Luke;n3969695
Aside from the Blog Moderators that you give permissions to, Users control who can view and cannot view their blogs. They do this by going to their User Control Panel by clicking Settings in the top right corner. Next they would click on "Blog" in the left navigation. Finally they would edit their privacy under Permissions and Privacy. If they want to set it so only people on their contact list can view and reply they can. That is about as private is it gets though.
No. Please read what I have written more carefully.

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.
Reply With Quote
  #2  
Old 16 May 2013, 01:28
tbworld tbworld is offline
 
Join Date: Oct 2008
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.

Last edited by tbworld; 16 May 2013 at 01:34.
Reply With Quote
  #3  
Old 16 May 2013, 01:51
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
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.
Reply With Quote
  #4  
Old 16 May 2013, 02:09
tbworld tbworld is offline
 
Join Date: Oct 2008
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.
Reply With Quote
  #5  
Old 16 May 2013, 03:13
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Thank you.
Reply With Quote
  #6  
Old 16 May 2013, 05:52
tbworld tbworld is offline
 
Join Date: Oct 2008
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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

approximately line #46. Try commenting out
"$issupermod = TRUE". See below:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Once I am at my development station we should be able to come up with a more solid fix. Anyway, let me know if this works.

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.
Reply With Quote
  #7  
Old 16 May 2013, 14:49
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Thank you, tbworld.

The file is actually /includes/blog_functions_shared.php

I commented out the line you highlighted


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

plus just below that


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I can confirm that this prevents both Admins and Supermoderators from being able to view private blogs.
Reply With Quote
  #8  
Old 16 May 2013, 19:15
John Lester's Avatar
John Lester John Lester is offline
 
Join Date: Nov 2004
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.
Reply With Quote
  #9  
Old 16 May 2013, 22:52
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by John Lester View Post
Test and report back here if it works.
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 16 May 2013 at 23:26 ---------------

hmm.. Nothing in the bitfields for a direct permission. Onto the cache, maybe it will unearth some details.

Last edited by tbworld; 16 May 2013 at 23:24.
Reply With Quote
  #10  
Old 16 May 2013, 23:39
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Originally Posted by John Lester View Post
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.
Thanks for the suggestion.

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.
Reply With Quote
  #11  
Old 16 May 2013, 23:48
tbworld tbworld is offline
 
Join Date: Oct 2008
Can you assign a super moderator to a single blog? If so how?
and
How do you assign a moderator to a blog?


Before we make an administrative fix (easy enough), I am trying to see if I missed something. There is code that shows if they pass any other parameter to the function that it checks for additional supermod permissions.

Last edited by tbworld; 16 May 2013 at 23:58.
Reply With Quote
  #12  
Old 17 May 2013, 00:00
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Originally Posted by tbworld View Post
Can you assign a super moderator to a single blog? If so how?
Not that I know of.

Originally Posted by tbworld View Post
How do you assign a moderator to a blog?
AdminCP > vBulletin Blog > Blog Moderators

I have no one assigned as a Blog Moderator.
Reply With Quote
  #13  
Old 17 May 2013, 00:16
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by djbaxter View Post
Not that I know of.
AdminCP > vBulletin Blog > Blog Moderators
Thank You

But <-- LOL, You know theres always a but!

What I am looking for and maybe it doesn't exist, is if you can assign a moderator to a particular blog. I should have clarified better. Like to a forum, you can assign the moderators for that forum.

--------------- Added 17 May 2013 at 00:58 ---------------

How to Moderate Blog Entries in Vbulletin 4
* Go to the main blog page
* Find the "Filter" menu on the bottom of the page. Click on "Moderated Blog Entries".
* Click the checkbox for the entries you like to approve
* Click on the Moderation menu to expand, click to select "Approve Blog Entry " or any other action you like.
* Click on the Proceed button.

I see... They are moderated via entries and comments not by the poster. Makes sense.

Last edited by tbworld; 17 May 2013 at 00:59.
Reply With Quote
  #14  
Old 17 May 2013, 01:06
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Yes. It seems to be global - all or nothing. Very restrictive.
Reply With Quote
  #15  
Old 17 May 2013, 01:16
tbworld tbworld is offline
 
Join Date: Oct 2008
Okay, I have a few more things to research, but here are the choices:

I am just making these Up:

CanAdminViewPrivateBlog (No, Always, Yes-if-member)
CanSuperModViewPrivateBlog (No, Always, Yes-if-member)
CanModeratorViewPrivateBlog (This may already exist, haven't test).

It seems to me, I would add the condition "If they are a blog member or contact" they can view the blog.

So something like this:
vB::$vbulletin->bf_misc_vbblogoptions['private'] AND is_member_of_blog


Areas that will require testing:
Moderation Blog Entry
Moderation Blog Comment
Taggable Content
Recent Blog Posts
Recent Blog Commenjts
Activity Stream
CMS Widget Recent Blog Posts
CMS Widget Recent Blog Comments.
Blog Subscription
Blog Usercp

Ahh we are beginning to see why they did not want to mess with it.

Last edited by tbworld; 17 May 2013 at 01:40.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:11.

Layout Options | Width: Wide Color: