Forum Replies Created
-
Author
-
BottossoParticipant
Hi All
How it’s works if the $kleo_config[‘matching_fields’][‘looking_for’] is a array?
For example: I have a field called Gender (Checkbox) there, the user can choose if they are looking for (Man, Female, Couples, bla bla bla), if the user choose (Female and Couples) will it work? If not how I can solve it?
Many Thanks
BottossoParticipantProblem solved, I needed active the buddypress plugin in all sites in my network. ๐
BottossoParticipantHi,
I think the problem are in RTMEDIA plugin because I have this error below when I try access the profile page:
WordPress database error Table ‘wp-rtmedia.wp_bp_xprofile_groups’ doesn’t exist for query SELECT id FROM wp_bp_xprofile_groups WHERE name = ‘Base’ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), call_user_func_array, bp_template_redirect, do_action(‘bp_template_redirect’), call_user_func_array, bp_screens, do_action(‘bp_screens’), call_user_func_array, bp_activity_screen_my_activity, bp_core_load_template, load_tem
I’ll try to contact the RtMedia guys and I’ll post here possible fixes for it.
Many Thanks ๐
BottossoParticipantThis is my currently DB: http://cl.ly/image/2m1J3H2n1L0M
I have one BP social network each website in my network.
BottossoParticipantHi justpaulius / admin
This code below not working for me.
// TAB - ABOUT ME
add_action('after_setup_theme','kleo_my_custom_tabs');
function kleo_my_custom_tabs()
{
global $bp_tabs;
$bp_tabs = array();$bp_tabs['base'] = array(
'type' => 'regular',
'name' => __('About me', 'kleo_framework'),
'group' => 'Base',
'class' => 'regulartab'
);
}
My currently settings: http://cl.ly/image/1W221g0D1q32
I installed the sweet date theme with multisites, everinthing works fine but only this tab never shows up to me.
BottossoParticipant
<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*//**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/// TOP MEMBERS - PICTURE SIZE
if (!function_exists('kleo_top_members')) {
function kleo_top_members( $atts, $content = null ) {
extract(shortcode_atts(array(
'style' => 'standard'
), $atts));$output = '
<div class="section-members">
<div class="item-options" id="members-list-options">
'.__("Newest", 'kleo_framework').'
'.__("Active", 'kleo_framework').'
'.__("Popular", 'kleo_framework').'
</div>';$output .= '<ul class="item-list kleo-bp-active-members">';
if ( bp_has_members( 'type=active&max=30' ) ) :
while ( bp_members() ) : bp_the_member();
$output .= section_members_li();endwhile;
endif;
$output .='';$output .= '<ul class="item-list kleo-bp-newest-members" style="display:none;">';
if ( bp_has_members( 'type=newest&max=30' ) ) :
while ( bp_members() ) : bp_the_member();
$output .= section_members_li();endwhile;
endif;
$output .='';$output .= '<ul class="item-list kleo-bp-popular-members" style="display:none;">';
//if ( bp_has_members( 'type=popular&max=30&meta_key=' . $wp_table ) ) :
if ( bp_has_members( 'type=popular&max=30' ) ) :
while ( bp_members() ) : bp_the_member();
$output .= section_members_li();endwhile;
endif;
$output .='';$output .= '</div><!--end section-members-->';
$output .= <<<JS
<script type="text/javascript">
jQuery(document).ready(function() {jQuery(".members-switch").click(function() {
var bpMembersContext = jQuery(this).parent().parent();
var container = "ul.kleo-bp-"+jQuery(this).attr('data-id')+"-members";jQuery("ul.item-list", bpMembersContext).hide();
jQuery(".members-switch").removeClass("selected");
jQuery(this).addClass("selected");
jQuery(container, bpMembersContext).show(0, function() {
jQuery(container+" li").hide().each(function (i) {
var delayInterval = 150; // milliseconds
jQuery(this).delay(i * delayInterval).fadeIn();
});
});
return false;
});
});jQuery(function () {
jQuery('.kleo-bp-active-members').hide();
jQuery('.section-members').one('inview', function (event, visible) {
if (visible) {
var container = ".kleo-bp-active-members";
jQuery(container).show(0, function() {
jQuery(container+" li").hide().each(function (i) {
var delayInterval = 150; // milliseconds
jQuery(this).delay(i * delayInterval).fadeIn();
});
});
}
});});
</script>
JS;
return $output;}
add_shortcode('kleo_top_members', 'kleo_top_members');
}// REMOVE PROFILE NAVIGATION
add_action('after_setup_theme','kleo_remove_actions');
/**
* Override existing actions
* Use these functions to replace/remove existing actions
* @since Sweetdate 1.3
*/
function kleo_remove_actions()
{
remove_action('kleo_after_breadcrumb', 'bp_add_profile_navigation');
}// REDIRECT FOR THEIR PROFILE AFTER LOGIN
add_filter("login_redirect","kleo_redirect_to_profile",100,3);function kleo_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user){
/*if no redirect was specified,let us think ,user wants to be in wp-dashboard*/
if(!is_super_admin($user->ID))
return bp_core_get_user_domain($user->ID );
else
return $redirect_to_calculated; /*if site admin*/
}// REMOVE SOME THINGS - BP PROFILE
function bp_remove_nav_tabs() {
bp_core_remove_nav_item( 'forums' );}
add_action( 'bp_setup_nav', 'bp_remove_nav_tabs', 15 );
// TAB - ABOUT ME
add_action('after_setup_theme','kleo_my_custom_tabs');
function kleo_my_custom_tabs()
{
global $bp_tabs;
$bp_tabs = array();$bp_tabs['base'] = array(
'type' => 'regular',
'name' => __('About me', 'kleo_framework'),
'group' => 'Base',
'class' => 'regulartab'
);
}?>
BottossoParticipantHi
I have the same problem, I tried put the code which you talk about in this link: https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
but the problem still the same. I have been using WP multisites and I’m using the sweedate-child theme.My currently page example: http://cl.ly/image/372Y3L1P0t3X
Currently DB: http://cl.ly/image/2m1J3H2n1L0M
Plugins activated: http://cl.ly/image/3A210p1O3g1nThanks
BottossoParticipantHi
I put the code below in my sweetdate-child functions, the problem was solved in members page and “Latest registered members” but the admin user still appear in “Top Members” Please find below the screenshot.
http://cl.ly/image/1Y0S0o1F1C1P
Many Thanks
BottossoParticipantHi,
Thanks for your reply.
Looks like perfect!
Just one detail, the “play” button is not in the center of the video, following the image:
http://cl.ly/image/2i3W420g0f1sMany Thanks
BottossoParticipantOk, Thanks for your reply ๐
I’m waiting for news about this matter.
Thank you very much!
BottossoParticipantHi
I spoken with the rtMedia guys and these guys told me maybe the problem can be on the sweetdate theme.
I have tested my website with the default BP theme and you can see the problem below:
http://cl.ly/image/1q02372h0u2H
http://cl.ly/image/2g1l090H1d3pAfter this I did some tests with the Twenty Thirteen theme (WP default) and in this theme not have any problem, you can see in these links below:
http://cl.ly/image/3v0A0t3C383R
http://cl.ly/image/1X142M3C3N1EPlease, i’d like some help with this case.
Many Thanks
BottossoParticipantHow I can remove the sidebar in this page http://cl.ly/image/2q2Y2G2o311o ?
Thanks.
-
AuthorPosts