Extension: Weblog Rights
Posted: 22 February 2010 09:10 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1135
Joined  02-02-2007

The attached add-on files may be out of date.  Please visit Devot-ee for the latest versions.

There is a quite popular feature request - to allow membership in multiple groups. One of the main reasons for such feature is the need to have more power in assigning weblogs to users.
For example, if you have 3 weblogs - A, B and C - and need to allow some users to post into A, some others - into B, yet some others into C, yet some others into A and B, yet some others into A and C etc., then for managing weblog permissions you need a lot of member groups. To be exact, if you have number N of weblogs, you may need

2<sup>N</sup> - 1

member groups.

To solve the problem of too many member groups I created Weblog Rights extension. It allows you to assign weblogs on per-member basis. So, for managing weblog permissions of the above example you will need only 1 member group.

Unfortunately, for this extension to work a hack is needed.

In /system/core/core.functions.php
around line: 1195 (inside function fetch_assigned_weblogs($all_sites = FALSE) )

find:

return array_values($allowed_blogs); 

Replace it with:

// -------------------------------------------
// 'assigned_weblogs_array' hook.
//  - Exclude/Include weblogs in the asigned weblogs array.
//
global $EXT
if (
$EXT->active_hook('assigned_weblogs_array') === TRUE)
{
 $allowed_blogs 
$EXT->call_extension('assigned_weblogs_array'$allowed_blogs);
}

return array_values($allowed_blogs); 
 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

Profile
 
 
Posted: 22 February 2010 10:44 AM   [ Ignore ]   [ # 1 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13725
Joined  04-15-2006

Wow, that’s a great extension you’ve created there. Hope that the guys do add in that hook for you as I know this one could really help out a lot of people.

Well done on this one mate.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 23 February 2010 02:55 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  461
Joined  12-20-2002

Congratulations on this one, you’re a treasure.

 Signature 

Who ain’t a slave? - Ishmael

Profile
 
 
Posted: 23 February 2010 08:03 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRank
Total Posts:  3262
Joined  05-13-2004

Very nice - also hoping that the hook gets added since I don’t like to hack the core files.

 Signature 

Recent version: EE 2.4.0 | 2.x Bug Tracker | How to Post a Support Request | Version Upgrade | 2.4.0 Change Log

on twitter @CS_sean

Profile
 
 
Posted: 01 March 2010 07:54 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1135
Joined  02-02-2007

Hi,

I released version 1.0.2 of Weblog Rights extension. In this release a couple of bugs were fixed - PHP errors being outputted in certain cases.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

Profile
 
 
Posted: 19 March 2010 10:40 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  276
Joined  01-06-2006

I’m assuming you still need the hack.

Profile
 
 
Posted: 20 March 2010 10:08 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  7
Joined  01-17-2010

Ok noob here. I installed the extension and updated the core code. Enabled the extension and now I do not know where to go to associate weblogs with members.

Can someone point me in the right direction?

Thanks,
- Eric

Profile
 
 
Posted: 20 March 2010 10:27 AM   [ Ignore ]   [ # 7 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1135
Joined  02-02-2007

Hi,

Go CP Home >  Admin >  Utilities >  Extensions Manager >  Weblog Rights extension settings.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

Profile
 
 
Posted: 06 May 2010 02:35 AM   [ Ignore ]   [ # 8 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1135
Joined  02-02-2007

Hi,

I released version 1.0.3 of Weblog Rights extension. In this release a bug was fixed - ugly styling of weblog rights info in Control Panel’s View Members page.

 Signature 

Full list of add-ons here

Child Categories
Browser Sniff
Category Id
Entries Number

Profile