Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Members Only


Peter A. Gebhardt
Participant

@starship-trooper

Brad,

I’m confronted with a similar problem (on the ‘Post’ level): Beside visitors (lurkers), I need user categories like VIP or Paying (for content) too.

Where I was able to get an idea how to eventually handle it, was by looking at _ck_’s bb_attachments.php

Put this into capabilities.php just behind the memberblock:

'visitor' => array(
'name' => __('Visitor'),
'capabilities' => array(
'participate' => false,
'read' => true
)),

Then changing her (shipping) setup code in bb_attachments.php to this here:

$bb_attachments['role']['see']="participate";        // minimum role to see list of attachments = read/participate/moderate/administrate
$bb_attachments['role']['inline']="participate"; // add PAID ! minimum role to view inline reduced images = read/participate/moderate/administrate
$bb_attachments['role']['download']="participate"; // add PAID ! minimum role to download original = read/participate/moderate/administrate
$bb_attachments['role']['upload']="moderate"; // minimum role to upload = participate/moderate/administrate (times out with post edit time)
$bb_attachments['role']['delete']="moderate"; // minimum role to delete = read/participate/moderate/administrate

I was able to exclude the ‘Visitor’ from even seeing that there are attachments to a certain post.

Hope that helps.

Skip to toolbar