Forum Replies Created
-
Author
-
LuukDriessen
ParticipantThanks again for your reply Radu, really awesome.
I implemented the code in functions.php
Also no difference.Strange thing:
Show age instead of birthdate
Enable to show members age insted of Birtdate in user profile.When changing this to OFF the age is showing.
When changing to ON, the date and time are showing.Unfortunately I also can’t get the AGE label showing.
I have 3 installs. 1 clean install. On all 3 the same problems.
When not using Xprofile the theme is working correct.
Maybe there is a way I can pay you to solve this problem?
LuukDriessen
ParticipantHello Radu,
Thank you for your reply. Really appreciate the support.
I tried to use the changes. The same problem occurs.
add_filter( ‘bp_get_the_profile_field_value’, ‘kleo_get_field_value’, 1, 2);
Question: Which ID’s I need to select? Ofcourse the field_id of the dateofbirth. But what about the other ID?The settings in the theme don’t make sense since using Xprofile.
LuukDriessen
ParticipantHello Laura,
Thanks for your response.
Unfortunately we don’t understand eachother.
I know when selecting sweetdate > buddypress I can check for age etc.
But since we make use of Xprofile to enter the users dateofbirth, the age isn’t showing anymore.
Thats why I asked these questions.
Maybe you can/want to take a look.
http://www.canna-dating.nl/inloggen
Login: LuigiD
pw: lvd817mld!
When forwarded > http://www.canna-dating.nl/wp-admin/After login:
http://www.canna-dating.nl/leden/
http://www.canna-dating.nl/leden/luigi-d/profile/All DoB are shown instead of age.
Many thanks for your support
LuukDriessen
ParticipantHello Laura,
Yes, ofcourse.
We use Xprofile to show the date of birth field.
We succesfully showed the age on the members profile.
Question 1: What do I have to do to show ‘Age’ instead of ‘DateofBirth’
Question 2: Which code do I need to use to show the ‘Age’ on the members overview page?
When activating in theme the Xprofile plugin shows the DateofBirthThanks in advance.
We had all these functions working correctly without Xprofile plugin.
So now we need to use another code?LuukDriessen
ParticipantHello Laura,
We did a clean install with Sweetdate.
We still have problems with the age/date of birth.
1. We can’t get to show ‘Age’ instead of ‘Date of Birth’ on our profile
http://www.ikbenopzoeknaarklanten.nu/leden/luigid/profile/
User: LuigiD
ww: lvd817mld!2. When in the Member overview we can only see the date of birth. We also uses the custom code from.
COPY CODE<?php add_filter( 'bp_get_the_profile_field_value', 'kleo_get_field_value', 1433); function kleo_get_field_value($value, $type, $field_id) { $value_to_return = $value; $field = new BP_XProfile_Field($field_id); if ($type == 'datebox') { $value_to_return = floor((time() - strtotime($field->data->value))/31556926); } return $value_to_return; } ?>ID 1433 is the dat of birth field. But in the examples are 2 ID’s. Maybe this is my problem?
I would be very helpful when this is solved
Thanks in advance
Gr Luuk
LuukDriessen
ParticipantHello Laura,
We also make use of this plugin. But I can’t get it to work.
We are confused with the sweetdate options.
I use the correct code in the functions.php
When viewing memberspage, I get the date and time instead of the age.
Als when viewing the profile i get: Dat of Birth intead of ‘Age’. The age self is showing correctly.
Which sweetdate options do I need to use?
LuukDriessen
ParticipantHello,
I’m still having problems with this option/solution.
I don’t make use of the Xprofile plugin.
Instead, I use: Custom Profile Filters for BuddyPressMy bp-custom.php:
COPY CODE<?php /* remove profile field links */ function remove_xprofile_links() { remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 1, 469 ); } add_action(‘bp_setup_globals’, ‘remove_xprofile_links’);?>Does anyone has any idea what to change?
1. I would like to DISABLE to search/link for username. ID:1
2. I would like to ENABLE the search/link for age. ID:2LuukDriessen
ParticipantHello Laura,
Thanks for your reply.
Most problems I could solve with other ways.
I have a different question:
A known problem: Mobile Upload Avatar can’t crop due the size.
These ‘solutions’ din’t work for me.
– https://archived.seventhqueen.com/forums/topic/mobile-1-style-editing-profile
– BuddyPress Avatar Cropper Skipper
– BuddyMobile
– Buddypress Upload Avatar AjaxDo you have any suggestions?
Gr Luuk
LuukDriessen
ParticipantI understand that this is for the KLEO theme.
Which structure/files do I need to edit on my Sweetdate Theme?
This solution would be great!
LuukDriessen
ParticipantHello Laura,
Thanks for your answer.
I checked the add-ons. I had already activated 2 of them.
But I think you mean the add-on: Xprofile fields
https://geomywp.com/add-ons/xprofile-fields/
LuukDriessen
ParticipantI´m agreeing with Leahh.
Users now needs to input their address on the location tab.
It would be perfect if we can use the ´city´ profile field on the signup form.
(When members are dating online, they mostly don’t want to use their exact location.)
Or am I missing something?
LuukDriessen
ParticipantMy new datingsite in the Netherlands: canna-dating.nl
Still developing for another datingsite. Love Sweetdate and Buddypress!
LuukDriessen
ParticipantHello Laura,
Great code.
My admin account is still showing in the recent active widget.
Also, my admin profile is also showing in the who’s online widget.Is there a solution for this too?
Thanks in advance!
LuukDriessen
ParticipantHello Laura,
I understand.
Can you point me to the file that needs to be changed?
I will contact a developer.
gr Luuk
LuukDriessen
ParticipantAwesome, thanks 🙂
I did something wrong when adding a sidebar to the members page.
Will check that again.
LuukDriessen
ParticipantOfcourse
Website: http://www.canna-dating.nl/
Log in: http://www.canna-dating.nl/wp-admin/
user: Seventqueen
pw: lvd817mlc!November 6, 2015 at 18:39 in reply to: Login/Logout not working – Register not working either #85994LuukDriessen
ParticipantAwesome! How can I missed that!
Thanks for your help 🙂
November 5, 2015 at 16:20 in reply to: Login/Logout not working – Register not working either #85719LuukDriessen
ParticipantHello Laura,
Today I logged in to my website and all the profile fields where gone.
I was wondering if maybe you are working on the website?
Have you any idea why the logout button is not working?
Thanks in advance
November 4, 2015 at 03:01 in reply to: Login/Logout not working – Register not working either #85571LuukDriessen
ParticipantLogin url: http://www.canna-dating.nl/inloggen
User: LuigiD
ww: lvd817mld!The error must be in the header. Because other login popups on different pages are showing/working correctly.
Thanks for in advance Laura 🙂
November 3, 2015 at 13:13 in reply to: Login/Logout not working – Register not working either #85458LuukDriessen
ParticipantHello Laura,
Thanks for your reply.
When I am logged out OR logged in, the profile/register/login/logout menu is not working at all.
I can’t click and there is no dropdown when I am logged in.This has nothing to do with the coming soon page.
Do you want user credentials so you can check for yourself?
October 28, 2015 at 17:40 in reply to: Login/Logout not working – Register not working either #84720LuukDriessen
ParticipantHello Laura,
Thanks for your e-mail.
I made a mistake. When I am logged in it s obvious you cant register again.
So when I’m logged out, the register page works fine!So thats one problem solved.
But the login/profile menu is still not working. Do you have any idea how I can solve this?
Gr Luuk
October 28, 2015 at 02:16 in reply to: Login/Logout not working – Register not working either #84578LuukDriessen
ParticipantUpdate*
When I use the mobile view on Chrome, the login/profile menu is working fine!
But register a new user from the main webslide is not working on a mobile device.
October 28, 2015 at 01:17 in reply to: Login/Logout not working – Register not working either #84562LuukDriessen
ParticipantI deactivated all plugins and reuploaded the theme.
Unfortunately nothing changes.
What else can I do?
-
AuthorPosts