Skip to:
Content
Pages
Categories
Search
Top
Bottom

New Groupblog Plugin


  • Mariusooms
    Participant

    @mariusooms

    My and my collegue needed to extend the group functionality using the wpmu blogs. They needed to integrate closer.

    We created a ”Groupblog” plugin which adds an extra form to the Group Admin Settings page. There the admin has a check box to enable the group blog followed by a drop down to select which group to associate with the group.

    Various templates can be implemented, currently we have two. One displays the latest blog posts on the Group home page along side the wire and forum activity. The second one is a template that links from a new menu item in the optionsbar named ’Blog’.

    Each template uses basic wp template tags within the wp post loop to contruct whatever output from your blog you’d like to show on your group.

    It is a basic concept on which could be build on extensively. Also since it is our very first plugin, the code could potentially be better. We followed the skeleton component guidelines and it seems to work fine at the moment.

    Future things we’d like to implement is blog registration along side the group creation. Much like how the user signup offers to sign up a blog. This could be useful especially when disabling user blog and only allow groups to have blogs. Or when you only allow one blog per user at signup.

    Is there any need for this functionality from the BP community? And if so, please realize it is early stage and could use help from more veteran developers to optimize and enhance the code.

Viewing 25 replies - 51 through 75 (of 83 total)

  • Mariusooms
    Participant

    @mariusooms

    – is it possible with BP to disable the “Wire” ?

    Yes…this can be disabled per group at the group creators discretion.

    – is it possible to use P2-theme in your “Group-blog” ?

    I don’t know, I have not use the P2 theme yet, but I imagine it should be no problem.

    – are there any language-related wording in your plugin (at the user-interface) which need to be translated when I would like to run your plugin for a german-language-website ?

    Yes, a language file is included which you may translate using the wordpress guidelines.


    abcde666
    Participant

    @erich73

    Hi Marius,

    so how does the dashboard for users look like for the Group-Blog ? Does the user still have access to his own dashboard or is it possible to disable this ?

    I guess by using P2-theme, there is no need for the complicated user-dashboard anymore ?

    Many thanks,

    Erich


    Mariusooms
    Participant

    @mariusooms

    At that point, they are just members of blogs, so yes, they have access to the dashboard with options according to their blog role. Asfaik, P2 is not meant to be the only post option as it meant for quick posting and only text. So it would greatly limit things by having that as the only post option.

    For your situation I would not use the groupblog plugin, but stay with either wire or discussion forum. Also, to answer your other question, bp-groupblog does not work wihtout buddypress.

    To Mariusooms

    I’d just like to said thank you very much for the great job with this plugin. That was exactly what I need… I was considering my chances to write something similar myself when found your plugin. That was great help. Thank you :)


    Mariusooms
    Participant

    @mariusooms

    No problem ;)


    abcde666
    Participant

    @erich73

    Hi Marius,

    will new Blogs be shown up within “Site Wide Activity – Blogs” ?

    Many thanks,

    Erich


    Mariusooms
    Participant

    @mariusooms

    Yes, everything behaves like it normally would.


    Mariusooms
    Participant

    @mariusooms

    Hi everybody, we are now up to version 1.1.6. I know we went through a lot of little updates in the last week, but I think finally it should settle now as all the features we wanted are incorporated and everything seems to run smooth. If you find some bugs we forgot to squash, let me know.

    Also, feature request or good ideas are always welcome, but don’t expect it to make popcorn.

    PS. Browny points for those who can find the hidden easter egg that references a popular (best ever made) tv-series!


    abcde666
    Participant

    @erich73

    your plug-in works fine !

    Would be nice to see a feature, that users do not have to visit the Dashboard, but being able to post via the theme.

    Also, the possibility to disable the Dashboard at all would be great (for many people, using the Dashboard is just too complicated….).

    Many thanks,

    Erich


    Mariusooms
    Participant

    @mariusooms

    Posting from the theme we will look into, but will most likely need help (need to be installed) from additional plugins like TDO Forms.

    Plugins that support hide/disable the dashboard already exist (I’m pretty sure) and will not be implemented in this plugin as it seriously cripples your blog abilities.


    bpisimone
    Participant

    @bpisimone

    One big question Marius. How can I make the groupblogs not use the plugin-template? I can’t use the sidebar like this and I should be able to move a few things to the sidebar!

    Thanks for your suggestions..!


    Mariusooms
    Participant

    @mariusooms

    I actually don’t use the plugin-template myself either :) , but it is easier for people to install and upgrade though wp-admin, since you don’t have to move theme files around.

    I don’t have the opportunity to show how now, but will post later today when I get a chance.


    Mariusooms
    Participant

    @mariusooms

    Also feel free to create new topics for suggestions or issues in the appropriate forum, since this thread is getting less and less specific.


    Mariusooms
    Participant

    @mariusooms

    As promised…for now it means changing the code inside the plugin as follows:

    * Find this function groupblog_screen_blog() in bp-events.php (somewhere towards the bottom)

    * Uncomment that whole function.

    * Replace it with the following function:

    function groupblog_screen_blog() {
    global $bp;

    if ( $bp->current_component == $bp->groups->slug && 'blog' == $bp->current_action ) {

    bp_core_load_template( apply_filters( 'groupblog_screen_blog', 'groupblog/blog' ) );
    }
    }
    add_action( 'wp', 'groupblog_screen_blog', 4 );

    * Create a folder in your active theme directory named ‘groupblog’.

    * Then create your template file (in this case ‘blog.php’) in the groupblog folder.

    Send me a message if you run into problems :)

    The basic difference is that in this function we use bp_core_load_template to load our template file and fire an add_action to register this function.


    bpisimone
    Participant

    @bpisimone

    Thanks Marius, I’ve seen it just now, going to give it a try right now. Perfect! And thanks for this great addition, just what’s been missing.


    still giving
    Participant

    @nonegiven

    What am I missing? See other post here;

    https://buddypress.org/forums/topic.php?id=5451

    When I go to create a blog, I get this on step 3. It creates the blog but happens every time. Not good for user confidence.

    Thanks,

    Warning: Invalid argument supplied for foreach() in/public_html/wp-content/plugins/bp-groupblog/bp-groupblog-admin.php on line 37

    Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/plugins/bp-groupblog/bp-groupblog-admin.php:37) in/public_html/wp-content/plugins/buddypress/bp-groups.php on line 507

    Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/plugins/bp-groupblog/bp-groupblog-admin.php:37) in /public_html/wp-content/plugins/buddypress/bp-groups.php on line 508

    Warning: Cannot modify header information - headers already sent by (output started at /public_html/wp-content/plugins/bp-groupblog/bp-groupblog-admin.php:37) in /public_html/wp-includes/pluggable.php on line 865


    still giving
    Participant

    @nonegiven

    To make things worse … when I go to:

    http://example.com/members/admin/blogs/recent-posts/

    I am confronted by a list of invisible posts … no titles, no content … all it has is:

    “in Uncategorized by”

    9 times, or whatever.

    even though NO SUCH POSTS exist in the Admin > Posts section.

    I pointed out that when you disable this plugin it does not disable any blogs created by it.

    How do I get rid of these? How much else has been left behind in the database?

    I have disabled the plugin, deleted the blogs it half made, deleted the test posts … yet still these remain.

    Thanks.


    Mariusooms
    Participant

    @mariusooms

    That url structure you post is completely foreign to me….how the heck do you get there? Can you post the real domain name so we can visit your site and test?

    To undo what the plugin HALF created, just go to the wp-admin screen with the siteadmin and delete the blogs responsible. That’s all there is to it, for other problems the plugin is simply not responsible as it has nothing to do with it. Don’t give it to much credit to bp-groupblog for creating all these weird errors.


    still giving
    Participant

    @nonegiven

    Try adding it to your own site and see …

    ‘admin’ is the name of the admin user so, e.g. …

    http://yoursite.com/members/yourname/blogs/recent-posts/

    I got there via …

    BP Homepage > pick a your member name > under “ME” column > Blogs > under “MY BLOGS” column > “Recent posts”


    Boone Gorges
    Keymaster

    @boonebgorges

    Mariusooms – great plugin! Really fills a need for my community.

    I wanted the “Blog” link on the group options bar to go to the regular blog theme, so I wrote a few small functions to redirect the ‘blog’ slug to the subdomain address. Written in about five minutes, but it seems to work fine for me:

    remove_action( 'wp', 'custom_bp_groupblog_setup_nav', 2 );
    remove_action( 'admin_menu', 'custom_bp_groupblog_setup_nav', 2 );

    function custom_bp_groupblog_setup_nav() {
    global $bp, $current_blog;

    if ( $bp->current_component == $bp->groups->slug && $bp->is_single_item ) {

    $bp->groups->current_group->is_group_visible_to_member = ( 'public' == $bp->groups->current_group->status || $is_member ) ? true : false;

    $group_link = $bp->root_domain . '/' . $bp->groups->slug . '/' . $bp->groups->current_group->slug . '/';

    if ( bp_groupblog_is_blog_enabled( $bp->groups->current_group->id ) )
    bp_core_new_subnav_item(
    array(
    'name' => __( 'Blog', 'groupblog' ),
    'slug' => 'blog',
    'parent_url' => $group_link,
    'parent_slug' => $bp->groups->slug,
    'screen_function' => 'custom_groupblog_screen_blog',
    'position' => 32,
    'item_css_id' => 'group-blog'
    )
    );
    }
    }
    add_action( 'wp', 'custom_bp_groupblog_setup_nav', 2 );
    add_action( 'admin_menu', 'custom_bp_groupblog_setup_nav', 2 );

    function custom_groupblog_screen_blog() {
    global $bp, $wp;

    $blog_details = get_blog_details( get_groupblog_blog_id(), true );

    if ( $bp->current_component == $bp->groups->slug && 'blog' == $bp->current_action ) {
    bp_core_redirect( $blog_details->siteurl );
    }
    }


    abcde666
    Participant

    @erich73

    Hi Marius,

    2 questions, please:

    – is the “Groups-Blogs plugin” compatible with the “to be released” version of BP 1.2 ?

    – do you have a website at which I can have a look at how “Group-Blogs” is working ?

    Many thanks,


    Mariusooms
    Participant

    @mariusooms

    @Boone Gorges, thanks for sharing that. I’m sure that could be helpful for many people. Personally I’m actually prefering to not have a group home page at all. Instead redirect the group home page to the blog home page which has the ability to pull in most if not all group related content. This way people can even set “themes” themselves for their groups.

    @Erich73, I don’t see why it should not be compatible with 1.2. All versions after 1.1 are build on that code, at least until bp 2.0, asfaik.

    I don’t currently have a website up and running to showcase, but would love to have one. I don’t have a domain available at the moment, and thusfar subdomains have not worked for me with Dreamhost. I now switched to HostGator, hopefully I will be able to do so with them. I’ll keep you posted as I have some other plugins I ported over as well.


    Xevo
    Participant

    @xevo

    You could use https://wordpress.org/extend/plugins/front-end-editor/ for inline editing. Haven’t tried it myself, but it looks pretty good.


    abcde666
    Participant

    @erich73

    Hi Marius,

    many thanks for your feedback !

    I am considering using your plug-in for my website.

    maybe this domain would be nice:

    bpgroupblog.com

    Thanks !


    Mark
    Participant

    @markschafer

    @mariusooms, I like the idea of using the blog home page as home for the group. Can you document what code needs to be changed to make this happen so this redirect only occurs when a group has a ‘groupblog’? I look forward to a ‘showcase’ blog home page set up as a group home as I’d like to see how you pull in the group related content. Thanks for your contributions to BP.

Viewing 25 replies - 51 through 75 (of 83 total)
  • The topic ‘New Groupblog Plugin’ is closed to new replies.
Skip to toolbar