Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 63,251 through 63,275 (of 69,044 total)
  • Author
    Search Results
  • #50594

    In reply to: External Blogs

    peterverkooijen
    Participant

    Was this functionality now part of the roadmap for Buddypress? Did Andy or other Buddypress developers get Nicola Greco’s code?

    I’ll bring this up on the WPMU forum as well.

    #50593
    peterverkooijen
    Participant

    The default templates have body_class() in the body tag. The function body_class() is in post-template.php in the wp-includes folder:

    function body_class( $class = '' ) {
    // Separates classes with a single space, collates classes for body element
    echo 'class="' . join( ' ', get_body_class( $class ) ) . '"';
    }

    Function get_body_class() is in the same file:

    /**
    * Retrieve the classes for the body element as an array.
    *
    * @since 2.8.0
    *
    * @param string|array $class One or more classes to add to the class list.
    * @return array Array of classes.
    */
    function get_body_class( $class = '' ) {
    global $wp_query, $wpdb, $current_user;

    $classes = array();

    if ( 'rtl' == get_bloginfo('text_direction') )
    $classes[] = 'rtl';

    if ( is_front_page() )
    $classes[] = 'home';
    if ( is_home() )
    $classes[] = 'blog';
    if ( is_archive() )
    $classes[] = 'archive';
    if ( is_date() )
    $classes[] = 'date';
    if ( is_search() )
    $classes[] = 'search';
    if ( is_paged() )
    $classes[] = 'paged';
    if ( is_attachment() )
    $classes[] = 'attachment';
    if ( is_404() )
    $classes[] = 'error404';

    if ( is_single() ) {
    $wp_query->post = $wp_query->posts[0];
    setup_postdata($wp_query->post);

    $postID = $wp_query->post->ID;
    $classes[] = 'single postid-' . $postID;

    if ( is_attachment() ) {
    $mime_type = get_post_mime_type();
    $mime_prefix = array( 'application/', 'image/', 'text/', 'audio/', 'video/', 'music/' );
    $classes[] = 'attachmentid-' . $postID;
    $classes[] = 'attachment-' . str_replace($mime_prefix, '', $mime_type);
    }
    } elseif ( is_archive() ) {
    if ( is_author() ) {
    $author = $wp_query->get_queried_object();
    $classes[] = 'author';
    $classes[] = 'author-' . sanitize_html_class($author->user_nicename , $author->user_id);
    } elseif ( is_category() ) {
    $cat = $wp_query->get_queried_object();
    $classes[] = 'category';
    $classes[] = 'category-' . sanitize_html_class($cat->slug, $cat->cat_ID);
    } elseif ( is_tag() ) {
    $tags = $wp_query->get_queried_object();
    $classes[] = 'tag';
    $classes[] = 'tag-' . sanitize_html_class($tags->slug, $tags->term_id);
    }
    } elseif ( is_page() ) {
    $classes[] = 'page';

    $wp_query->post = $wp_query->posts[0];
    setup_postdata($wp_query->post);

    $pageID = $wp_query->post->ID;

    $classes[] = 'page-id-' . $pageID;

    if ( $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'page' LIMIT 1", $pageID) ) )
    $classes[] = 'page-parent';

    if ( $wp_query->post->post_parent ) {
    $classes[] = 'page-child';
    $classes[] = 'parent-pageid-' . $wp_query->post->post_parent;
    }
    if ( is_page_template() ) {
    $classes[] = 'page-template';
    $classes[] = 'page-template-' . str_replace( '.php', '-php', get_post_meta( $pageID, '_wp_page_template', true ) );
    }
    } elseif ( is_search() ) {
    if ( !empty($wp_query->posts) )
    $classes[] = 'search-results';
    else
    $classes[] = 'search-no-results';
    }

    if ( is_user_logged_in() )
    $classes[] = 'logged-in';

    $page = $wp_query->get('page');

    if ( !$page || $page < 2)
    $page = $wp_query->get('paged');

    if ( $page && $page > 1 ) {
    $classes[] = 'paged-' . $page;

    if ( is_single() )
    $classes[] = 'single-paged-' . $page;
    elseif ( is_page() )
    $classes[] = 'page-paged-' . $page;
    elseif ( is_category() )
    $classes[] = 'category-paged-' . $page;
    elseif ( is_tag() )
    $classes[] = 'tag-paged-' . $page;
    elseif ( is_date() )
    $classes[] = 'date-paged-' . $page;
    elseif ( is_author() )
    $classes[] = 'author-paged-' . $page;
    elseif ( is_search() )
    $classes[] = 'search-paged-' . $page;
    }

    if ( !empty($class) ) {
    if ( !is_array( $class ) )
    $class = preg_split('#s+#', $class);
    $classes = array_merge($classes, $class);
    }

    return apply_filters('body_class', $classes, $class);
    }

    So I guess I could just add this to the code:

    if ( bp_is_page( BP_MEMBERS_SLUG ) )
    $classes[] = 'members';

    Etc.

    Should I copy this function to functions.php in the template, perhaps rename it, and add the lines for ‘members’ and ‘groups’ etc.?

    Or should I aim for a shorter function that only adds something to what this code generates? Would that be possible?

    Trying the blunt approach first…

    Edit: I’ve tried with that BP_MEMBERS_SLUG line added directly to post-template.php, with $bp in global, but nothing shows up in the body tag. :-(

    What am I missing? Is Buddypress bypassing post-template.php anyway? The only class is “directory”.

    plrk
    Participant

    you can put your changes in a custom.css file in the theme (the same folder as the style.css) file. that way your changes will not be lost when you upgrade the themes.

    note that there are two theme folders, one for the home theme and one for the member theme.

    dakoo
    Participant

    that is because i have a very complex interface, where i want to display thumbnails for every post. 20 of them in rows of two etc… So i am not sure if i can change the properties of widgets to accommodate all this…

    Can u confirm ?

    academatic
    Participant

    wp-content>themes>bphome theme>style.css

    plrk
    Participant

    Why not use the widget?

    #50579
    welshpixie
    Participant

    Update –

    It appears that this is a problem for any user who created their blog as ‘hidden’ and now want to change it to ‘public’ post-buddypress-install.

    Their blog appears on the sitewide blog list, appears on the sitewide activity when they make a post, appears under their ‘recent posts’ tab from the profile as well as any comments on their blog under the ‘recent comments’ tab, but clicking ‘blog’ on their member profile still says ‘This user hasn’t created any public blogs yet’.

    Help! Argh! >.<

    #50577
    magznetwork
    Participant

    I use BP 1.03 with WPMU 2.82.

    I found GroupBlog plugin here and need to test it first.

    https://buddypress.org/forums/topic/new-groupblog-plugin#post-19308

    #50575
    Paul Wong-Gibbs
    Keymaster

    marking this as resolved

    #50573

    In reply to: default theme colors

    plrk
    Participant

    buddypress uses two themes – the home theme, which you have edited, and the member theme, which you can find in /wp-content/bp-themes/bpmember/.

    #50571
    Andy Peatling
    Keymaster

    This is a bug in WPMU with deactivation, it’ll be fixed in the next release.

    #50570
    arezki
    Participant

    Thanks folks. Glad to hear I did not miss that one.

    #50569
    ajonesma
    Participant

    I just uploaded the plugin and followed all the installation instructions and when I go to the events pages in my buddypress install it comes with a “Error Permission denied page” I have deleted and reinstalled this plugin a couple times, is there something else I should be doing?

    #50564
    plrk
    Participant

    Naming the buddypress.org dashboard “Dashboard” was perhaps a mistake…

    #50561
    Paul Wong-Gibbs
    Keymaster

    There isn’t. The Dashboard on this site is a custom page, and is nothing to do with the WordPress admin backend.

    #50560
    Tracedef
    Participant

    I’ve deleted all plugins (even those in the normal plugins folder) to no avail… I had to previously delete a bp add on plugin (name escaping me right now) because it was causing a white screen and it too was unable to be deactivated… so maybe even though it’s gone, it’s having some part in the issue….

    #50540

    In reply to: BuddyBar for bbPress

    dcservices
    Participant

    WPMU 2.8.2

    Buddypress 1.0.3

    bbPress 1.0.2

    That is the only problem, white screen in bbpress admin.

    #50525
    Rohan Kapoor
    Participant

    Well we know that within the next 6 months, mu and wordpress will eventually combine. At that point, it would be safe to bet that buddypress will work with both the multi-user as well as the single user (both will be the same)

    #50524

    In reply to: BuddyBar for bbPress

    Rohan Kapoor
    Participant

    List version numbers of buddypress, wordpress mu, and bbpress.

    #50522
    Rohan Kapoor
    Participant

    If your database is messed up now, just drop all of the tables that go wp_bp_

    The wp_ is your prefix from your bb-config.php and the bp_ is the prefix from the buddypress. just drop all tables with the wp_bp_ and you should be fine to reinstall.

    #50520

    In reply to: About blog domains

    Andrea Rennick
    Participant

    It’s more a question can those plugins handle BuddyPress. Some of them will show the same BuddyPress on each Site, some you’ll be able to have a different Buddypress on each Site.

    You will have to TRY IT.

    #50519
    wordpressfan
    Participant

    Thanks for the information. I tried uninstalling the buddypress plugin (even physically deleting the file), but its remnants remain. I’d hate to delete my entire wpmu installation just to deactivate one plugin. I understand buddypress 1.1 is expected in late august with improved forum integration. I’ll wait until then.

    #50518
    plrk
    Participant

    “bumping” will not help you. It is only annoying. If noone replies, it is because noone reading the forums knows the answer. (I’m reading this after having been away – I would have done so even without your “bump”.) Please do not do it again – anywhere on the internet.

    I have no idea why the component returns to it’s “disabled” state, try re-installing – either just it or the entire setup.

    A “forum” tab will never appear on your BuddyPress site, unless you apply specific code. You can put something like this in a file called bp-custom.php in your wp-content/plugins folder:

    function add_forum_to_main_menu() {
    ?><li><a href="http://example.org/forum/" title="Forum">Forum</a></li><?php
    }
    add_action( 'bp_nav_items', 'add_forum_to_main_menu' );

    #50511
    Jeff Sayre
    Participant

    but when I click on any member or go to the members page, the template for members doesn’t load.

    Elisheva-

    Welcome to the BuddyPress forums!

    When I went to your site and clicked on the “Members” button, it did bring up a members’ theme. However, it seems like you have selected the “Skeleton BuddyPress Member Theme” and not the “BuddyPress Default Member Theme”.

    Please go back into the admin panle to “Buddypress > General Settings”, select “BuddyPress Default Member Theme” and then make sure to hit the “Save Settings” button at the bottom.

    If the default member theme is already selected, deselect it by selecting a different theme, hit the “Save Settings” button, and then reselect the “BuddyPress Default Member Theme” once again and hit the “Save Settings” button one more time.

    Does that fix the issue?

    #50509
    Jeff Sayre
    Participant
Viewing 25 results - 63,251 through 63,275 (of 69,044 total)
Skip to toolbar