-
Author
-
November 15, 2013 at 17:13 #6733SatnamlivParticipant
Hello,
disappeared about me tab from profile view, any solutions?
thanksNovember 17, 2013 at 03:16 #6798SQadminKeymasterI you modified the name of the profile fields Group then see this topic: https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 17, 2013 at 03:33 #6815SQadminKeymasteryou need to add that in your child theme in functions.php. You haven’t added the code correctly. The file should not be empty. it should have on the first line:
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 20, 2013 at 22:30 #6972BottossoParticipantHi
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
November 21, 2013 at 21:39 #7044BottossoParticipantSorry “justpaulius” I can’t see your answers it is marked as private.
November 22, 2013 at 00:02 #7055SQadminKeymasterPaste here the code you have added, or better the sweetdate-child/functions.php file
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 22, 2013 at 00:26 #7060BottossoParticipant
<?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'
);
}?>
November 22, 2013 at 03:09 #7073SQadminKeymasterThat should work if your group name under Users – Profile fields is Base
Modify it in the code if it is differentHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 22, 2013 at 14:13 #7089BottossoParticipantHi 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.
November 22, 2013 at 14:17 #7092SatnamlivParticipantdid you changed name of base name ir bp profile fields?
November 22, 2013 at 14:29 #7093BottossoParticipantThis is my currently DB: http://cl.ly/image/2m1J3H2n1L0M
I have one BP social network each website in my network.
November 22, 2013 at 14:44 #7095BottossoParticipantTable wp_2_bp_xprofile_groups: http://cl.ly/image/0h0p3r3z1y3y
November 22, 2013 at 17:46 #7113SatnamlivParticipant<?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
*/
// 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’ => ‘Pagrindinis’,
‘class’ => ‘regulartab’
);
}
?>
it works for meNovember 22, 2013 at 18:40 #7115BottossoParticipantYep, I changed the group to Base, but unfortunately not working.
November 22, 2013 at 19:12 #7116SatnamlivParticipantCheck did you correctly copied code. It may be issue why not working
November 24, 2013 at 01:14 #7145BottossoParticipantYes, the code is same, I don´t have idea what happening
November 24, 2013 at 04:03 #7150SQadminKeymasterGive us access to your site if it is still not working.. you are definitely doing something wrong. Also the user needs to have the profile fields completed
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 26, 2013 at 14:30 #7260BottossoParticipantHi,
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 🙂
November 26, 2013 at 14:46 #7265SQadminKeymasterI have logged in into your site and you didn’t at least had Buddypress intalled in your site… not to say to import the fields or define them . Please configure your site properly
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.