-
Author
Tagged: Sweetdate gender
-
May 20, 2015 at 12:39 #59564adamdale1Participant
After six months of pain staking, searching and researching, a minimum of 8 hours a day plus! I’ve found and modified some code, to implement an avatar based on gender, but I need a tid bit of information, with this I think I’ll have the solution to having gender based avatars on registration. If it works I’ll share it on this forum, just to lay the foundation to the question. No, not using an avatar plugin! When a user registers, they select in my case either Man, Woman or Couple, under the “I am a” in the form, this information is stored in the x_bp_xprofile_data, the reference to it being used_id and field_id on the SQL databases! Now I know that this is called in some way to display it on profiles etc. It a title, function or whatever? I need a specific answer, not I don’t know but look at this to re open the maze of information I’ve already searched through.
So a simple line of code:$gender = xprofile_get_field_data(‘Gender’, bp_get_member_user_id());
But in Sweetdate it’s not called gender, so if I want to extract this data what is the reference to or code to it?
June 15, 2015 at 02:52 #62760AndreiModeratorSo if I’m correct you’re interested in fetching the gender from your user, right ?
If this is the case then in the code you’ve exemplified you just need to use the “I am a” field, or whatever is that called in your case.Let me know if you need any more help/details.
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 15, 2015 at 11:40 #62841adamdale1ParticipantAfter more extensive searching, examined bp-functions, found the following line @ line 147.
‘sex’ => __(‘I am a’, ‘kleo_framework’),
also a function $sex
at the time was trying to work out how Sweetdate searched for in my case Man, Woman or Couple from the Homepage search form, have found that the results of the search are incorrect, not displaying what is stored in the SQL database. My localhost test bed is currently out of commission due to an upgrade in Mosilla Firefox. But believe the sex is what I was originally looking for! So there are three issues I need to resolve to continue, the Fire fox, so I can test then the Sweetdate ones. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.