2 pilly Jul 23, 2008 12:24

Hi Pilly. I missed this one else I would have replied. Such is life eh?
What you seek is technically possible BUT has not been done to the best of my knowledge. So like "public blog list" has everything that is public, "same owners list" has stuff you own, but you seek a "is member of" bloglist. Cool idea.
hmmm... just thinking a bit, but that would mean a visitor who is not a member of any blog would have no bloglist to play with, or would you use both widgets. Would it be cool if the "all public blogs" bloglist had a way to highlight the fact that this is a blog you can post in? Like maybe with a style sheet thingie to bold it or something?
Anyway yeah it's possible but yeah it hasn't been done yet. Sorry :(
Hi,
thanks for replying.
im using this software as a private blog, so every user has to login and therefore got some sort of user rights.
ive been looking at the wiki but not comming up with much. Even if i use the sample widget in the wiki i cant get it to show up in the widget list.
I think you can set posting status to default to "protected" and use the permissions settings to disable bloggers from posting "published". This would mean that only bloggers who are members of a blog will see the posts.
Methinks that'll get you where you want to be?
1. in conf/_admin.php
$default_post_status = 'protected';
2. in conf/_basic_config.php (at top)
$login_required = true;
Ive already done this in order to make everything private etc. Just could do with a guiding hand to get this to work.
Posting "protected" will give you what you want. People will not be able to access content in a blog they are not a member of.
ok, i understand that, but how do i display only the blogs that they are allowed to view then?
Answering to your first post...
In the widget you specified edit this function
/**
* Display the widget!
*
* @param array MUST contain at least the basic display params
*/
function display( $params )
{
$this->init_display( $params );
$this->disp_coll_list( 'member' );
return true;
}
Then edit inc/widgets/model/_widget.class.php line 643
if( $filter == 'owner' )
{ // Load blogs of same owner
$blog_array = $BlogCache->load_owner_blogs( $Blog->owner_user_ID, 'ID' );
}
elseif( $filter == 'member' )
{ // Load blogs a user has permissions for
$blog_array = $BlogCache->load_user_blogs();
}
else
{ // Load all public blogs
$blog_array = $BlogCache->load_public( 'ID' );
}
Not tested ;)
awesome I'll test it now, i did have a problem getting the widget to display in the widget list. any ideas where they go?
i did have a problem getting the widget to display in the widget list. any ideas where they go?
I have no such problem, just install this widget like all other.
ive renamed the widget to _colls_list_member.widget.php and uploaded to the inc/widgets/widgets/ dir and the class file to its relevant directory, but when i click install i cannot see the widget to install?
You don't have to rename the widget. Just edit what I wrote, that's it.
[url=http://b2evo.astonishme.co.uk/control-your-bloglist]Control your bloglist[/url] ;)
¥
- And what if one is using the very nice "Sorted Public bloglist" ? In other words: What could I write (in the plugins/_sorted_bloglist.plugin.php ?) that would give the same very nice effect as:
PHP:
if( $filter == 'owner' )
{ // Load blogs of same owner
$blog_array = $BlogCache->load_owner_blogs( $Blog->owner_user_ID, 'ID' );
}
elseif( $filter == 'member' )
{ // Load blogs a user has permissions for
$blog_array = $BlogCache->load_user_blogs();
}
else
{ // Load all public blogs
$blog_array = $BlogCache->load_public( 'ID' );
}
- in inc/widgets/model/_widget.class.php line 643 for the "Public blog list" ?
In the current version of the Public Bloglist plugin the member part is implemented. So each user will only 'see' the blogs he is subscribed to. In the development version of the plugin I'm half way enabling 'Owner Blogs' as an option. I just didn't think one would be interested in that but I'll finish this part tonight.
Not again that disabling from view in the Sorted Public Bloglist does not hide blogs to the world.
Good luck
Sorted Bloglist plugin v0.9
Added option to merge 'Owner blogs'
Download site: https://sourceforge.net/project/showfiles.php?group_id=160495&package_id=282087
Thanks for answering me so patiently, even if the same question had already been asked (and answered) in other posts :-/
I installed the new version 0.9, but something must be wrong, since I keep getting the error message:
Fatal error: Call to undefined function: get_member_blogs() in ...plugins/sorted_bloglist_plugin/_sorted_bloglist.plugin.php on line 300
-when checking the "Show Member blogs" for showing "public blogs *plus* hidden blogs where a user is 'Member' of".
If you or somebody else can assure me that "_sorted bloglist.plugin.php" is working perfectly as it is, I'd appreciate a clue of what else could be wrong in my case ?
PS: When following the instructions for "Public blogs" above, everything seems to work perfectly
Ive found the widget, how can i ammend this code to show just the blogs that the member has the rights to?