3 of 3
3
Extension: Restrict Entries (to Member Groups or Guests)
Posted: 13 March 2008 11:29 AM   [ Ignore ]   [ # 37 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi,

Sorry for the delayed reply. It’s great that you are finding this useful. Rest assured that we haven’t forgotten about this and we are working on a much improved version based upon Mark’s request especially but including others as well. We have to do this around other work but we’ll get something out as soon as we can.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 13 March 2008 11:37 AM   [ Ignore ]   [ # 38 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6579
Joined  04-15-2006

Hi Dry,

Wow my name is getting mentioned a lot in this thread! wink I do hope I haven’t caused any extra work for you? If I have I’m sorry.

Looking forward to any updates on this though.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 13 March 2008 12:32 PM   [ Ignore ]   [ # 39 ]  
Lab Assistant
RankRank
Total Posts:  142
Joined  07-20-2006

What’s wrong with extra work?  wink

 Signature 

Web designer and EE Pro Network member

Profile
 
 
Posted: 13 March 2008 12:38 PM   [ Ignore ]   [ # 40 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6579
Joined  04-15-2006

Well when it’s non-paid work. wink

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 11 April 2008 06:29 AM   [ Ignore ]   [ # 41 ]  
Summer Student
Total Posts:  23
Joined  01-02-2007

I am using the extension on a site which also uses Category Checkboxes (v.1.1.3). thread here
Strangely, whenever the latter is enabled, I get the following new element under “options” tab (both edit and publish, only for weblogs enabled under RE settings)

Choose the weblog that you wish to restrict entries in.
[dropdown containing weblogs]

The dropdown updates to select the appropriate weblog, from the list of weblogs chosen.

Any idea why this may be happening?

Profile
 
 
Posted: 11 April 2008 08:39 AM   [ Ignore ]   [ # 42 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

I don’t use Category Checkboxes but I’ll install it and have a look at what has happened.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 10 May 2008 06:13 PM   [ Ignore ]   [ # 43 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  02-26-2004

Wow, what a sweet extension. Nice work! The interface is great.

Hmm. Is there any chance this can work with

- SAEF (stand-alone entry forms?)
- Form Helper (the edit module for SAEF, produced by Solspace?)

So that (either in hidden fields or ones a user has access to) viewing permissions could be added?

Cheers

R o B

Profile
 
 
Posted: 22 May 2008 03:19 AM   [ Ignore ]   [ # 44 ]  
Summer Student
Total Posts:  23
Joined  01-02-2007

Something to be aware of for the plugin - the field that stores group restrictions is varchar(100). Ran into an error when I tried to set restriction for more than 7 groups: “Notice: unserialize() [function.unserialize]: Error at offset 96” - the field truncated serialized permission groups.

On client site, we have 21 user groups! Updated field to “text” type (even varchar(255) would have been too short), all works ok.

Profile
 
 
Posted: 03 July 2008 03:08 AM   [ Ignore ]   [ # 45 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  231
Joined  07-09-2006

Hi Dry,
In January I was very enthusiastic about your extensions (and I still am) but as it wasn’t working with MSM I still couln’t use it. I was wondering whether you have been able to do some fixing in the mean time to make this extension MSN-proof.
Let me know!
Thanks

Erwin

 Signature 

Erwin van Lun
Marketeer on a Mission

Profile
 
 
Posted: 03 July 2008 10:19 AM   [ Ignore ]   [ # 46 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi Erwin (and everybody else),

My apologies but we’ve had no time to update the extension. It is still on my todo list though I think that it will have to wait until EE2.0 appears before doing it. Some of the requested changes are significant and I’d want to make it available for both the 2.0 and the 1.6 branches without much reworking.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 04 July 2008 05:11 AM   [ Ignore ]   [ # 47 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  347
Joined  04-23-2008

Sounds like a sweet plugin. Especially for the lazy types such as myself looking to broadcast something to editors and moderators on my sites. smile

Looking forward to it. As others have said, I don’t mind paying for this extension to push some of those features out. While I hope not all add-on’s go the way of commercial, I do believe many are validated in charging a price for their services. Since I’m a bit less knowledgeable on PHP development, I feed on crap like this.

Good job man.. Looking forward to MSM and Mark’s request in regards to selecting groups that can view it rather than not. Of course, the varchar(100) sounds like an issue as well.

D.

 Signature 

Danny, your poor-man’s EE designer for hire/help.

Profile
 
 
Posted: 12 October 2008 11:13 AM   [ Ignore ]   [ # 48 ]  
Summer Student
Avatar
Total Posts:  26
Joined  02-10-2008

Drylouvre,

This sounds like a great extension.  Exactly what I am looking for.  Unfortunately I am using MSM.  downer  But I am really looking forward to the updated MSM compatible version!  I also wanted to throw my vote in with Mark Bowen and others for switching the check boxes around to be the groups included instead of the one’s that are excluded.

Just a thought on functionality… You could have a guest box be automatically checked so that the default for an entry is publicly viewable.  Then, users could uncheck that box and select specific groups based on what level of access they wanted… OR perhaps have a option in the weblog admin section to set the default access level for entries in that weblog…

Anyway great work!  I am looking forward to testing this out.  Maybe I’ll download it and play with it on one of my other sites that is not using MSM.

Michael

Profile
 
 
Posted: 14 November 2008 10:11 AM   [ Ignore ]   [ # 49 ]  
Summer Student
Total Posts:  25
Joined  08-29-2008

Very, very useful extension. Thanks a LOT!

I hope you don’t mind, but I also wanted the permissions to work the other way around (as per Mark’s request) and have come up with following tweak for those that are interested until you have time to make a full update.

Change at line 257 of ext.restrict_entries.php from

foreach($SESS->cache['restricted_member_group_data']->result AS $key)
        
{            
            
if ($key['entry_id'] == $row['entry_id'])
            
{
                $groups
= unserialize($key['member_groups']);
                
                foreach(
$groups AS $key => $value)
                
{
                    
if($SESS->userdata['group_id'] == $value)
                    
{
                        $tagdata
= '';
                        break;
                    
}
                }
            }
        }

to

foreach($SESS->cache['restricted_member_group_data']->result AS $key)
        
{            
            
if ($key['entry_id'] == $row['entry_id'])
            
{
                $groups
= unserialize($key['member_groups']);
                
$ok=FALSE;
                foreach(
$groups AS $key => $value)
                
{
                    
if($SESS->userdata['group_id'] == $value)
                    
{
                        $ok
=TRUE;
                        break;
                    
}
                }
                
if ($ok===FALSE && $SESS->userdata['group_id']!=1){
                    $tagdata
= '';
                
}
            }
        }

Also change line 12 of lang.restrict_entries.php from

"Select the groups that you wish to prevent from viewing this entry",


to

"Select the groups that you wish to allow to view this entry",

Super-Admins will always get to see everything.

Profile
 
 
Posted: 15 November 2008 05:54 AM   [ Ignore ]   [ # 50 ]  
Summer Student
Total Posts:  25
Joined  08-29-2008

Having trawled through the code the preview option and quick save lose the group settings because the group data needs to be retrieved from the groups post variable. Unfortunately it’s in an array and EE code wipes out POST arrays in a couple of places. I have a workaround for this.

However more problematic is that there is no hook in the right place to make quick save work. This is already the subject of a bug report here.

Profile
 
 
   
3 of 3
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme