@jorgebook1
See my replies toward the bottom of the page on the following topic:
https://buddypress.org/support/topic/dynamic-urls-for-buddypress-user-profiles-friends-etc/
This is just a reference and is not all inclusive.
Thanks a lot, it was exactly what I was looking for.
I added a plugin to allow widgets to execute php and combined with the code in the other post, it just solved my problem.
Thanks again
@jorgebook1
Your welcome! Glad I could help!