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 ...Logged in UserLogged in User's Email Address for query string
Previous
 
Next
New Post
3/9/2007 11:30 PM
 
I'd like to add the current logged in user's email address to a query string. What is the code? I have a URL like www.mydomain.com/?email_address= [what goes here?]
 
New Post
3/10/2007 1:11 PM
 

The e-mail address of the currentl logged in user should be available in any module control which inherits from PortalModuleBase as follows:

UserInfo.Email

Unless you need to pass the e-mail address to someplace outside of the DNN installation, I would not pass it in the query string but rather let the module control to which you are navigating obtain it on its own by referencing UserInfo.Email.  If you do need to pass the e-mail address outside of the DNN installation, please describe how your're building the query string.  Is this in a custom module you are writing or in a hard coded link in a core or third party module?


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/10/2007 5:50 PM
 

Hi Bill, many thanks. the destination in this case is a web-site that the user needs to login (with their email address) to gain access to their email. Hence I can't change how the destination software works. But I have been told by the service provider what the query string parameters are.

The users are staff in our company so I know that the email address in their DNN profile is the one they need to use to login to get access to their email. I wanted to pre-populate the destination window to make their life a little easier.

I would use iFrame as it can pass parameters, but I want a new browser window for the user to access their web-based email. The way I'm invoking the URL is from a page setting (i.e. not a module), with the following:

"java script : window.open('desinationURL');" (but without the spaces obviously)

I.e. the user selects a menu option and up pops a new browser window asking them to login for their email. Perhaps there's a better way?

 
New Post
3/11/2007 6:59 AM
 

The core navigation/menu controls do not support dynamic tag or token replacement in the link url specified in the page settings.  Perhaps there is a third party navigation/menu control that supports this but a quick look on Snowcovered did not turn up anything. I believe that this would have to be accomplished within a module or skin object.  It should not be very difficult to create a simple skin object to provide this function, but it would not be part of the standard menu.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Logged in UserLogged in User's Email Address for query string


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