This topic has 10 replies, 3 voices, and was last updated 11 years by Josiah.

  • Author
  • #2278
     habeshaluv
    Participant

    I don’t have profile tabs to the right of member profile pictures for some reason. I have already edited them in sweetdate/buddypress and user/profile fields…is there anything that is recommended?

    http://www.habeshaluv.com

    #2311
     habeshaluv
    Participant

    also, i have the child theme activated…

    #2316
     SQadmin
    Keymaster

    Hi,
    If you have renamed the default profile field groups from WP Admin -> Users -> Profile fields then please follow this topic to enable whatever field group you want to show there
    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 solution
    #2317
     habeshaluv
    Participant

    Hey I sent you my admin and ftp login info through email because i tried following that already, but I still had issues. email was from habeshaluv@gmail.com

    Thanks!
    I tried looking through the forum before posting here, but still not working!

    #2441
     habeshaluv
    Participant

    Thanks for the support!! You guys got my 5 stars!!

    #2460
     SQadmin
    Keymaster

    Thank you very much.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3757
     Josiah
    Participant

    I am having a similar issue. “About Me” and “My Photos” are the only tabs showing. I am viewing a profile that does have all of the profile fields filled out.

    #3766
     SQadmin
    Keymaster

    Hi, Please follow this topic and should work fine: 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 solution
    #3929
     Josiah
    Participant

    That does not help me. I am trying to add “Profile Fields” tabs. I have four tabs total:
    1. Base
    2. Summary
    3. Physical
    4. Location

    In my functions.php file I do not see anything about tabs. I do have the child theme active. Here is the functions.php

    <?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
    */

    add_action('after_setup_theme','kleo_my_actions');

    function kleo_my_actions()
    {
    /* disable matching on member profile */
    remove_action('kleo_bp_before_profile_name', 'kleo_bp_compatibility_match');

    /* Replace the heart over images */
    add_filter('kleo_img_rounded_icon', 'my_custom_icon');

    /* Replace the heart from register modal */
    add_filter('kleo_register_button_icon', 'my_custom_icon_register');
    }

    /* Replace the heart with a camera icon function */
    function my_custom_icon () {
    return 'camera';
    }

    /* Replace the heart from register modal with a user icon function */
    function my_custom_icon_register () {
    return 'user';
    }

    /* Filter the redirect url for 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*/
    }
    add_action('bp_init','bpdev_remove_bp_pre_user_login_action');
    function bpdev_remove_bp_pre_user_login_action(){
    remove_action( 'pre_user_login', 'bp_core_strip_username_spaces' );
    }

    //add a filter to invalidate a username with spaces
    add_filter('validate_username','bpdev_restrict_space_in_username',10,2);
    function bpdev_restrict_space_in_username($valid,$user_name){
    //check if there is an space
    if ( preg_match('/\s/',$user_name) )
    return false;//if myes, then we say it is an error
    return $valid;//otherwise return the actual validity
    }

    ?>

    #3959
     SQadmin
    Keymaster

    Following the topic you should end you adding this to sweetdate-child/functions.php

    COPY CODE
    
    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' => __('Base', 'kleo_framework'),
    			'group' => 'Base',
    			'class' => 'regulartab'
    	);
    	$bp_tabs[] = array(
    			'type' => 'regular',
    			'name' =>  __('Summary', 'kleo_framework'),
    			'group' => 'Summary',
    			'class' => 'regulartab'
    	);
    	$bp_tabs[] = array(
    			'type' => 'regular',
    			'name' =>  __('Physical', 'kleo_framework'),
    			'group' => 'Physical',
    			'class' => 'regulartab'
    	);
    	$bp_tabs[] = array(
    			'type' => 'regular',
    			'name' =>  __('Location', 'kleo_framework'),
    			'group' => 'Location',
    			'class' => 'regulartab'
    	);
    	/* rtMedia tab - only if plugin installed */
    	if (class_exists('RTMedia')) 
    	{
    		$bp_tabs['rtmedia'] = array(
    				'type' => 'rt_media',
    				'name' => __('My photos', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    
    	/* Bp-Album tab - only if plugin installed */
    	elseif (function_exists('bpa_init')) {
    		$bp_tabs['bp-album'] = array(
    				'type' => 'bp_album',
    				'name' => __('My photos', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3970
     Josiah
    Participant

    That worked great! Thank you.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?