This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** Beginning of the code to copy in the functions.php of your active theme **/ | |
| function bastien_own_topic_delete() { | |
| if( bp_get_the_topic_is_mine() && ( !bp_is_item_admin() || !bp_is_item_mod() || !bp_current_user_can( 'bp_moderate' ) ) ) { | |
| ?> | |
| <div class="admin-links" style="margin-right:50px!important"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /*** beginning of the code to paste in your functions.php ***/ | |
| function imath_pm_button_only_if_friends( $button ) { | |
| if( is_super_admin() ) | |
| return $button; | |
| if( 'is_friend' != friends_check_friendship_status( bp_displayed_user_id(), bp_loggedin_user_id() ) ) | |
| return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /**** beginning of the code to copy in the functions.php file of active theme ****/ | |
| function mathieu_hides_friends_nav( $nav_items, $nav_items_args ) { | |
| if( is_super_admin() ) | |
| return $nav_items; | |
| if( bp_is_user() && !bp_is_my_profile() ) | |
| return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /*** based on http://buddydev.com/buddypress/making-buddypress-activity-searchable/ ***/ | |
| /* simply paste what follows in your functions.php file */ | |
| add_filter( 'bp_search_form_type_select_options', 'kendyman_seventeen_options', 10, 1); | |
| function kendyman_seventeen_options( $options ) { | |
| $args = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Exit if accessed directly | |
| if ( !defined( 'ABSPATH' ) ) exit; | |
| /**** | |
| You should paste this into a file (in the example below : bp-customize-registration.php ) | |
| in your active theme's folder, then depending if your theme is a child theme or not you should | |
| use this code in your functions.php to include the trick |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /*** displaying BuddyPress user's home page link if he's connected into a WordPress post, page or text widget ***/ | |
| /********* | |
| Beginning of the code to paste in the functions.php of your active theme | |
| **********/ |
NewerOlder