Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Sharepoint Forums
Product Forums
Newsletter
Dynamic Forms Demonstrations
Page Tags
DNN Modules
SnowCovered Top Sellers

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this featur

Live Content uses Web 2.0 approach to provide a Rich User Interface and streamlines content presentation by overlaying content on current page. Overlay images, videos, audio, text/html content, flash, dotnetnuke modules, and external content. Experience the demo...

Version 5 of the perennial best-selling tool for creating data-based solutions in DNN without custom programming. This version focuses on greater flexibility, expandability, and ease-of-use.

Powerful, Ajax Enabled, Easy to Use. Document Management has never been better. Open-DocumentLibrary allows DotNetNuke users to share and manage documents in a flexible, intelligent way, offering granular control over Folder and Document access.

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to add videos in various format and automatically convert them to flv format, you also can add videos from embed code and play them in our integrated flash video player.

Gloss is the first ALL COLORS! skin, featuring a powerful XML-based flash and being 100% W3C CSS XHMTL1.0 compliant. Tune it yourself on the fly, changing colors, backgrounds, containers, text color and size, width and more! Brilliant!Available for DNN4 and DNN5

The award winning discussion forum and community solution for DotNetNuke is now even better. When you need to build the best community site, you need the best module, Active Forums!

ALL NEW ! - Minimalist includes skin packs in 12 great colors. Each color has Flat, Gradient and Glass versions. Feature rich XML Flash header, perfect for just about any purpose. 9 Different menu options in each skin pack; 3 horizontal menus, 3 vertical menus and 3 all-new Twin level menus . . .

Edit documents directly on your server. The premier document management solution for DotNetNuke (DNN). Index contents of documents. Share documents across your portal and avoid duplicates. Revised and flexible UI. Extensible architecture.

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

    |   Register   |   Wednesday, January 07, 2009   
Data Springs Product Forums...
Subject: Age of 18 validation
Prev Next
You are not authorized to post a reply.

Author Messages
David
Posts:1
new to the springs
new to the springs

09/14/2007 12:48 PM  

Please help!! I've been trying everything but can't make it work...

So here's the thing, I want to ask users if they're 18 or not, if not you get redirected to a page saying "Sorry you have to be 18 years old... blah blah" but if you are 18 then you can proceed to register...

What I did is, If the user is not 18, he or she gets redirected to another page, but still gets registered. How can I avoid that?

Chad
Posts:2385
river guide
river guide

09/17/2007 9:13 AM  
David,

Hi. You could use just require that they are 18 before registration takes place (i.e. make a checkbox field required or make them type in 'YES' using a regular expression validation). Other options would be to:

1. Setup a SQL Event that would 'UnAuthorize' them. This would be a SQL Statement that would need to update the aspnet_Membership membership table (either the IsApproved or IsLockedOut column) and you would want to execute the Dynamci SQL Event only if the user was not 18. The only other option here would be to set the registration to private under Admin, Site Settings, Advanced, and then execute a SQL Statement that would 'Authorize' them if they were 18.

2. Maybe set registration to private and fire off an email to an administrator to authorize them if they are 18.

3. Maybe set registration to public and fire off an email to unauthorize the user if they are not 18.

There are a few options here but to get the most 'Automated' you would want to possibly use a SQL Event to either delete the user or unauthorize the user. If you wanted to keep it simple you could just delete from the userportals table, or set them to be unauthorized for that portal. Something like:

Update UserPortals Set Authorised = 'False' where UserID = $(UserID)

That SQL Query/Event might be your easiest solution that fits the bill but the user would still exist in the registration system, just not authorized to sign in.

-Chad
You are not authorized to post a reply.



ActiveForums 3.7

Copyright 2005 - 2009 by Data Springs, Inc.
Terms Of Use | Privacy Statement