YAFLogo

deusbelli
  • deusbelli
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
I am using the YAF DNN Module. How can I create a link to a different user's YAF profile based on a DNN User's ID? For Example:

DnnUsername
(where DnnUser is NOT the current user.)

Thanks.
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
Originally Posted by: deusbelli 

I am using the YAF DNN Module. How can I create a link to a different user's YAF profile based on a DNN User's ID? For Example:

DnnUsername
(where DnnUser is NOT the current user.)

Thanks.



It would be...

<a href="~.../User-Profile/userId/1234.aspx">DnnUsername</a>
deusbelli
  • deusbelli
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
12 years ago
The link doesn't work on my site, just says not found. I think that is the URL format for getting the DNN Core Forum user profile. I would like to link to the YAF profile. Right now when I click a YAF user's profile I get:

~/tabid/79/g/profile/u/2/host.aspx

To build this link I would have to include a tab id and that may change later. Is there a more graceful way to do it?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
ah Sorry, now i understand you are trying to link to a yaf user Profile based on the Dnn User Id.

That is the only way

~/tabid/79/g/profile/u/2/host.aspx

And it will work only when the User Ids of DNN and yaf are the same, which is not always the case. The Tab id is need but you could use the tab name instead

~/Forum.aspx?g=profile&u=2
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button