This topic has 19 replies, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #14522
     iulianolaru
    Participant

    Good day,
    I have just seen that in a profile, the information about the user ( ex: smoker or not ) have dissapered and the photo block from rtmedia is misaligned.

    Also, i have just tried to setup the profile information for another account and likewise, it does not appear on the profile.

    What is there to do?

    #14631
     iulianolaru
    Participant

    This is a serious problem. I would very much appreciate help from anyone. Thank you in advance

    #14747
     Abe
    Keymaster

    Where should that info appear? Screenshot please. If they should appear on the right of the profile maybe you changed your profile field group name and you should check: 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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #14748
     iulianolaru
    Participant

    The actual profile tabs do not appear and i haven’t made any modifications besides updating to the latest version. Is it possible for you to access the admin and further check ?

    EDIT: Let me understand. If i change the user profile fields, tabs etc.. i should also further update a piece of code? Please instruct …

    #14752
     Abe
    Keymaster

    If you change a Group name then yes you need to change the Group name that shows to the right of the image. See my link above

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #15060
     iulianolaru
    Participant

    Hey, i can’t seem to get this working. I will paste my full sweetdate-child/functions.php so you can see maybe there’s something wrong in it.

    The name of the tabs are the names of the actual profile field groups.

    Thank you in advance

    COPY CODE
    /* my changes to profile tabs */ 
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
    	global $bp_tabs;
    	$bp_tabs = array();
    	$bp_tabs['Op zoek naar'] = array(
    			'type' => 'regular',
    			'name' =>  __('Op zoek naar', 'kleo_framework'),
    			'group' => 'Op zoek naar',
    			'class' => 'regulartab'
    	);
    
    	$bp_tabs['Basis informatie'] = array(
    			'type' => 'regular',
    			'name' => __('Basis informatie', 'kleo_framework'),
    			'group' => 'Basis informatie',
    			'class' => 'regulartab'
    	);
    	
    	$bp_tabs['Physical'] = array(
    			'type' => 'regular',
    			'name' => __('Physical', 'kleo_framework'),
    			'group' => 'Physical', 
    			'class' => 'regulartab'
    	);
    
    /* rtMedia tab - only if plugin installed */
    	if (class_exists('RTMedia')) 
    	{
    		$bp_tabs['rtmedia'] = array(
    				'type' => 'rt_media',
    				'name' => __('Fotos', 'kleo_framework'),
    				'class' => 'mySlider'
    		);
    	}
    }
    function kleo_membership_info_guest()
    {
      global $membership_levels,$current_user;
      if (! $membership_levels) {
        return;
      }
      
      if (!bp_is_my_profile())
      {
          $membership = pmpro_getMembershipLevelForUser(bp_displayed_user_id());
        if ($membership)
        {
            
          echo '<span class="label radius pmpro_label">'.$membership->name.'</span>';
        }
        else
        {
          echo '<span class="label radius pmpro_label">'.__("No membership",'kleo_framework').'</span>';
        }
      }
    }
    add_action('kleo_bp_after_profile_name', 'kleo_membership_info_guest');
    
    /* 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*/
    }
    ?>
    #15191
     Abe
    Keymaster

    Your function kleo_my_custom_tabs() is missing:
    return $bp_tabs;

    from the end of the function.
    Also the group => “Name” must match your defined groups name in Users – Profile fields

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #15598
     iulianolaru
    Participant

    It seems i am doing something wrong. Abe, can you please update the code to your recommendations ? The defined group names are matching.

    Thank you in advance

    #15833
     Abe
    Keymaster

    make sure to have the child theme activated. Give me your Group names exactly how they are defined in Users – Profile fields

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #17731
     iulianolaru
    Participant

    I have tried in several ways and i can’t seem to make it work Abe.
    My group names are:
    1. Basis informatie (Primary)
    2. Over mijzelf
    3. Op zoek naar
    4. Lifestyle
    5. Physical

    Thank you in advance Abe.

    #18058
     Abe
    Keymaster

    This should be the code. make sure the child theme is active. Also the names provided but be exactly the group names as in USers – Profile fields

    COPY CODE
    
    //my changes to profile tabs
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs()
    {
        global $bp_tabs;
        $bp_tabs = array();
     
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' => 'Basis informatie (Primary)',
                'group' => 'Basis informatie (Primary)',
                'class' => 'regulartab'
        );
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' => 'Over mijzelf',
                'group' => 'Over mijzelf',
                'class' => 'regulartab'
        );
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' => 'Op zoek naar',
                'group' => 'Op zoek naar',
                'class' => 'regulartab'
        );
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' => 'Lifestyle',
                'group' => 'Lifestyle',
                'class' => 'regulartab'
        );
        $bp_tabs[] = array(
                'type' => 'regular',
                'name' => 'Physical',
                'group' => 'Physical',
                'class' => 'regulartab'
        );
     
        /* rtMedia tab - only if plugin installed */
        if (class_exists('RTMedia'))
        {
            $bp_tabs['rtmedia'] = array(
                    'type' => 'rt_media',
                    'name' => __('My work', '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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #18176
     iulianolaru
    Participant

    Abe, the code works while having the child theme active but when i activate the necessary theme, the code does not work.

    What is there to do ?

    #18313
     iulianolaru
    Participant
    This reply has been set as private.
    #18314
     iulianolaru
    Participant
    This reply has been set as private.
    #18372
     Abe
    Keymaster

    Well, you need to keep the child theme active since it works in conjunction with the parent theme.

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #18381
     iulianolaru
    Participant
    This reply has been set as private.
    #18387
     Abe
    Keymaster

    I will try and check but you said: “Abe, the code works while having the child theme active but when i activate the necessary theme, the code does not work.”

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #18388
     Abe
    Keymaster

    Please check your profile /leden/klaver2/profile/ since it displays the fields. Users must save their profile so the tabs to appear…

    This forum is intended to provide technical support so please for any customizations beside the issues and bugs that can occur please hire a developer to help you with custom development.

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #18392
     iulianolaru
    Participant

    Why is it that when i keep the child theme active, the design gets scrambled ?

    #18400
     Abe
    Keymaster

    Probably a code you added the wrong way or some css added. Try to remove the theme and re-upload it maybe you did something wrong with the theme location.. can’t say

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?