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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0user onlineuser online
Previous
 
Next
New Post
12/24/2007 5:21 PM
 

Hi sakis,

You can't just add an aspx to DNN. You have to create a module. DNN uses user controls (ascx) that it 'injects' into the Default page of the program. The good news is you can download the Visual Studio DNN stater kit from the downloads section, the same place you downloaded DNN. Get the starter kit for the version of DNN you have, not sure if this makes a difference but better safe then sorry.

After downloading the starter kit, make sure you have Visual Studio closed and double click the file to install it.

Next step is to go to Michael Washingtons DNN help and start from the beginning, the link is below. His tutorials will have you up and programming in no time.

www.adefwebserver.com/DotNetNukeHELP/

As to how to actually get the currently logged in Users Profile.

Load DNN into Visual Studio.

Select the top level directory at the top of the soulution explorer window. Select 'Add new Item'

Scroll to the bottom and select DotNetNuke Simple Dynamic Module.

Follow the directions that appear to change the name of the module.

If you have trouble with setting up the module go to the above link and take the Super-Simple tutorial.

Finally to get the Users Profile use:

                Dim CUserInfo As New UserInfo

                Dim CUserProfile As New UserProfile

                CUserInfo = UserController.GetUser(PortalId, UserId, True)

                CUserProfile = CUserInfo.Profile

                FirstNameTextBox = CUserProfile.FirstName

                LastNameTextBox = CUserProfile.LastName

 

  

The PortalID and UserID as part of the Entities.Modules.PortalModuleBase so you don't have to supply the values. You can place this code in any event that you wish.

I hope this helps.

Dan5150

 


Dan5150
 
New Post
12/26/2007 12:46 PM
 

Hi Dan,

Thanks for the input.I got the message.Just curious:

Can't I use the Iframe module instead of writinh my own module?

 
New Post
12/27/2007 2:54 AM
 

Hi sakis,

The Iframe module allows you to view a link (another website) inside the module.  If you have the certificate on another site (.html) then yes, you could show it.

But from what I get from your post is that you are looking for a module that shows a certificate with the name and stuff for completing some task.

I don't know of such a module exists so you will probably have to create your own.  This could be done using a form view and setting the image background to a 'Certificate' looking thing. If you need some help go to www.freedotnetnukemodules.com and hit the contact page and I will help you with your module creation.

 


Dan5150
 
New Post
12/28/2007 8:02 AM
 

Hi Dan,

One last question.I can understand the merits of writing an DNN module.

Why do I need to write a module when all that I need is the username of the current user?

When some one logs in I just one to grab the name which is diplayed in the top right corner.

thanks and happy new year

S

 
New Post
12/28/2007 10:44 AM
 

sakis wrote

Why do I need to write a module when all that I need is the username of the current user?

Because the optimal way to obtain this information will require very little code  Have a look at:

Super-Simple Module (DAL+) (C# and VB)

For an example of how easy DotNetNuke module creation is. Dan basically gives you the code you require for your needs in his post.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0user onlineuser online


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