Public links to user profiles
Laz75
Joined: 2013-09-16
Posts: 3 |
![]() |
Hello, I've been trying to find out if there's a way to link a username, wherever it appears, to their user profile page (like "http://[domain]/index.php/user_profile/show/30"), but found nothing. Those pages are public (well, not exactly public but they're visible to registered users) so I guess there should be a way to actually have them linked somewhere. They're a nice way to see all the photos uploaded by a certain user. Any help? Thanks! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
They're a nice way to see all the photos uploaded by a certain user. I don't see that as a way but perhaps I'm missing something. $info["owner"] = array( "label" => t("Owner:"), "value" => html::clean($display_name) ); to $info["owner"] = array( "label" => t("Owner:"), "value" => html::anchor( user_profile::url($theme->item->owner->url), html::clean($display_name)) ); Not tested but should work. Dave _____________________________________________ |
|
Laz75
Joined: 2013-09-16
Posts: 3 |
![]() |
Thank you! Unfortunately it doesn't work, it creates a link to "http://[domain]/index.php/user_profile/show" without their id at the end of the URL. (Why do you think it's not a nice way to see a user's photos? Is there a better way I'm missing?) Thanks anyway. |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
try Dave |
|
Laz75
Joined: 2013-09-16
Posts: 3 |
![]() |
I found the answer in an old post, sorry! Now it works. Thanks. |
|