This topic has 144 replies, 3 voices, and was last updated 11 years by Laura.

  • Author
  • #38166
     Laura
    Moderator

    Hello, try this code ๐Ÿ™‚

    COPY CODE
    
    add_action('after_setup_theme','kleo_my_member_data');
    function kleo_my_member_data() 
    {
        global $kleo_config;
        //this is the details field, right now it take the "About me" field content 
        $kleo_config['bp_members_details_field'] = 'Bรกsico';
        //this display the fields under the name, eq: 36 / Woman / Divorced / Berlin. Modify with the names of the fields you want to appear there
        $kleo_config['bp_members_loop_meta'] = array(
            'Eu sou',
    	'Relacionamento',
            'Idade',
    	'Cidade'
        );
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #38285
     renatokeuller36
    Participant

    Where should I put this code?

    I put in functions.php in the theme child but gave error.

    #38286
     Laura
    Moderator

    Hello, what error does it give you?

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

    It worked now Laura. In membris page data is appearing each. However, on the profile page, not aprece tabs [Looking for] and [About me] as it has in the default theme. In my theme, I would put the four groups [Bรกsico] [Sobre mim] and [Minhas fotos].

    #38293
     Laura
    Moderator

    Hello, great it worked ๐Ÿ™‚ Lets do the profile tabs now, can you tell me the exact name of each of the groups of fields you want in the profile?

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

    Yes. [Bรกsico] [Sobre mim] and [Minhas fotos].

    #38295
     Laura
    Moderator

    Hello, try to add this , i do not know if you use bp album or rtmedia so i added both:

    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['looking-for'] = array(
    			'type' => 'regular',
    			'name' =>  __('Sobre mim', 'kleo_framework'),
    			'group' => 'Sobre mim',
    			'class' => 'regulartab'
    	);
    
    	$bp_tabs['base'] = array(
    			'type' => 'regular',
    			'name' => __('Bรกsico', 'kleo_framework'),
    			'group' => 'Bรกsico',
    			'class' => 'regulartab'
    	);
    
    	/* rtMedia tab - only if plugin installed */
    	if (class_exists('RTMedia')) 
    	{
    		$bp_tabs['rtmedia'] = array(
    				'type' => 'rt_media',
    				'name' => __('Minhas fotos', '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' => __('Minhas fotos', '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
    #38296
     renatokeuller36
    Participant

    I rtmedia use. but where should I add this code?

    #38297
     Laura
    Moderator

    Hello, yes add it to functions.php

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

    in /wp-content/themes/sweetdate/functions.php
    Parse error: syntax error, unexpected end of file in /home/booktins.com/www/wp-content/themes/sweetdate/functions.php on line 1464

    in /wp-content\themes\sweetdate-child\functions.php
    Parse error: syntax error, unexpected end of file in /home/booktins.com/www/wp-content/themes/sweetdate-child/functions.php on line 76

    Both give error !!!

    #38299
     Laura
    Moderator

    Hello, please give me access to your ftp and i will do it, also a link to your website.

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

    Acess to site

    http://www.booktins.com
    Password: rk251011326291

    FTP

    Host: http://ftp.booktins.com
    User: booktins.com
    Password: ccz69k6i

    Painel

    http://booktins.com/wp-login.php

    User: booktins
    Password: rk251011

    #38301
     Laura
    Moderator

    Hello, its fixed now ๐Ÿ™‚

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

    Congratulations Laura. You’re very good at it. But, is to leave the tab [Basic] as standard, rather than [about me]?

    #38303
     Laura
    Moderator

    Hello, sure, doing it now! ๐Ÿ™‚

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

    Hello, its done ๐Ÿ™‚

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

    Yes, very good. A problem that was already extending for more than 20 days, you solved in two days. Thank you very much.

    But there’s another error in another item. Can you help me?

    #38306
     Laura
    Moderator

    Hello, no problem, its my job :D, and sure what can i do for you?

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

    Currently, there are 3 members online. Being that they are two men and a woman. The icons of the home page should appear in the image (001) below is what I did in Photoshop. Ie 2 online men and 1 woman Online.

    But is appearing all “0” online. As shown in the image (002).

    I think the problem must be in shortecode of my “Home” page, however, could not find the error.

    #38310
     Laura
    Moderator

    Hello, i will take a look at your page and i will let you know.

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

    Hello, should be working now! ๐Ÿ™‚

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

    Yes, you are the best. But just a question. You have replaced some .php file? Because I realized that some items that translate into my language (Portuguese – Brazil), returned to the English language.

    #38319
     Laura
    Moderator

    Hello, the file is in your sweetdate child theme, you should make all modifications there because any update will override the changes, sweetdate-child/custom_buddypress/bp-functions.php

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

    Understand. But I realized that in the “Members” page, the [+] and [-] buttons are gone.

    #38322
     Laura
    Moderator

    Hello, those buttons, did you add them with a function or directly inside bp-functions? Because they dont come with the theme

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

    Yes, they come in is yes. See the demo page:

    http://seventhqueen.com/demo/sweetdatewp/members/

    Moreover, they were just there until you change some files.

    #38325
     Laura
    Moderator

    Hello, i see it now, let me try to update it

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

    If you update the theme, all translations I did for Portuguese in .php files return to the English language, for me it will be a loss to have to translate everything back to Portuguese.

    #38327
     Laura
    Moderator

    Hello, its fixed, sorry i had an outdated version of bp-functions.php

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

    Hello, the only file you need to translate is bp-functions.php as you made before, i didnt know you modified it.

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

    Thank you Laura, you were a great help and very attentive. A complete and dedicated professional. I still have some other questions, but I will only send them tomorrow to not overwhelm you. Thanks again.

    #38334
     Laura
    Moderator

    Hello, dont worry you can ask all you want ๐Ÿ™‚ I’m here all day.

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

    Sorry Laura. But I realized that users icons again be showing “0” online as before. This occurred when updated bp-functions.php

    #38341
     Laura
    Moderator

    Hello, fixed ๐Ÿ™‚

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

    Thank you! ๐Ÿ™‚

    #38347
     renatokeuller36
    Participant

    Laura. I’m so sorry to bother you again. However, translate some words in bp-functions.php and again failed to show online users icons. ๐Ÿ™

    #38350
     Laura
    Moderator

    Hello, maybe you are translating an old file, i will fix it again, so what you need to do is reconnect to your ftp and not edit the file in local, if you use filezilla, check to download the file again so you get the fixed one.

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

    Hello, fixed, re download the file again before changing it ๐Ÿ™‚

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

    Thanks again. I’ve done changes to the current file. Have a great day.

    #38359
     Laura
    Moderator

    Hello, have a great day ๐Ÿ™‚

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 40 posts - 41 through 80 (of 145 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?