This topic has 10 replies, 3 voices, and was last updated 9 years by sacden.

  • Author

    Tagged: ,

  • #26855
     sacden
    Participant

    Hi, i want to change two tabs near profile photo – “Base” and “Looking for” into cyrillic characters.
    In a one topic I ve found how to change it: https://archived.seventhqueen.com/forums/topic/how-to-add-more-tabs-next-to-the-profile-image

    So, now a i have such code:
    But when i click on “Главное”, nothing happens… could you give me advice how to solve this problem please. Thank you!

    COPY CODE
    add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
    	global $bp_tabs;
    	$bp_tabs = array();
    	$bp_tabs['looking-for'] = array(
    			'type' => 'cite',
    			'name' =>  __('В поиске', 'kleo_framework'),
    			'group' => 'Looking for',
    			'class' => 'citetab'
    	);
    
    	$bp_tabs['base'] = array(
    			'type' => 'regular',
    			'name' => __('Главное', 'kleo_framework'),
    			'group' => 'Base',
    			'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'
    		);
    	}
    	
    	$bp_tabs['social'] = array(
    			'type' => 'regular',
    			'name' => __('Social', 'kleo_framework'),
    			'class' => 'regulartab'
    	);
    }
    #26873
     sacden
    Participant

    If i have such code, everything works

    COPY CODE
    <code>add_action('after_setup_theme','kleo_my_custom_tabs');
    function kleo_my_custom_tabs() 
    {
    	global $bp_tabs;
    	$bp_tabs = array();
    	$bp_tabs['looking-for'] = array(
    			'type' => 'cite',
    			'name' =>  __('V poiske', 'kleo_framework'),
    			'group' => 'Looking for',
    			'class' => 'citetab'
    	);
    
    	$bp_tabs['base'] = array(
    			'type' => 'regular',
    			'name' => __('Glavnoe', 'kleo_framework'),
    			'group' => 'Base',
    			'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'
    		);
    	}
    	
    	$bp_tabs['social'] = array(
    			'type' => 'regular',
    			'name' => __('Social', 'kleo_framework'),
    			'class' => 'regulartab'
    	);
    }</code>
    #27084
     sacden
    Participant

    Still waiting for an answer, this is my last problem, which i can not solve…

    #27699
     Catalin
    Moderator

    hello,

    Sorry for late reply.

    Please send me link to your website and admin credentials to be able to help.

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #27881
     sacden
    Participant
    This reply has been set as private.
    #28340
     Catalin
    Moderator

    Hello,

    I can see that you have all the tabs activated in one profile (see screenshot).

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #28612
     sacden
    Participant

    May be i didnt understand what you mean…
    There are four tabs in this attachement: Glavnoe, V poiske, Obo mne, Styl zhizni
    I need to rename it into cyrillic characters: Главное, В поиске, Обо мне, Стиль жизни
    When i do this, tabs are not working…
    Now its working with latin characters…because people use this website.

    #28832
     Catalin
    Moderator

    take a look.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    Attachments:
    You must be logged in to view attached files.
    #28853
     sacden
    Participant

    Excellent Catalin! =) but its not working if i click on those tabs…this was the main problem, i wanted to solve.

    #29895
     Abe
    Keymaster

    Hi, we did a small code change so it will work with chirilic characters too. It will be included in the next update too so you don’t have to worry about updating the 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.

    #29938
     sacden
    Participant

    Thank you Abe!!! I will wait, have a nice day!

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?