This topic has 18 replies, 3 voices, and was last updated 6 years by Kieran_SQ.

  • Author
  • #207518
     PcMaxx
    Participant

    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?

    #207519
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #207532
     PcMaxx
    Participant

    I 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.
    #207537
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #208778
     PcMaxx
    Participant

    I 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 CODE
    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’);
    #208868
     Radu
    Moderator

    Hi,

    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 solution
    #208878
     PcMaxx
    Participant

    The code I proved fixed the Join date issue. I want share in the event someone else needs it.

    #208934
     PcMaxx
    Participant

    Update: 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.

    #208941
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #209028
     PcMaxx
    Participant

    Update: 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.
    #209036
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #209179
     PcMaxx
    Participant

    Hi 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

    #209206
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #209219
     PcMaxx
    Participant

    Sorry 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.

    #209221
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #209222
     PcMaxx
    Participant

    Thank for you! Though which file do I replace that in? And what is replaced? I’m glad to do it so I learn.

    #209228
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #209229
     PcMaxx
    Participant

    Thank you thank you! You’re the best!

    #209251
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

Viewing 19 posts - 1 through 19 (of 19 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?