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 ...How to forward a URL with a Username into a URL with an ID?How to forward a URL with a Username into a URL with an ID?
Previous
 
Next
New Post
3/11/2009 5:20 PM
 

Hey there,

I'm trying to troubleshoot an issue with forwarding people from my forum install (Presstopia) to their User ID page (which accepts a connection via ?id=XX URL string). From Presstopia, I can easily output http://...?username=admin ; is there anything in DNN that can accept that connection, and translate into a userid, e.g., take the incoming ?username=admin and forward into ?id=1 ? 

Thanks for any & all suggestions!

--Dave

 
New Post
3/12/2009 1:46 AM
 

Not out of the box as far as I know.


Tom Kraak
SEO Analyst
R2integrated
 
New Post
3/19/2009 4:53 PM
 

dhcrusoe wrote
Hey there,

I'm trying to troubleshoot an issue with forwarding people from my forum install (Presstopia) to their User ID page (which accepts a connection via ?id=XX URL string). From Presstopia, I can easily output http://...?username=admin ; is there anything in DNN that can accept that connection, and translate into a userid, e.g., take the incoming ?username=admin and forward into ?id=1 ? 

Thanks for any & all suggestions!

--Dave


 
Hi, Dave-
You can do this with the free SQLView module from DNNStuff.  It is a SQL module that supports querystring parameters.  To get a user's ID you'd define a query in the module's configuration options similar to "select userid from users where username = '<querystring token>' ".  The module's config page has simple instructions for using tokens in your query.

Regarding forwarding the user to a URL, modify the query to return inline JavaScript to forward the window to the URL (including the querystring userid value).
 
I have a recent post on using a similar module, Advanced Datagrid, to create a means to forward users based on user roles:

   Create a "Login Redirection" module in a few easy steps with the (free) Advanced Datagrid module 
   http://www.eguanasolutions.com/DNN_Blog/EntryID/29.aspx
 
That example includes an example of inline Javascript from a query to forward users to a new page.
 
 
Cheers!
-mamlin


esmamlin atxgeek.me
 
New Post
3/19/2009 4:55 PM
 

...and here's the link to DNNStuff:
 
  http://www.dnnstuff.com

You'll need to register (free) to get access to the free module downloads.

-mamlin


esmamlin atxgeek.me
 
New Post
3/19/2009 8:09 PM
 

 I haven't used it, or played with it at all - and this is basing it off of your SQL example (which may have been simplified from how it's actually done) - Do you have SQL Injection prevention inplace to make sure the <querystring token> isn't malicious, or can't behave maliciously?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to forward a URL with a Username into a URL with an ID?How to forward a URL with a Username into a URL with an ID?


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