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...Using Modules a...Using Modules a...Register/User TokenRegister/User Token
Previous
 
Next
New Post
7/27/2011 12:04 PM
 
Hi Guys,

I have DNN 6 working perfectly but I have one issue that is annoying me.
If I click on the register link under account login a box appears with the register form.

How do I recreate this in a html module. 

Basically I have a button that says Signup. And when clicked it calls www.mydomain.com/register.aspx
I want it to bring up the popup box like the new account login register button does.
So when they click on the image it loads the popup with the register form inside.

Thanks
Paul
 
New Post
7/28/2011 12:37 AM
 
Here is the basic html structure u need to add to your page to make your signup button open a popup.

<a  onclick="return dnnModal.show('http://www.yourdomain.com/register.aspx?returnurl=http%3a%2f%2fwww.yourdomain.com%2fDef...
&;popUp=true',/*showReturn*/true,600,950)"
href="http://www.yourdomain.com/register.aspx
?returnurl=http%3a%2f%2fwww.yourdomain.com%2fDefault.aspx"
>Register Here can be an image instead of text</a>

All the work is done in the onclick= call - this tells the web browser to run a script called dnnModal.show() when the user clicks on your link.

This script creates a popup window and opens the included link:
'http://www.yourdomain.com/register.as...http%3a%2f%2fwww.yourdomain.com%2fDef...

This link points to your register.asp page and also passes in a returnurl - which should point to the page your button was on.
Note that the returnurl= section has to be urlencoded - meaning that special characters like the : and / have been replaced by they %3a and %2f escaped counterparts.

Westa
 
New Post
7/28/2011 12:52 AM
 
While this works its not for everyone - I can see some good value in a couple of new token being added to the HTML module that maybe help out this. A token in the frame work that looked something like this would be very useful.

[popup:targeturl:mytext:size:width]  and maybe [popupReturnURL:targeturl:mytext:size:width] to automatically include the returnurl= of the current page.

Westa
 
New Post
7/28/2011 1:00 AM
 
Hmmm the forum layout editor keeps eating the code. But hopefully u get the idea. Have a look at the html source code for your home page around the area of the Register button. Westa
 
New Post
7/29/2011 8:24 PM
 
Need code so that mydomain.com/register.aspx can become POPUP:Register.aspx or something like that so I can keep my site looking cool.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Register/User TokenRegister/User Token


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