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 | |
**********/ |
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 | |
/*** 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 | |
/**** 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 | |
/*** 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 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 the functions.php of your theme ***/ | |
function imath_wants_you_to_be_in_group_to_comment_group_activities( $can_comment ) { | |
global $activities_template; | |
if( !is_super_admin() && $activities_template->activity->component == 'groups' && !groups_is_user_member( bp_loggedin_user_id(), $activities_template->activity->item_id ) ) | |
$can_comment = 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 paste in the functions.php of your active theme */ | |
function imath_activivity_dont_save( $activity_object ) { | |
// friendship_created is fired when a member accepts a friend request | |
// joined_group is fired when a member joins a group. | |
$exclude = array( 'friendship_created', 'joined_group'); | |
// if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function |
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 the functions.php of the active theme (twentyten, twentyeleven or twentytwelve) | |
If you want to adapt it to your theme, you'll need to check if it uses some body_class to render its layout and eventually | |
adapt lines 70 to 101. | |
*/ | |
class Imath_WP_Editor_Template | |
{ | |
OlderNewer