Search Results for 'buddypress'
-
AuthorSearch Results
-
August 4, 2009 at 4:41 pm #50594
In reply to: External Blogs
peterverkooijen
ParticipantWas 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.
August 4, 2009 at 4:34 pm #50593In reply to: How to get a section identifier in the body tag?
peterverkooijen
ParticipantThe 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”.
August 4, 2009 at 1:24 pm #50587plrk
Participantyou 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.
August 4, 2009 at 12:31 pm #50585dakoo
Participantthat 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 ?
August 4, 2009 at 12:26 pm #50584academatic
Participantwp-content>themes>bphome theme>style.css
August 4, 2009 at 12:21 pm #50580plrk
ParticipantWhy not use the widget?
August 4, 2009 at 10:51 am #50579In reply to: Public blog not visible on site
welshpixie
ParticipantUpdate –
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! >.<
August 4, 2009 at 7:19 am #50577In reply to: Disable Create Group and Create Group Blog
magznetwork
ParticipantI 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
August 4, 2009 at 6:57 am #50575In reply to: Using buddypress Dashboard instead of WP's
Paul Wong-Gibbs
Keymastermarking this as resolved
August 4, 2009 at 5:10 am #50573In reply to: default theme colors
plrk
Participantbuddypress uses two themes – the home theme, which you have edited, and the member theme, which you can find in /wp-content/bp-themes/bpmember/.
August 4, 2009 at 2:17 am #50571Andy Peatling
KeymasterThis is a bug in WPMU with deactivation, it’ll be fixed in the next release.
August 3, 2009 at 11:31 pm #50570In reply to: Using buddypress Dashboard instead of WP's
arezki
ParticipantThanks folks. Glad to hear I did not miss that one.
August 3, 2009 at 10:25 pm #50569In reply to: Announcing: Events component
ajonesma
ParticipantI 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?
August 3, 2009 at 7:08 pm #50564In reply to: Using buddypress Dashboard instead of WP's
plrk
ParticipantNaming the buddypress.org dashboard “Dashboard” was perhaps a mistake…
August 3, 2009 at 6:19 pm #50561In reply to: Using buddypress Dashboard instead of WP's
Paul Wong-Gibbs
KeymasterThere isn’t. The Dashboard on this site is a custom page, and is nothing to do with the WordPress admin backend.
August 3, 2009 at 5:08 pm #50560Tracedef
ParticipantI’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….
August 3, 2009 at 12:39 am #50540In reply to: BuddyBar for bbPress
dcservices
ParticipantWPMU 2.8.2
Buddypress 1.0.3
bbPress 1.0.2
That is the only problem, white screen in bbpress admin.
August 2, 2009 at 6:18 pm #50525In reply to: BP based on WP not WPMU possible ?
Rohan Kapoor
ParticipantWell 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)
August 2, 2009 at 6:14 pm #50524In reply to: BuddyBar for bbPress
Rohan Kapoor
ParticipantList version numbers of buddypress, wordpress mu, and bbpress.
August 2, 2009 at 6:10 pm #50522In reply to: BBPress Component Keeps Deactivating
Rohan Kapoor
ParticipantIf 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.
August 2, 2009 at 5:32 pm #50520In reply to: About blog domains
Andrea Rennick
ParticipantIt’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.
August 2, 2009 at 5:13 pm #50519In reply to: BBPress Component Keeps Deactivating
wordpressfan
ParticipantThanks 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.
August 2, 2009 at 3:27 pm #50518In reply to: BBPress Component Keeps Deactivating
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' );August 2, 2009 at 2:19 pm #50511In reply to: problem with member pages
Jeff Sayre
Participantbut 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?
August 2, 2009 at 2:11 pm #50509In reply to: how to create group'slug when make new group
-
AuthorSearch Results