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

  • Author
  • #38427
     renatokeuller36
    Participant

    Hello Laura, I have a short list of questions and problems with the theme. No need to answer all at once, I have patience to wait.

    Some of my questions may seem silly, but I ask forgiveness, for I am not a professional and do not know all of WordPress.

    1. I could not find the place to translate the error text Invalid email. The message that appears when I enter the wrong email. In which file .php translate this?

    2. Insert in my functions.php theme in my child, a code to redirect the user after login to the profile page. But I wonder, if I insert a redirect to the activity of the page.

    3. On the homepage, the group details are appearing errors in accented words. Where is the file that is not accepting accent?

    4. Every time I mention a user, although mention is made, it does the following error:

    Warning: sprintf(): Too few arguments in /home/booktins.com/www/wp-content/plugins/buddypress/bp-activity/bp-activity-notifications.php on line 94

    5. Thanks to you, is details are appearing normal in the members page. However, I saw that is missing show below Birthday / I am a / Marital status / City. Missing item “Myself Summary, “About me”. See the picture below taken from the theme demo page.

    I think you just need to add it to this 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’,
    ‘Cidade’,

    );
    }

    6. For every member profile that visit, no matter what, they all point 50 matchs? It’s a bug or error in the topic?

    7. In my page “About us”, how do to change the Pinterest icon on the other?

    8. In order not to let the logador users edit pages, how do I remove the item “Edit” button below pages? In which .php file remove this item?

    #38434
     Laura
    Moderator

    Hello, i will check them one by one and 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
    #38445
     renatokeuller36
    Participant

    Right. Thank you for Laura attention.

    #38466
     Laura
    Moderator

    Hello, here are some answers, first i would really suggest to use a translation plugin rather than translating php files, because if an update is done in any plugin or theme, you will lose all of those translations.

    1. Please use Codestyling Localization Plugin here: https://wordpress.org/plugins/codestyling-localization/
    You can translate plugins and themes from here and when an update comes they wont be lost! πŸ™‚

    2. Did i understand right? do you want to redirect user to your activity page and not to profile page? if so, share with me the code you are using and the id of the activity page.

    3. Try this plugin https://wordpress.org/plugins/full-utf-8/

    4. The problem is that the error is the translation.
    1= To check, remove translation of your country.
    2= Back BuddyPress original translation.
    3= Try a mention again.
    4= If it does not error, returns translation of your country.
    5= Look at this line in the file. Po translation: β€œ%1$s mentioned you in an update:\n\n\”%2$s\”\n\nTo view and respond to the message, log in and visit: %3$s\n\n———————”
    Compare with the translation of your country. It should be the same if not, then thats is where the error is coming!

    5. Yes you can add the fields you cant following the names as in the code, like ‘Cidade’, but those fields need to be inside of the BΓ‘sico group.

    6. Is not a bug, because of your custom fields and groups, match system doesnt work, so you need to setup a new matching system with your values, check here https://archived.seventhqueen.com/forums/topic/match-numbers

    Will come with 7 and 8 soon

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

    Hello Laura.

    First, I wonder if the update is automatic Sweetdate? And if so, is to block this update? since you said you catch up, all my translations that were made in the .php files.

    1. I have already installed the plugin which showed me, however, was unable to translate the theme, it gives the following message: “You are trying to open a translation catalog that exceeds its memory limit in PHP NaN MB during aleitura.
    Enable Memory Mode reduced to open this catalog. ”

    Where such active this memory mode?

    2. Yes, I want to redirect activity page instead of profile page. I am using the following code to redirect the profile:

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

    If you can redirect to activity page, please.

    3. I installed the plugin recommended me and did not have any effect. Accents continue with wrong encoding in groups details.

    4. Yes, I returned the original version of BuddyPress and did not mention the error. However, I found that this file to my language and symbols are equal. do not understand the error reason.

    5. I do not understand your answer. I also did not understand my question. I simply want to appear “About me” details of members in the member pages. Check http://seventhqueen.com/demo/sweetdatewp/members/ and see us managing member details, and will understand what I am wanting.

    6. I do not understand anything.

    #38551
     Laura
    Moderator

    Hello, ok lets try one by one so it can be fixed πŸ™‚
    No, the translations are not auto, you can choose to do it or not, but updates adds usefull new functionalities and errors fixing so i would suggest to do all translations in codestyling and update theme when it has an update.

    The translation plugins shows the error because maybe you have a memory limit, we can try a code, but if your hosting doesnt allow it, you should talk to them because i have no power there.

    Try adding this to wp-config.php
    define(‘WP_MEMORY_LIMIT’, ’96M’);

    If not, try this in .htaccess (if you can see it)
    php_value memory_limit 64M

    If nothing changes then talk to your host.

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

    Right gave the issue of memory, managed to open the theme to translate. I managed to translate the files. Thank you Laura. I am available all day today and I hope to help in other topics.

    #38579
     Laura
    Moderator

    Hello, awesome! lets move to point 2.
    Replace the redirect code for this and change the url to your activity page

    COPY CODE
    
    if( !function_exists('custom_user_login_redirect') ) {
    function custom_user_login_redirect() {
    $redirect_to = 'http://mysite.com/activity';
    return $redirect_to;
    }
    add_filter('login_redirect','custom_user_login_redirect',10,3);
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #38597
     renatokeuller36
    Participant

    That’s perfect. Question 2 resolved.

    #38601
     renatokeuller36
    Participant

    Obs .: Question 8, resolved.

    #38615
     Laura
    Moderator

    Hello, moving to point 3.

    Try adding this to wp-config.php
    define(‘DB_CHARSET’, ‘latin1’);

    if not try this

    define(‘DB_CHARSET’, ‘utf8’);

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

    Laura, the first code left all site content that has accent with that error. The second code already exists in the wp-config.php file

    #38621
     Laura
    Moderator

    Hello, this is something coming from your database, try this http://blogsuccessjournal.com/blog-tips-and-advice/wordpress-tips/seeing-weird-characters-on-blog-how-to-fix-wordpress-character-encoding-latin1-to-utf8/ or contact your hosting provider

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

    Okay, I’ll read the article and to contact my hosting server. Thank you.

    #38630
     Laura
    Moderator

    Okay then point 4, Maybe we can try to hide warnings as the error is just a warning ad the mentions work properly, try adding this to your wp-config.php
    error_reporting(0);
    @ini_set(‘display_errors’, 0);

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

    Perfect Laura, enter the code and hide the error. No problem at all to hide it, since it does not affect anything, since the statements are made normally.

    #38651
     Laura
    Moderator

    Hello, the point 5, is the description after the age/ sex/… what you want?

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

    This same Laura, exactly.

    #38668
     renatokeuller36
    Participant

    I’m still here Laura. Waiting for news.

    #38674
     Laura
    Moderator

    Hello, working on a code for point 5, lets move to point 6 for the moment,
    Add this to your functions.php

    COPY CODE
    
    //change matching system
    add_action('after_setup_theme','kleo_my_match');
    function kleo_my_match() {
    global $kleo_config;
    $kleo_config['matching_fields']['starting_score'] = 1;
    //If we want to match by members sex. values: 0|1
    $kleo_config['matching_fields']['sex_match'] = 1;
    //required for initial match. If the sex preference matches it will continue to the specified fields below
    $kleo_config['matching_fields']['sex'] = 'I AM A FIELD NAME HERE';
    $kleo_config['matching_fields']['looking_for'] = 'LOOKING FOR FIELD NAME HERE';
    //sex percentage
    $kleo_config['matching_fields']['sex_percentage'] = 49;
    //single value fields like select, textbox,radio
    $kleo_config['matching_fields']['single_value'] = array (
        'FIELDNAME' => 20,
        'FIELDNAME' => 5,
    'FIELDNAME' => 5
    );
    //multiple values fields like multiple select or checkbox
    $kleo_config['matching_fields']['multiple_values'] = array (
        'FIELDNAME' => 10,
        'FIELDNAME' => 10,
    );
    }
    

    To setup this matching system, first you need to know what fields will count as matching for the users, you want that if they are from the same city it gives a 5% of match? those settings can be done from the code, as you see sex percentage is set to 49, but you can change it as you want, this means if a man wants a woman, and woman wants a man, they both will have 49% of match.

    To add more fields to match just copy
    ‘FIELDNAME’ => 10,
    And add it after the others depending on if the field is multiple value or simple value (As set in users > profile fields)

    You can also change the 10 for the % you want that field to count.

    Read the comments carefully and follow the steps πŸ™‚

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

    Hello Laura. Added code and gave error. In fact, the page went blank. I think because we disable the error messages, nothing appears.

    #38679
     renatokeuller36
    Participant

    I would like the items are SEX, RELATIONSHIPS, and INTEREST CITY 25% for each of the items.

    #38681
     Laura
    Moderator

    Hello, lets do something, i will add the code for you, just tell me what fields you want to count and the % of each item, also gender %.
    Please list them one by one, not the group of fields, just each field, like Music, Movies, Languages…

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

    Right.

    Place the fields: Eu sou, procurando por, Relacionamento, Interesses e Cidade.

    #38715
     Laura
    Moderator

    Hello, but what % for each field?

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

    Hello Laura, as are 5 fields, put 20% for each field one. This will reach 100%.

    I just want a change, remove I am. Now I will relate the fields I want.

    1. Procurando por
    2. Relacionamento
    3. Com interesse em
    4. Estou aqui para
    5. Cidade

    Thanks again for the support note 10.

    #38762
     Laura
    Moderator

    Hello, matching system is ready and working πŸ™‚

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

    Yes Laura, I’ve seen. Thank you very much.

    Laura, I need your email to request extra services for my theme. You do personal work? For need of some work for my website, but are not included in theme support. I can pass you the link I need to, and you pass me a budget. You have been an excellent professional and wish to hire such services. Is it possible?

    #38772
     renatokeuller36
    Participant

    I have looked, but in my town have not found a professional who has expertise in BuddyPress. If you do extra services outside their hours, no problem. You keep giving me support in theme items that are missing to finish what I need. But if you can make extra service, send an email to renatokeuller@gmail.com so I can report the services they need and you say that you can do.

    #38795
     Laura
    Moderator

    Hello, point 5 fixed πŸ™‚

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

    Hello, for the last point, 7, share with me the image you want to change and for what image you will.

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

    Hello Laura, thanks for the resolution of question 5, it was great. In relation to question 7, for a reason I know not the icons below the site staff in http://booktins.com/desenvolvedores/ page are gone.

    #38801
     Laura
    Moderator

    Hello, so what do you actually need now?

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

    Check on the “Developers” the shortcode icons are still there: [kleo_icon icon = "twitter-sign" size = 2x] [kleo_icon icon = "facebook-sign" size = 2x] [kleo_icon icon = "pinterest-sign" size = 2x] In this case, do not understand why are gone.

    So too, as I realized that two other problems appeared on the site.

    The icons for “Add Friends” and “Undo friendship” gone the symbols [+] and [-]

    So like all the other places that possessed native icons theme.

    – Login Button
    – Next profile and previous Profile
    – Search button on the members page

    I want to make clear that not I change the codes, because I can not work with them. I just do translations and some CSS changes.

    Maybe it’s some plugin installed, I can not explain more are gone.

    #38803
     Laura
    Moderator

    Hello, can you tell me the css you changed?

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

    Laura found the problem. It was the plugin “Testimonial Rotator”, already deactivated.

    #38809
     renatokeuller36
    Participant

    Back to question 7 of the components of each team photo below has three icons. Twitter, Facebook and Pinterest. Would you like to replace the Pinterest icon on the other. However, I noticed that this icon is not an image but is represented by this item (.icon-pinterest-sign: before {content: “\ f0d3”;}) in the CSS file (font-awesome.min.css). Is there a way to replace it?

    #38819
     Laura
    Moderator

    Hello, check out the fontawesome icons here http://fortawesome.github.io/Font-Awesome/3.2.1/icons/ then the icon you choose, look for the UNICODE and add it to style.css in child theme:

    COPY CODE
    
    .icon-pinterest-sign: before {content: β€œ\ f0d3β€³;}
    

    change UNICODE number for the “f0d3”

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

    Thank you Laura. With this we close the list of questions I sent you.

    #38831
     Laura
    Moderator

    Hello, great πŸ™‚ if got any question dont doubt to ask.

    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 - 81 through 120 (of 145 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?