Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsSkinsSkinsLink to current user's account pageLink to current user's account page
Previous
 
Next
New Post
6/14/2013 6:06 AM
 
I know everything ;-) No... I looked for the code in the user skin object.
You could have a look in the code of the User module..
 
New Post
6/14/2013 10:48 AM
 

I assumed you're building a site and just need this to work on it... which the bit I made up will do it. If you're building a skin for sale or something, and it needs to work on any random site then yes it's going to need more. The portal-assigned profile page will be in there... Timo will probably know where it is.

Or save yourself the trouble and just use the built in profile module as is. You don't have to use any social networking stuff... just delete that off the page. In the profile module settings is a template where you can make it display the profile nicely and it'll put the edit button underneath..  it looks as good as you make it look and it's not hard for people to figure out where to click to edit.

Rob

 
New Post
6/14/2013 10:51 AM
 
I just found out that UserProfileURL takes you to a page specified in the site settings (which by default is the activityfeed. There's quite a list to choose from: any page you created, all kinds of admin pages, even the recycle bin. "...My Profile" comes close, but "...My Account" is not an option. :'(

The my account page has some unknown module on it, which does not seem to be listed in the "add new module" list. If I could use that module, I could create my own page with only that module on it and configure that page as profile page.
 
New Post
6/14/2013 11:19 AM
 

AFAIK the profile is a part of the module, I don't think you can get a direct link from the API.
The module you see is the View Profile Module, it is tempalte based and has this in the template:[HYPERLINK:EDITPROFILE] / [HYPERLINK:MYACCOUNT]to render the link to the link to edit profile / my account.

Code of this module can be found in:
DesktopModules/Admin/ViewProfile/ViewProfile.ascx.cs

This code that gets the Edit profile URL (around line 116):
Globals.NavigateURL(ModuleContext.PortalSettings.ActiveTab.TabID, "Profile", "userId=" + ProfileUserId, "pageno=3")

Globals.NavigateURL(ModuleContext.PortalSettings.ActiveTab.TabID, "Profile", "userId=" + ProfileUserId, "pageno=1"); 

But it uses the module context, so I'm not sure it's of any use, but maybe it gets you on the right path..

 
New Post
6/14/2013 11:41 AM
 
Thanks, I'll look into it after the weekend. The token I might be needing is [HYPERLINK:MYACCOUNT] but I'm not sure where/how to use these tokens.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsSkinsSkinsLink to current user's account pageLink to current user's account page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out