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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Login RedirectLogin Redirect
Previous
 
Next
New Post
5/26/2008 5:16 AM
 

Hi All,

 I want to redirect the user to a page after logging in showing all the information about him and should not be visible to others.How can it be possible? Please tell me the procedure . Normally after logging in the user is redirected to the home page.I want the user to go to the page created for him and it should not be displayed in the many or others.Please help me. I tried using the user settings and roles but couid able to do correctly..

 
New Post
5/26/2008 9:19 AM
 

There are three redirect pages that can be defined on the User Settings Page (under Admin, User Accounts).




Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
6/5/2008 11:49 PM
 

Hi,

One method would be with the use of "TOKENS"

Once a person logs in much of their profile information is available in "TOKEN" format. 
If you know their user name create a page calling it by their username. 
Set the permissions on that page so only they can view or edit it.
Remember it's URL
Create another page to be a master redirect page called "Mail Box". 
Goto settings and set HTML Module Settings to ReplaceTokens
Goto the Text/HTML module that is on the page and put some thing like this in it.
"Hello [user:FirstName],"

Click here to view your Mail Box"

Now highlight the Click here to view your Mail Box and click to make it a hyperlink. 
Put this in the empty http:// address box.
First lets assume your site URL is www.DNNTokenExample.com and the users name is MyFriend
Paste the URL form the user's name page and change the text of the users name to this TOKEN [user:username]
The hyperlink address will be this www.DNNTokenExample.com/[user:username]/tabid/79/Default.aspx

This will redirect them to their personnel Mail Box page, which could have other TOKENS on it or whatever.

Token Replacement in DotNetNuke
Examples:

[Object:Properties]
Welcome [User:Username] to the forum.
Dear [User:FirstName],
[Object:Properties|Format]
[User:Username|Welcome {0} to the forum]
[DateTime:Now|D]
[Object:Properties|Format|IfEmptyReplacement]
[User:Username|Welcome {0} to the forum.|Welcome guest, please login to access the
forum.]
MSDN: Here is the link to the Date Format Info Class, this provides the format characters for
formatting the date and time tokens:
http://msdn.microsoft.com/library/default.asp?url=/library/enus/
cpref/html/frlrfsystemglobalizationdatetimeformatinfoclasstopic.asp

Tokens
Token Description

[Portal:Currency] Currency String
[Portal:Description] Portal Description
[Portal:Email] Portal Admin Email
[Portal:FooterText] Portal Copyright Text
[Portal:HomeDirectory] Portal (relative) Path of Home Directory
[Portal:LogoFile] Portal Path to Logo file
[Portal:PortalName] Portal Name
[Portal:PortalAlias] Portal URL
[Portal:TimeZoneOffset] Difference in minutes between Portal default time and UTC
[User:DisplayName] User’s Display Name
[User:Email] User’s Email Address
[User:FirstName] User’s First Name
[User:FullName] [deprecated]
[User:LastName] User’s Last Name
[User:Username] User’s Login User Name
[Membership:Approved] Is User Approved?
[Membership:CreatedDate] User Signup Date
[Membership:IsOnline] Is User Currently Online?
[Profile:<Property>]
Use any default or custom Property defined for user profiles as listed in Profile
Property Definition section of Manage User Accounts. Please use non‐localized
Property titles only.
[Tab:Description] Page Description Text for Search Engine
[Tab:EndDate] Page Display Until Date
[Tab:FullUrl] Page Full URL
[Tab:IconFile] Page Relative Path to Icon file
[Tab:KeyWords] Page Keywords for Search Engine
[Tab:PageHeadText] Page Header Text
[Tab:StartDate] Page Display from Date
[Tab:TabName] Page Name
[Tab:TabPath] Page Relative Path
[Tab:Title] Page Title (Window Title)
[Tab:URL] Page URL
[Module:Description] Module Definition Description
[Module:EndDate] Module Display Until Date
[Module:Footer] Module Footer Text
[Module:FriendlyName] Module Definition Name
[Module:Header] Module Header Text
[Module:HelpUrl] Module Help URL
[Module:IconFile] Module Path to Icon File
[Module:ModuleTitle] Module Title
[Module:PaneName] Module Name of Pane where UDT resides
[Module:StartDate] Module Display from Date
[DateTime:Now] Current Date and Time
[Ticks:Now] CPU Tick Count for Current Second
[Ticks:Today] CPU Tick Count since Midnight
[Ticks:TicksPerDay] CPU Ticks per Day (for calculations)

Hope this is helpful .

Goto the "User settings" screen found at the Admin "Users Accounts" screen and set the "Redirect after login:" to this new paged we called "Mail Box".

How when someone logs in that this is already set up for they'll be able to access their own page with just a click.

Not exactly what you asked for but maybe a workable solution.

 
New Post
6/12/2008 12:46 AM
 

Thank you John for your reply

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Login RedirectLogin Redirect


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