Skip to:
Content
Pages
Categories
Search
Top
Bottom

Allow Users to Edit There Profile Icon on menu Bar


  • uksentinel
    Participant

    @uksentinel

    I am trying to create (and have been for a few days) a way to do exactly what happens when you log into this wonderful bbpress.org forum, after logging in you can then select your user icon with the users name and enable them to edit there own bbpress profile details.

    How do I do this simply ?

Viewing 25 replies - 1 through 25 (of 25 total)

  • uksentinel
    Participant

    @uksentinel

    FYI – My WordPress and BBPress installations are up-to-date and I have an Icon in the Toolbar which when clicked, goes to three option (Dashboard – Change Password and Log-Out) but does not give access to users topics and post being created etc.

    If I use the Widget BBPRESS LOGIN LINKS Widgets – and click on the icon, then it gives me access to the profile details I am looking for, but I would like to use this profiles option for the menu (not wideget)

    😉


    hellojesse
    Participant

    @egyptimhotep

    Allright, so let me clarify what you need.

    Some avatar maybe above the page when user is not logged in, it will show some menu with somelinks. Anthe when user log in updated menu for logged in users.

    For logged in users links:

    Profile
    Topics Started
    Replies Created
    Engagements
    Favorites
    Subscriptions
    Edit

    Is it correct?


    hellojesse
    Participant

    @egyptimhotep

    Can you send link to your web?


    uksentinel
    Participant

    @uksentinel

    Hi @egyptimhotep

    Almost, when I user logs in, and selects there default avatar located at top right of screen, they then have access to (Passwords change, Profile and Log-Off) but I am looking to change that link / avatar so that the user has access to there replies / Profile Topics Started / Replies Created / Engagements / Favorites / Subscriptions / Edit as you described above

    Very much like what happens on this forum 😉

    Thank you

    https://uktechhub.com/forums/


    hellojesse
    Participant

    @egyptimhotep

    where do you need to place that avatar? Above the forum?


    uksentinel
    Participant

    @uksentinel

    ideally yes, I have an avatar there already, but it is only visible to logged in users (

    I can unhide it if this helps you understand better ?


    uksentinel
    Participant

    @uksentinel

    The key to my question is I cannot create a link to a users bbpress profile

    This is mine on my URL

    https://uktechhub.com/forums/users/uk-sentinel/ as an example as the variable for username changes with each logged in users name ?

    this is my profile link on BBPRESS.org

    https://bbpress.org/forums/profile/uksentinel/


    uksentinel
    Participant

    @uksentinel

    Alas I am only a amature in terms of coding – so do not understand how to put in a variable to represent that logged in users (username) in the hyperlink

    https://uktechhub.com/forums/users/????????/

    ???????? = (currently logged in user)

    https://uktechhub.com/forums/users/uk-sentinel/

    Such fun 😉


    hellojesse
    Participant

    @egyptimhotep

    Will be ok to make simple theme for demo, then we can integrate to your theme.

    What do you think?


    hellojesse
    Participant

    @egyptimhotep

    SSo, you said you need dynamic url to user bbpress profile. Correct?

    This code will generate profile url

    <?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>


    uksentinel
    Participant

    @uksentinel

    Correct and many thanks

    where should I place profile code ?

    <?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>


    hellojesse
    Participant

    @egyptimhotep

    This code will generate html link if you combine with code above:

    <a href="[php_code]">Profile</a>

    Place it above the forum maybe?


    uksentinel
    Participant

    @uksentinel

    That is very helpful, I will try it and let you know if I have success 😉


    hellojesse
    Participant

    @egyptimhotep

    Sure, contact anytime. 😉

    This can help as well.

    We can use action hook. Here is explation how to use it. There are files where you can find the place.

    https://codex.bbpress.org/bbp_theme_before_forum_title/


    uksentinel
    Participant

    @uksentinel

    The Profile works as a hyperlink, but I am unable to get the link to a users profile by combining the php code into the Profile html link

    Could you detail how I combine the two code sources to work together ?

    I have realized I cannot code ;-(


    hellojesse
    Participant

    @egyptimhotep

    Combined html with php

    <a href="<?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>">Profile</a>

    Can you share theme? I will customize it and you will just activate it 😉


    uksentinel
    Participant

    @uksentinel

    Sure, you have already created an account, so I will elevate permissions


    uksentinel
    Participant

    @uksentinel

    done 😉


    hellojesse
    Participant

    @egyptimhotep

    I made mistake with my registration email. I can not verify account. Sorry, my bad.


    uksentinel
    Participant

    @uksentinel

    Done


    uksentinel
    Participant

    @uksentinel

    Sorry, I changed my mind about granting you access, way to risky for me

    Happy to be told what to do – but my site is my baby 😉


    hellojesse
    Participant

    @egyptimhotep

    @uksentinel,

    absolutely.

    Can I assist you with anything else uksentinel?

    Feel free to contact me.


    uksentinel
    Participant

    @uksentinel

    If you could explain the whole process of what I need to do, and the code needed and where it goes, then I am sure others would be interested in reading this thread ?


    hellojesse
    Participant

    @egyptimhotep

    Sure,

    1. Indentify template file of forum index in template directory of plugin and copy it to your theme, but place it in bbpress folder.

    2. place the code what I have sent, you have link above the forum to profile.

    I can do same as profile menu as is here above forum, but it require more coding and probably you will experience difficulties with integration. Only solution is I can send you custom theme to demonstrate what I can do 🙂


    uksentinel
    Participant

    @uksentinel

    Hopefully your plugin will be approved and this will ensure WordPress and BBPRESS standards are maintained 😉

    Thanks

Viewing 25 replies - 1 through 25 (of 25 total)
  • You must be logged in to reply to this topic.
Skip to toolbar