-
Author
-
August 26, 2018 at 18:28 #207518PcMaxxParticipant
Hi there,
Is there a Profile field that can display members start date or active date? I don’t want my members (which is over 10,000), to think we have BOTS. I want the new sign-ups to display a start date or JOIN date. Is this possible and did I just over look it?
August 26, 2018 at 18:36 #207519Kieran_SQModeratorHi,
This is not a feature of the theme and is not something standard in BuddyPress. You can however build something yourself using the WordPress user meta user_registered
See here for an example https://wordpress.stackexchange.com/questions/77876/display-user-registration-date/77878
And here for the WordPress codex
https://codex.wordpress.org/Function_Reference/get_userdata
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
August 26, 2018 at 22:55 #207532PcMaxxParticipantI was able to find the following coa via another newer source and it works! Put it in the functions.php in your child theme. Or you can create a plugin and put it in the mu-plugins. Here is exactly how it looks. Please share with others on this site as a quick fix.
Now, the next step would be to move this to the Member Profile to the right so its not munged. Any idea how to do that?
I put the following exact code in the functions.php
function bp_register_date() {
global $bp;
$currentuser = get_userdata( $bp->displayed_user->id );
$joined= date(‘F jS, Y’, strtotime($currentuser ->user_registered));
echo ‘Member since: ‘ . $joined . ”;
}
add_action(‘bp_member_header_actions’, ‘bp_register_date’);Attachments:
You must be logged in to view attached files.August 26, 2018 at 23:03 #207537Kieran_SQModeratorHi,
For others to use that code you will need to share it again using a code tag (from the reply box) before and after the code. As is stands the formatting has been stripped and would cause a potentially fatal error for another user.
With regards to placement, do you mean align the text right or change the location your calling it in? To align the text you’ll need to echo some HTML for the text so you can have a custom class or ID to target. To change where you’re calling this you’ll need to change bp_member_header_actions to any other BuddyPress hook as desired.
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 7, 2018 at 04:40 #208778PcMaxxParticipantI was able to find the following code via another newer source and it works! Put it in the functions.php in your child theme. Or you can create a plugin and put it in the mu-plugins. Here is exactly how it looks. Please share with others on this site as a quick fix.
Now, the next step would be to move this to the Member Profile to the right so its not munged. Any idea how to do that?
I put the following exact code in the functions.php
COPY CODEfunction bp_register_date() { global $bp; $currentuser = get_userdata( $bp->displayed_user->id ); $joined= date(‘F jS, Y’, strtotime($currentuser ->user_registered)); echo ‘Member since: ‘ . $joined . ”; } add_action(‘bp_member_header_actions’, ‘bp_register_date’);
September 7, 2018 at 19:08 #208868RaduModeratorHi,
Where more precisely in member profile ?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 7, 2018 at 20:26 #208878PcMaxxParticipantThe code I proved fixed the Join date issue. I want share in the event someone else needs it.
September 8, 2018 at 03:15 #208934PcMaxxParticipantUpdate: Now its missing. I’m guessing because it was code was added in the Child Theme. Now that its disabled, the Join Date is missing.
September 8, 2018 at 11:06 #208941Kieran_SQModeratorHi,
Thanks for sharing a clean copy of the code you have used with the community. As per your other reply, you are correct, when disabling the Child theme no custom code can run from the Child theme’s functions.php file. You can always add this code into a custom plugin if needed.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 9, 2018 at 08:26 #209028PcMaxxParticipantUpdate: I made the Plugin as instructed and the “Member Since” is displaying on the Member Profile now; but a little munged. Please see attached Image so you can see where I want to move it. I’d like to move it under the Username/Alias or under the Member Profile. Is this possible?
Attachments:
You must be logged in to view attached files.September 9, 2018 at 11:39 #209036Kieran_SQModeratorHi,
You can try changing the hook that you’re using, bp_member_header_actions, to any of the below hooks to move this snippet around a little in the BuddyPress profile header.
bp_before_member_header, bp_profile_header_meta, kleo_bp_before_profile_name, bp_before_member_header_meta, kleo_bp_after_profile_name, kleo_bp_after_profile_image and kleo_bp_header_actions
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 10, 2018 at 15:48 #209179PcMaxxParticipantHi there,
A little help here. Can you tell where to find the ‘bp_member_header_actions’. I’ve looked and searched every where. Still, I know its there somewhere.
Thanks
September 10, 2018 at 18:24 #209206Kieran_SQModeratorHi,
I am not sure I understand the question. Are you asking where it is visually on a members profile – as in where the content is rendered? If so it is the buttons like add friend, message, public message etc etc
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 10, 2018 at 19:20 #209219PcMaxxParticipantSorry about that. I’m trying to get it positioned in the member profile about their profile picture, and under the Alias. In my case, the Alias @pcmaxx.
September 10, 2018 at 19:23 #209221Kieran_SQModeratorHi,
Try using kleo_bp_after_profile_name it should work for you
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 10, 2018 at 19:24 #209222PcMaxxParticipantThank for you! Though which file do I replace that in? And what is replaced? I’m glad to do it so I learn.
September 10, 2018 at 20:24 #209228Kieran_SQModeratorHi,
You need to change the last line of the custom code you shared here.
Change it from
add_action('bp_member_header_actions', 'bp_register_date');
To
add_action('kleo_bp_after_profile_name', 'bp_register_date');
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 11, 2018 at 01:42 #209251Kieran_SQModeratorHi,
You’re welcome. Feel free to open a new ticket with any other issues/questions and we’ll be happy to help.
All the best,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
You must be logged in to reply to this topic.