Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 87,076 through 87,100 (of 94,561 total)
  • Author
    Search Results
  • #50600

    In reply to: Update status

    Paul Wong-Gibbs
    Keymaster

    That’s a new feature coming in the next release of BuddyPress, which I believe to be coming in a couple of weeks.

    #6110
    3635616
    Inactive

    Hot to make “update status” in my buddypress site? (like testbp)

    #50597
    hatiro
    Participant

    I’m having the same issue as described above in that when I add pages to the blog that buddypress is active on they are being highlighted as member pages in the navigation bar, even though according to the is_page rules the member page should only highlight when the BP_MEMBER_SLUG is identified. For some reason all .com/######/ are being highlighted as member pages (well those that are not main blog, groups or blogs anyway :)…

    I will try and mess around with the bp_is_page vs is_page as r-a-y suggests. I also use dreamweaver for editing code but have never rewrite code on phph enabled so can’t see that as being the issue.

    #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?

    mumbler
    Member

    Hello-

    I would like to change the colors a bit on my Mumblepage. Where is the css or stylsheet location and how would I be able to do this without breaking it? I had done this before in the wordpress but cant see where in the buddypress.

    Many thanks again!

    -Mumbler

    #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! >.<

    dakoo
    Participant

    hi

    I am trying to make a theme for photoblog community…

    I want to display site-wide recent posts on the home.php

    How will i be able to do it without using the widgets ?

    Will the following code up into home.php in my theme folder help ?

    <?php $posts = bp_blogs_get_latest_posts( null, $instance['max_posts'] ) ?>
    <?php $counter = 0; ?>

    <?php if ( $posts ) : ?>
    <div class="item-options" id="recent-posts-options">
    <?php _e("Site Wide", 'buddypress') ?>
    </div>
    <ul id="recent-posts" class="item-list">
    <?php foreach ( $posts as $post ) : ?>
    <li>
    <div class="item-avatar">
    <a href="<?php echo bp_post_get_permalink( $post, $post->blog_id ) ?>" title="<?php echo apply_filters( 'the_title', $post->post_title ) ?>"><?php echo bp_core_get_avatar( $post->post_author, 1 ) ?></a>
    </div>
    <div class="item">
    <h4 class="item-title"><a href="<?php echo bp_post_get_permalink( $post, $post->blog_id ) ?>" title="<?php echo apply_filters( 'the_title', $post->post_title ) ?>"><?php echo apply_filters( 'the_title', $post->post_title ) ?></a></h4>
    <?php if ( !$counter ) : ?>
    <div class="item-content"><?php echo bp_create_excerpt($post->post_content) ?></div>
    <?php endif; ?>
    <div class="item-meta"><em><?php printf( __( 'by %s from the blog <a href="%s">%s</a>', 'buddypress' ), bp_core_get_userlink( $post->post_author ), get_blog_option( $post->blog_id, 'siteurl' ), get_blog_option( $post->blog_id, 'blogname' ) ) ?></em></div>
    </div>
    </li>
    <?php $counter++; ?>
    <?php endforeach; ?>
    </ul>
    <?php else: ?>
    <div class="widget-error">
    <?php _e('There are no recent blog posts, why not write one?', 'buddypress') ?>
    </div>
    <?php endif; ?>

    #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

    magznetwork
    Participant

    Dear All, newbie here…

    This time i help a social organization to build community website (voluntary project) and i think BuddyPress is a good choice.

    This is my first time to install BuddyPress. Thanks God, it runs smoothly. Great!

    My idea is creating different groups based on member category, for example, Regular Members, Board Members, Donor Members, etc…

    And i want to do these,,,

    – Only user with “Administrator” level can create a group.

    – All groups are private groups and i want to disable “Request Group Membership” feature.

    – I want to disable “create a blog” and i want to create a blog for every groups. I know that there is Group Wire feature this time but Wire is not enough for me…

    Can i do that with BuddyPress? Any Help on this would be really appreciated…

    #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/.

    #6101
    krakrbozz
    Participant

    I have followed by the book a fresh install of latest WPMU and the buddypress latest 1.0.3, moved the themes, with the right permissions, and still can’t see the themes under site admin.

    Thanks for all your help.

    http://krakr.com

    #6100
    paranormalknowledge
    Participant

    Hello,

    I am using the default theme of Buddypress and I recently customized the colors of bphome, just the bar on the top and the font color. I realize though that when I hit groups or blogs, or any other important page, the default colors show. What files do I have to edit to change the colors to what I have on bphome?

    #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…

    thebigk
    Participant

    I’m the site admin for a site that I’m running using Buddypress. In the notifications area in the top menu bar, I see following message –

    Two new requests

    for the group “”

    When I click on it, I’m directed to Group Listings page when I see all groups listed. Upon careful observation, I found out that the URL on this Group Listings page, after clicking on the above notification message is as follows –

    http://domain.com/groups//admin/membership-requests/

    Note the // between groups and admin in the URL.

    How do I rectify this? Please help.

    #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.

    arezki
    Participant

    I installed buddypress and the Dashboard points to the WP dashboard and not the same way I see it on buddypress.org. What’s the procedure to change that? thx

Viewing 25 results - 87,076 through 87,100 (of 94,561 total)
Skip to toolbar