YAFLogo

deusbelli
  • deusbelli
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 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: 4.0.1 BETA
13 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.

Originally Posted by: deusbelli 

It would be...

<a href="~.../User-Profile/userId/1234.aspx">DnnUsername</a>
deusbelli
  • deusbelli
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
13 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: 4.0.1 BETA
13 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