This topic has 10 replies, 3 voices, and was last updated 11 years by Douweboschma.
-
Author
-
November 2, 2013 at 03:50 #5699
Douweboschma
ParticipantHi, I am only getting the age field to show up in the cards. nothing else from base comes up.
I’ve tried things with the code snippet you provided for the “About me” section but nothing else shows up. Am I missing something?
Greetings,
D
November 2, 2013 at 23:12 #5753SQadmin
KeymasterHi, If you are talking about the fields that show in the members result page, here is the topic: https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 4, 2013 at 02:18 #5807Douweboschma
ParticipantYes I am and I tried that too but nothing else but the profile name and age show up.
November 5, 2013 at 11:43 #5922SQadmin
KeymasterWe have a caching done for the fields. Try adding this in your sweetdate-child/functions.php and reload the page. After that you can remove the line.
COPY CODEdelete_transient( 'kleo_bp_meta_fields' );
If the profile fields still don’t show then show us your added code because I am sure you haven’t added it correctly
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 5, 2013 at 18:16 #5983Douweboschma
ParticipantGot it…. Or at least I am getting there. There was a difference between the original base fields and the bp_members_loop_meta in the bp_members_loop_meta in functions.php
So I changed it like this:
$kleo_config[‘bp_members_loop_meta’] = array(
‘I am a:’,
‘Birth date:’,
‘City or nearest city:’,);
But still I have a problem! The age is showing the birth date with: 00:00:00 behind it.
I use ” Check this if you want to show age instead of birthdate: ” checked.
So I am saved if you can tell me how to make the birthdate into an age there too. I’ve got it right everywhere else.
November 6, 2013 at 16:16 #6071SQadmin
KeymasterGreat. You are probably using custom xprofile plugin for the date.
If you want to make use of the default date field type, set age field in Sweetdate – Buddypress – Age field. Your field type must be a Date selectorHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 6, 2013 at 21:51 #6151Douweboschma
ParticipantTaht’s a double bind because now all the profiles show their birth day again instead of age. I really want to have the age there! And the age everywhere…
November 6, 2013 at 22:11 #6152adam
Participant@Douweboschma check this out:
http://wordpress.org/support/topic/show-birthdate-in-registration-page-and-age-in-profile-pagei assume you’re using that plugin. you can use the code they provide in functions.php. just make sure your field name is Date of Birth on the registration, it will automatically convert it to Age on the profile.
November 6, 2013 at 22:39 #6156Douweboschma
ParticipantHi,
Thanks. That sounded very hopeful but the code blanked my site out.
IS there anything wrong with it?:
function my_bp_get_the_profile_field_name($name) {
if ($name == ‘Date of Birth’ && strpos($_SERVER[‘REQUEST_URI’], ‘/register’) === false) {
return ‘Age’;
}
return $name;
}
add_filter ( ‘bp_get_the_profile_field_name’, ‘my_bp_get_the_profile_field_name’, 15, 1);November 7, 2013 at 23:34 #6217SQadmin
KeymasterAdd it to sweetdate-child/functions.php … You probably added it wrong… it has to be before the ending “?>”
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 8, 2013 at 03:01 #6254Douweboschma
ParticipantErrrrr… Now I pasted it and it was great at once… 😉 EHM Sorry for disturbing for that..
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.