Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Login Redirect
Previous Previous
 
Next Next
New Post 5/26/2008 3:16 AM
User is offline gayatrilaxmi
6 posts
10th Ranked


Login Redirect 

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 7:19 AM
User is offline Joe Craig
394 posts
8th Ranked


Re: Login Redirect 

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
 
New Post 6/5/2008 9:49 PM
User is offline John Bobbs
23 posts
10th Ranked


Re: Login Redirect 

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/11/2008 10:46 PM
User is offline gayatrilaxmi
6 posts
10th Ranked


Re: Login Redirect 

Thank you John for your reply

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Login Redirect
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/
Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com
Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP