https://buddypress.org/
Learn Buddypress
https://premium.wpmudev.org/blog/buddypress-guide/
PLUGINS::
Search WordPress.org for “BuddyPress” to find them all!
Help out? – always interested in how this stuff works
If you’re interested in contributing to BuddyPress, we’d love to have you. Head over to the BuddyPress Documentation site to find out how you can pitch in.
Have you ever been frustrated with forum or bulletin board software that was slow, bloated, and always got your server hacked? bbPress is focused on ease of integration, ease of use, web standards, and speed.
We’re keeping things as small and light as possible while still allowing for great add-on features through WordPress’s extensive plugin system. What does all that mean? bbPress is lean, mean, and ready to take on any job you throw at it.
Philosophy
Now that bbPress is all grown up, we’re certain of a few things:
Open Source, always and forever
Less (code) is more
Code is poetry
Simplicity is a feature
Speed & security are paramount to a great user experience
Every line of code is written with these principles in mind, and if that sounds good to you get involved!
To help work on BuddyPress, check out the most recent revision from our Subversion repository.
svn co https://buddypress.svn.wordpress.org/trunk/
We have a Trac environment for reporting bugs, browsing code, and other developer-centric fun.
Check out our contribution guide for more information.
You can also download our latest nightly version directly:
https://buddypress.trac.wordpress.org/browser/trunk/
(Click on the “ZIP Archive” link located at the bottom of the page)
ENQUE FILE TRICKS
[code language=”css”]
WordPress Community tricks
Wordpress Community
The following WordPress tips tricks and tweaks are useful for multi-author/community-powered website.
39. Create custom user roles
WordPress provides the following user roles by default- administrator, editor, author, contributor and subscriber. However, at times, you may need to assign some customized user roles.
For example, if you want to provide an option to edit the pages only to a new user, here’s how to do it:
Add the following lines to the functions file. You can change the various functionality availability by setting the appropriate setting to true or false.
// Add a custom user role
$result = add_role( ‘new’, __(
‘New’ ),
array(
‘read’ => true, // true allows this capability
‘edit_posts’ => false, // Allows user to edit their own posts
‘edit_pages’ => true, // Allows user to edit pages
‘edit_others_posts’ => false, // Allows user to edit others posts not just their own
‘create_posts’ => false, // Allows user to create new posts
‘manage_categories’ => false, // Allows user to manage post categories
‘publish_posts’ => false, // Allows the user to publish, otherwise posts stays in draft mode
‘edit_themes’ => false, // false denies this capability. User can’t edit your theme
‘install_plugins’ => false, // User cant add new plugins
‘update_plugin’ => false, // User can’t update any plugins
‘update_core’ => false // user cant perform core updates
)
);
40. Disable admin bar except for admin
Often for membership/community site, the WordPress admin bar would not be customized for the end users. In such cases, you may want to disable admin bar access to other users except admin.
Add the following snippet to the functions file to disable access to non-administrator users.
add_action(‘after_setup_theme’, ‘remove_admin_bar’);
function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}
41. Disable admin bar access to all users
If you want to disable access to admin bar for all the users including the administrator, add the following to the functions file.
show_admin_bar(false);
42. Automatically add new users to BuddyPress group
This trick is for the BuddyPress plugin, which is the most popular niche social network plugin for WordPress. By this tweak, you can automatically add all the newly joined BuddyPress members to a specific group.
function automatic_group_membership( $user_id ) {
if( !$user_id ) return false;
groups_accept_invite( $user_id, <# group ID #> );
}
add_action( ‘bp_core_activated_user’, ‘automatic_group_membership’ );
43. Add author bio wherever you want
Simply add the following lines to the single.php file to show author bio in your preferred location.
<div id="author-bio">
<h3>About <?php the_author(); ?></h3>
<?php echo get_avatar( get_the_author_email(), ’70’ ); ?>
<?php the_author_description(); ?>
</div>
In addition, add the following code to the CSS file to make the author bio look better
#author-bio { border-top: 1px dotted #cccccc; padding: 15px 0; }
#author-bio h3 { font-size: 16px; margin: 0 0 5px 0; }
#author-bio img { float: left; padding: 2px; border: 1px solid #cccccc; margin: 5px 15px 0 0; }
44. Replace "Howdy" message from the dashboard
howdy
Sometimes you may want to change the “Howdy” message from your WordPress dashboard and customize it according to your wish. Add the following code to the functions file.
function replace_howdy( $wp_admin_bar ) {
$my_account=$wp_admin_bar->get_node(‘my-account’);
$newtitle = str_replace( ‘Howdy,’, ‘Logged in as’, $my_account->title );
$wp_admin_bar->add_node( array(
‘id’ => ‘my-account’,
‘title’ => $newtitle,
) );
}
add_filter( ‘admin_bar_menu’, ‘replace_howdy’,25 );
All that you needed is to insert the new message as the 2nd element within the $newtitle array, and you’re done. As usual for such WordPress tricks, change the value of the text to whatever you want to display!
[/code]