1 of 3
1
Extension: Restrict Entries (to Member Groups or Guests)
Posted: 06 July 2007 04:44 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi,

This extension enables another tab in the Publish page (configurable by weblog) that allows you to restrict that entry to certain member groups including the Guest group (anonymous site visitors).

It was originally conceived as a more robust way of ‘sandboxing’ content rather than either creating separate templates or defining member group/status conditionals within the main templates.

In the extension settings you can define which weblogs will have the new tab on the Publish page. If you choose the ‘Select All’ radio button then all existing and new weblogs will have the new tab.

When you publish a new entry or edit one in a weblog that you have chosen in the settings a new tab will appear called Groups. This has checkboxes for all member groups except Super Admin, Banned and Pending. All groups selected will not see that entry even if its status is Open. Super Admins can always see any entry. The Guest group is the one to select if you wish to stop anonymous visitors from viewing that entry.

Once the extension is installed a new column is shown in the Edit tab. This is called Restricted and shows which entries have had some sort of restriction applied.

I think it will only work in versions 1.5.0 and up but I’d be grateful for feedback.

Updated to version 1.0.1

Download the latest version from my site

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 08 July 2007 08:03 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  281
Joined  12-09-2006

Sounds good. I’ll be trying this out

Profile
 
 
Posted: 08 July 2007 01:36 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
RankRank
Total Posts:  281
Joined  12-09-2006

Well this extension is awesome. However there is one really weird bug for me. The moment I activate it it stops Mark Huot’s Multi text extension from rendering it’s code. I just get output like this…

{track_list limit="30"} {/track_list}
No
.     Track     Samples     Length
{col_1}     {col_2}         {col_3}

If this could be fixed that would be awesome.

This is such a useful extension.

Profile
 
 
Posted: 08 July 2007 01:41 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi Textdriven,

Ah ok. I guess that I need to add a last call variable to it. My bad. I’ll have a look at that and update it.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 08 July 2007 02:08 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi,

Okay, I’ve updated the extension to version 1.0.1 and added the $EXT->last_call check to the functions. Hopefully this will fix the problem. Please download the update from the first post link.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 08 July 2007 02:19 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  281
Joined  12-09-2006

Excellent, works perfectly now. Thank you.

Btw, you might want to make the download link clearer in your first post (think people look for that before reading).

Profile
 
 
Posted: 08 July 2007 02:21 PM   [ Ignore ]   [ # 6 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Okay. I’ll do that. Thanks very much.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 08 July 2007 03:35 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  281
Joined  12-09-2006

One other thing. The “publish/update” button will set/change the groups that can view the entry but the “quick save” button doesn’t set or update these options.

Profile
 
 
Posted: 08 July 2007 03:43 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005
textdriven - 08 July 2007 03:35 PM

One other thing. The “publish/update” button will set/change the groups that can view the entry but the “quick save” button doesn’t set or update these options.

Hmm,

I’m not sure about this one. I’ll have to check out the available hooks. At the moment I am using the ‘submit_new_entry_absolute_end’ hook that is right before the redirect at the end of submission. There is another hook that might be in the right place but I need to go and check it.

I’ll get back to you about this, hopefully tomorrow.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 08 July 2007 09:49 PM   [ Ignore ]   [ # 9 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1726
Joined  03-26-2006

Oh my. I just quoted on a job and certain user groups only seeing certain posts was one of the things that I was racking my brain about. This might come in very handy. Thanks!

 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 09 July 2007 09:39 AM   [ Ignore ]   [ # 10 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Hi Dry,

Looks really good! Great idea and really well implemented, should come in really handy for sites in the future.

Really good work so thankyou.

Best wishes,

Mark

 Signature 

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

Profile
 
 
Posted: 09 July 2007 09:49 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi Mark,

Glad you like it.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 09 July 2007 11:47 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005
textdriven - 08 July 2007 03:35 PM

One other thing. The “publish/update” button will set/change the groups that can view the entry but the “quick save” button doesn’t set or update these options.

Hi Textdriven,

It doesn’t look like this is possible for new entries, at least not without hijacking the way EE inserts the entry data. But, if anyone has any light to shed on this I’d be interested to figure out a way to do it without compromising the checks that EE makes.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 17 July 2007 06:13 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  768
Joined  03-16-2002

This extension - when enabled - seems to break the tag submit extension for Solspace’ Tag 2.0 module (currently in beta). Tested V 1.01 and the Tag tab disappears when enabling ext.restrict_entries.php.

Profile
 
 
Posted: 17 July 2007 06:23 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Hi MS,

Thanks for the heads up. I don’t use the Tag module so I’ll have to download it and see why this might be happening.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 17 July 2007 06:35 AM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  768
Joined  03-16-2002

Dry, I have informed Solspace as well, as Tag 2.0 is a commercial addon and currently in beta.
Maybe, you can get in touch with them - I’m unable to tell which extension would need to be modified.

-Markus

Profile
 
 
Posted: 17 July 2007 06:39 AM   [ Ignore ]   [ # 16 ]  
Lab Assistant
RankRank
Total Posts:  284
Joined  06-20-2005

Markus, I will do that. Thanks again.

Cheers

Dry

 Signature 

   Purple Dogfish | Member of EE Pro Network

Profile
 
 
Posted: 17 July 2007 09:06 AM   [ Ignore ]   [ # 17 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

Dry, I’ll take it up with Mitchell. We might be able to get you an advance copy of Tag 2.0 so you can test.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 27 July 2007 02:48 PM   [ Ignore ]   [ # 18 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6543
Joined  04-15-2006

Hi Dry,

Using this extension is really really great but I was wondering how easy it would be to turn around the functionality so that instead of telling it which user groups can’t see an entry, instead you would tell it which can see the entry.

The only reason I ask is that if you had say 50 user groups (overkill I know) and you wanted to say only three of them could have access then you are going to have to do a lot of clicking for each entry!! :-D

Just wondering how easy it would be to change the extension to do that?

Thanks.

Mark

 Signature 

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

Profile
 
 
   
1 of 3
1
 
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
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64914 Total Logged-in Users: 16
Total Topics: 81869 Total Anonymous Users: 24
Total Replies: 440131 Total Guests: 165
Total Posts: 522000    
Members ( View Memberlist )
Newest Members:  smilepolitelyrvmcleodbjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkey