Skip to:
Content
Pages
Categories
Search
Top
Bottom

New blog theme available for the Groupblog plugin

  • Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    It still needs little testing, but I’m really stoked to introduce some new cool features to the bp-groupblog plugin.

    First of all, I’ve added a wp-admin settings page where you can set the default theme for group blogs only! Also included are some bonus settings, such as deleting first comment, changing default category name, setting “Hello World!” to draft, etc. Thanks goes to Deanna Schneider for her great plugin, New Blog Defaults.

    The BEST yet is that the plugin now includes a theme which you could set as the default theme for groupblogs and mimics the group pages. So the change from group pages to groupblog pages is almost transparent. It is in the beginning phase of theme-ing, so please report any bugs or suggestions.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    Forgot to mention to read the readme.txt as installation has changed.

    Basicly move the ‘bp-groupblog’ theme folder from /bp-groupblog/themes/ to your /wp-content/themes/ directory. Allow the theme to be activated in your wordpress backend and set it as default theme in the admin groupblog settings.

    Anyway, thought I’d mention that for those who might need a bit more help.

    Avatar of Mark Schafer
    Mark
    Participant

    @markschafer

    When using the auto upgrade, the following error is given. The error states that the plugin could not be activated, but it is activated. Not sure yet if plugin is working properly. I did notice that I lost the small groupblog icon on the group menu. Both the error and loss of icon occurred with the bp-groupblog 1.2 and 1.2.2 versions.

    wpmu-2.8.4a, bp-1.1.1 php-5.2.5

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare bp_groupblog_setup_globals() (previously declared in /home/ttacconn/public_html/wp-content/plugins/bp-groupblog/bp-groupblog.php:40) in /home/ttacconn/public_html/wp-content/plugins/bp-groupblog/bp-groupblog.php on line 48

    Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    This error is harmless, I believe it has to do with wpmu auto update plugin and beyond the scope of the bp-groupblog plugin. Just make sure to deactivate the plugin before running automatic update and you will be fine.

    As far as the icon, if you are overriding the bp-groupblog stylesheet, please make sure you are referencing to “li a#group-blog” rather than “li a#nav-group-blog” as that is the change made since 1.0. Otherwise I can not reproduce the missing icon.

    Please keep in mind that auto-updating ONLY updates the files in the plugin folder and not the themes folder. So, if you have moved the groupblog folder and bp-groupblog theme folder, they are not updated. Which is good in a sense, since most likely you have changed these theme files and would not wish to override them.

    Avatar of reinergaer
    Reiner
    Participant

    @reinergaer

    that is a great plugin! Thanks.

    I was wondering if there is a way that only the admin could connect blogs to group blogs. In my bp-network users are allowed to open their own group but they are not allowed to start a new blog. But I would like to connect blogs to some groups (as an admin, not group admin). Any idea on this one?

    Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    Not at this time…I’m not sure yet if a feature like this is on the horizon. We do however plan for admin to change blogs on a group per group basis, as currently you can only set the blog once.

    When that is done we could possible include a disable user blog creation option, but it will be a while.

    Avatar of Bowe
    Bowe
    Participant

    @bowromir

    This is really cool! Thanks it really makes the blog function fit in with the rest of buddypress! super vet gedaan man ;)

    Avatar of Flynn
    flynn
    Participant

    @flynn

    On themes,

    Does the bp-groupblog have support for child themes? If so, can I copy my BP child theme, set it as a child theme for Group Blogs, and (hopefully) not have to re-theme bp-groupblog?

    The readme instructs custom bp-groupblog themes to be put into the BP child theme folder and modified. Is there a bit more specific info on that?

    Also, as I got a bit ahead of myself and posted in troubleshooting, is there a way to add a link to the group’s blog’s dashboard under the “Blog” link the group side bar? It seems the blog’s “My Sites” menu options only show up to contributes (default role of group members) after they have visited the group blog dashboard once. While not the end of the world, it might be confusing for less tech-savvy members.

    Thanks for all your hard work! This plugin is a major hit for our network

    ~ Aaron

    Avatar of Mariusooms
    Mariusooms
    Participant

    @mariusooms

    Does the bp-groupblog have support for child themes? If so, can I copy my BP child theme, set it as a child theme for Group Blogs, and (hopefully) not have to re-theme bp-groupblog?

    It has support for child themes, however in order for buddypress group related content to show you will need to set some function to pull in the group id. It should not be hard for you to adjust your bp child-theme. Just make a copy of it and do a quick study of the groupblog theme on how I pull in the group id belonging to the blog.

    The readme instructs custom bp-groupblog themes to be put into the BP child theme folder and modified. Is there a bit more specific info on that?

    If I understand you correctly, this has to to do with the theme pages that actually load inside the group component. Namely the two files blog.php and blog-latest.php. Both are loaded within the group context. Also both these files use the bp template plugin to make installing the plugin easier. However, if you wish to customize this, I encourage to move that folder to your active buddypress theme and adjust them as necessary.

    So, just to be clear, these two files are not related to the blog theme, but belong to the group and active buddypress theme.

    is there a way to add a link to the group’s blog’s dashboard under the “Blog” link the group side bar?

    Sure there is, something like this might work:

    <?php if ( bp_group_is_member() ) :?>

    <?php
    if ( get_groupblog_blog_id() ) {
    $blog_details = get_blog_details( get_groupblog_blog_id() );
    } else {
    global $current_blog;
    $blog_details = get_blog_details( $current_blog->blog_id );
    }
    ?>

    <a href="<?php echo bp_core_get_root_domain() . $blog_details->path ?>wp-admin"><?php _e('Dashboard', 'buddypress') ?></a>

    <?php endif; ?>

    This checks the member is part of the group. Then get the blog id and parse it in to get the blog details. Alternatively if we are on a blog page we pass in the current blog id. Now we can use that to fetch the blog path. So wether you are on a group page or a blog page the link should always point to the dashboard, but only show for members of the group.

    You can further enhance this code to pull in the user role and show post links depending on their role cap.

    Let me know if you need more help…I will do my best to help when I can.

    Looking at this code, we may actually create some more template functions to make constructing relevant blog links easier, but go ahead if you feel comfortable with juggling some code around.

    Avatar of abcde666
    abcde666
    Participant

    @erich73

    Hi Marius,

    Do you have a Demo-website online to test your plug-in ?

    Another thing: is there a chance to have something like the following, but not on a Group-Blog, but just a normal User-Blog ?

    http://apeatling.files.wordpress.com/2008/06/blog.jpg

    Many thanks,

    Avatar of Flynn
    flynn
    Participant

    @flynn

    Wow.

    Talk about timely and helpful responses, you’re a hero!

    Thank you for your detailed explanation. I’ve been working away at the theme, but i have another quick question: The code there, what file should I put it in? Having a bit of trouble tracking down where to stick it.

    Thanks for your help!

    ~ Aaron

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.