-
Author
-
December 10, 2014 at 15:40 #38427
renatokeuller36
ParticipantHello 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?
December 10, 2014 at 15:48 #38434Laura
ModeratorHello, 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 solutionDecember 10, 2014 at 19:08 #38466Laura
ModeratorHello, 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 solutionDecember 11, 2014 at 14:05 #38547renatokeuller36
ParticipantHello 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.
December 11, 2014 at 14:21 #38551Laura
ModeratorHello, 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 64MIf 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 solutionDecember 11, 2014 at 14:46 #38574renatokeuller36
ParticipantRight 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.
December 11, 2014 at 14:53 #38579Laura
ModeratorHello, awesome! lets move to point 2.
Replace the redirect code for this and change the url to your activity pageCOPY CODEif( !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 solutionDecember 11, 2014 at 16:02 #38615Laura
ModeratorHello, 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 solutionDecember 11, 2014 at 16:09 #38619renatokeuller36
ParticipantLaura, the first code left all site content that has accent with that error. The second code already exists in the wp-config.php file
December 11, 2014 at 16:10 #38621Laura
ModeratorHello, 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 solutionDecember 11, 2014 at 16:12 #38625renatokeuller36
ParticipantOkay, I’ll read the article and to contact my hosting server. Thank you.
December 11, 2014 at 16:28 #38630Laura
ModeratorOkay 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 solutionDecember 11, 2014 at 16:38 #38634renatokeuller36
ParticipantPerfect 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.
December 11, 2014 at 18:33 #38651Laura
ModeratorHello, 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 solutionDecember 11, 2014 at 20:45 #38668renatokeuller36
ParticipantI’m still here Laura. Waiting for news.
December 11, 2014 at 22:48 #38674Laura
ModeratorHello, working on a code for point 5, lets move to point 6 for the moment,
Add this to your functions.phpCOPY 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 solutionDecember 11, 2014 at 23:06 #38676renatokeuller36
ParticipantHello Laura. Added code and gave error. In fact, the page went blank. I think because we disable the error messages, nothing appears.
December 11, 2014 at 23:09 #38679renatokeuller36
ParticipantI would like the items are SEX, RELATIONSHIPS, and INTEREST CITY 25% for each of the items.
December 11, 2014 at 23:38 #38681Laura
ModeratorHello, 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 solutionDecember 11, 2014 at 23:52 #38683renatokeuller36
ParticipantRight.
Place the fields: Eu sou, procurando por, Relacionamento, Interesses e Cidade.
December 12, 2014 at 02:53 #38715Laura
ModeratorHello, 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 solutionDecember 12, 2014 at 13:10 #38742renatokeuller36
ParticipantHello 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. CidadeThanks again for the support note 10.
December 12, 2014 at 14:22 #38762Laura
ModeratorHello, 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 solutionDecember 12, 2014 at 14:29 #38766renatokeuller36
ParticipantYes 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?
December 12, 2014 at 14:51 #38772renatokeuller36
ParticipantI 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.
December 12, 2014 at 16:06 #38795Laura
ModeratorHello, point 5 fixed π
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 12, 2014 at 16:08 #38796Laura
ModeratorHello, 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 solutionDecember 12, 2014 at 16:12 #38798renatokeuller36
ParticipantHello 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.
December 12, 2014 at 16:15 #38801Laura
ModeratorHello, 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 solutionDecember 12, 2014 at 16:25 #38802renatokeuller36
ParticipantCheck 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 pageI 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.
December 12, 2014 at 16:34 #38803Laura
ModeratorHello, 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 solutionDecember 12, 2014 at 16:43 #38806renatokeuller36
ParticipantLaura found the problem. It was the plugin “Testimonial Rotator”, already deactivated.
December 12, 2014 at 16:50 #38809renatokeuller36
ParticipantBack 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?
December 12, 2014 at 17:16 #38819Laura
ModeratorHello, 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 solutionDecember 12, 2014 at 17:21 #38822renatokeuller36
ParticipantThank you Laura. With this we close the list of questions I sent you.
December 12, 2014 at 17:41 #38831Laura
ModeratorHello, 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 -
AuthorPosts
You must be logged in to reply to this topic.