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 | |
/** | |
* When registering, add the member to a specific membership level | |
* based on the field value he gas selected | |
* | |
* @global object $wpdb | |
* @global object $bp | |
* @param integer $user_id | |
*/ |
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
ERR_SPDY_INADEQUATE_TRANSPORT_SECURITY | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; | |
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH"; | |
ssl_ecdh_curve secp384r1; | |
ssl_session_tickets off; | |
ssl_stapling on; | |
ssl_stapling_verify on; | |
resolver_timeout 5s; |
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
add_filter( 'user_contactmethods', 'svq_update_contactmethods', 10); | |
function svq_update_contactmethods($contact_methods) { | |
// Add Twitter. | |
$contact_methods['profession'] = __( 'Profession title', 'seeko' ); | |
$contact_methods['twitter'] = __( 'Twitter username (without @)', 'seeko' ); | |
// Add Facebook. | |
$contact_methods['facebook'] = __( 'Facebook profile URL', 'seeko' ); | |
// Add LinkedIn. | |
$contact_methods['linkedin'] = __( 'LinkedIn URL', 'seeko' ); |
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 | |
// allow WP to store querystring attribs for use in our pages | |
function sq_query_vars_filter($vars) { | |
$vars[] = 'user_name'; | |
$vars[] .= 'user_page'; | |
return $vars; | |
} | |
add_filter( 'query_vars', 'sq_query_vars_filter' ); |
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
jQuery(document).ready(function() { | |
jQuery('#buddypress').on( 'click', '.pagination-links a', function() { | |
window.history.pushState(null, null, jQuery(this).attr('href')); | |
}); | |
}); |
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 | |
/** | |
* Template Name: WooThemes HomePage control plugin | |
* | |
* Description: For Homepage Control plugin only | |
* | |
* @package WordPress | |
* @subpackage Kleo | |
* @author SeventhQueen <themesupport@seventhqueen.com> | |
* @since Kleo 1.0 |
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
// add this to sweetdate-child/functions.php | |
if ( ! function_exists( 'compatibility_score' ) ) { | |
/** | |
* Calculate compatibility between members based on their profiles | |
* | |
* @param int|bool $userid1 | |
* @param int|bool $userid2 | |
* | |
* @return int |
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 | |
add_filter( 'bp_get_member_name', function( $name ) { | |
global $members_template; | |
if ( ! empty( $members_template->member->user_login ) ) { | |
return $members_template->member->user_login; | |
} | |
return $name; | |
}); | |
add_filter( 'bp_displayed_user_fullname', function( $name ) { |
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 | |
add_action( 'wp_ajax_messages_get_user_message_threads', 'stax_bpb_change_messages_username', 9 ); | |
function stax_bpb_change_messages_username() { | |
add_filter('bp_core_get_username', function( $name ) { | |
$user = get_user_by('login', $name); | |
if ($user) { | |
$name = $user->display_name; | |
} | |
return $name; | |
}); |
OlderNewer