Allow Users to Edit There Profile Icon on menu Bar
-
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 ?
-
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)
😉
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
EditIs it correct?
Can you send link to your web?
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
where do you need to place that avatar? Above the forum?
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 ?
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
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 😉
Will be ok to make simple theme for demo, then we can integrate to your theme.
What do you think?
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() ); ?>
Correct and many thanks
where should I place profile code ?
<?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>
This code will generate html link if you combine with code above:
<a href="[php_code]">Profile</a>
Place it above the forum maybe?
That is very helpful, I will try it and let you know if I have success 😉
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/
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 😉
Sure, you have already created an account, so I will elevate permissions
done 😉
I made mistake with my registration email. I can not verify account. Sorry, my bad.
Done
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 😉
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 ?
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 🙂
Hopefully your plugin will be approved and this will ensure WordPress and BBPRESS standards are maintained 😉
Thanks
- You must be logged in to reply to this topic.