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

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.

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...

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.

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.

'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

In this day and age, knowing as much detailed information as possible about your customer, prospect or web site user is essential. Thankfully, the new 'Dynamics Forms' module from Data Springs, makes it easier than ever to segment your data collection efforts.

Capture your users attention, enrich your site with multimedia flash, and create and opt in distribution list for your DNN site. These are just a few of the many features the Data Springs Module Collection can provide you.

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.

The Catalyst skins are professionally designed, coded and packaged by a team of DotNetNuke experts. The skins are available in 12 great colours. This skin is easily customisable with our unique DrNuke EasyMod technology. Try our demo!

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 . . .

    |   Register   |   Wednesday, November 19, 2008   
Data Springs Product Forums...
Subject: Implementing Terms of Service on existing website
Prev Next
You are not authorized to post a reply.

Author Messages
Xavier
Posts:3


07/30/2008 8:11 AM  

I just sent this question to the Data Springs, but I'm desperate for an answer, so I'm reposting on the forum.

I’m trying to set up our website with registration that has a user accept Terms and Conditions before continuing.

I’m currently working on a local development server. Here are the specs:

DNN version 04.06.02
Dynamic Registration version 3.2
Our site is in “verification mode”, meaning users must verify their email address before being authorized.

 

Here are the functional specs:

  • When registering, a new user must accept the user agreement before submitting
  • A current user must accept the user agreement as soon as they login to their account

 

The issue with this is that it’s being implemented on an existing site with thousands of users. Right now I’m trying to accomplish it in this manner:

There are 3 instances of Dynamic Registration on the registration page, each only viewable to one user role (‘Unauthenticated Users’, ‘Unauthorized Users’, and ‘Accepted User Agreement’).

  • Unauthenticated users only see the instance of DR that contains the required fields in a profile and the User Agreement text box
  • When a new user registers and accept the TOS, a Completion Event looks for User Agreement to be checked and then adds them to the user group ‘Accepted User Agreement’
  • Users in ‘Accepted User Agreement’ only see the instance of DR that contains all their user profile fields (required and optional) sans User Agreement checkbox and password fields
  • All existing users are added to the user group ‘Unauthorized Users’
  • When editing their profile ‘Unauthorized Users’ only see an instance of DR that contains the User Agreement and checkbox
  • When ‘Unauthorized Users’ check the box and update their profile, I have two completion events, one that adds the user to ‘Accepted User Agreement’ and one that removes the user from ‘Unauthorized Users’

The ‘User Agreement’ checkbox is also tied to a field in the user’s DNN profile.

I ended up creating stored procedures for the Completion events (pulled from examples Chad posted in the support forums) to check User Agreement checkbox and assign/remove roles.

This process works just fine for New Users. They are added to the correct roles upon registering and they are able to update their profile normally and without any issues.

My problems seem to be with the existing users. There are a couple of issues with this setup that I need help with and can’t seem to find the answer on the forums.

  1. When an existing user goes to their profile, they do only see the User Agreement and checkbox. But when the box is checked and the Save Form button is clicked this error is displayed: A critical error has occurred. Object reference not set to an instance of an object.” The user is not added to the ‘Accepted User Agreement’ role nor removed from the ‘Unauthorized Users’ role. I have deleted and recreated all 3 instances of the modules from scratch and can’t find the issue. Any ideas what could be causing this and how do I fix it?
  2. When an existing user signs in, I can’t find a way for them to be directed to the registration page automatically if they have a required field in their profile to fill out. This was easy when the core DNN profile login. I just set a field to ‘require’ and they were taken to their profile the next time they logged in. I really need a method to do this without purchasing another module. What should I do in order to get this to happen?

Thank you for any help you can give me. 

Chad
Posts:2183
river guide
river guide

07/31/2008 1:10 PM  
Hi. I responded to your email but wanted to post this here as well in case others had similar questions.

Ok.... It sounds like you have a good handle on the module

Let me see if I can answer your question:

1.) When an existing user goes to their profile, they do only see the User Agreement and checkbox. But when the box is checked and the Save Form button is clicked this error is displayed: "A critical error has occurred. Object reference not set to an instance of an object." The user is not added to the 'Accepted User Agreement' role nor removed from the 'Unauthorized Users' role. I have deleted and recreated all 3 instances of the modules from scratch and can't find the issue. Any ideas what could be causing this and how do I fix it? - We recently discovered an issue with Country field types and server side validation. I believe the issue was with Country and CAPTCHA actually. If the form field is hidden (no longer visible) and server validation is turned on, you will receive a an 'object not set to instance of object'. Can you tell me if this form might have a similar issue? Also, if you turned server side validation off temporarily do you still receive this issue. I do believe we are working on a fix, so maybe this is what is causing your problem.



2.) When an existing user signs in, I can't find a way for
them to be directed to the registration page automatically if they have a required field in their profile to fill out. This was easy when the core DNN profile login. I just set a field to 'require' and they were taken to their profile the next time they logged in. I really need a method to do this without purchasing another module. What should I do in order to get this to happen? –Yes, I wish DNN provided for a way to handle this, where it would redirect the user the ‘User page’ if their profile was not valid. Unfortunley it does not, however, you should still be able to do this using the core. If you use the standard Login module, and you also go to Admin, User Accounts, Manage User Settings, you should be able to turn on ‘force valid profile for login’. Then, under the DNN Profile Field (the one you have mapped to the dynamic field for this) make that field checked as required. What should happen is when users sign in, they will be prompted for just that field. It will show them the CORE look and feel, but for existing users I don’t know a good way around this and would at least force them to answer that property.

The ‘other’ method, would be to use our Dynamic Login module, and allow the ability to ‘Redirect based on security role’. So after login, you could redirect users to ‘Page A’ if they were in ‘Security Role A’ and other users to ‘Role B’. etc…


I hope this helps!

-Chad
Xavier
Posts:3


08/05/2008 6:49 AM  
Posted By Chad on 07/31/2008 1:10 PM

1.)  - We recently discovered an issue with Country field types and server side validation. I believe the issue was with Country and CAPTCHA actually. If the form field is hidden (no longer visible) and server validation is turned on, you will receive a an 'object not set to instance of object'. Can you tell me if this form might have a similar issue? Also, if you turned server side validation off temporarily do you still receive this issue. I do believe we are working on a fix, so maybe this is what is causing your problem.



Ended up that this issue had to do with my ignorance of the DR module. In that particular instance of the module where I had the problem, I did not create the three required fields to link to the Core DNN profile (username, password, confirm password). So, in essence, the module didn't have a profile to save the information to. Problem solved.

Posted By Chad on 07/31/2008 1:10 PM
2.)  –Yes, I wish DNN provided for a way to handle this, where it would redirect the user the ‘User page’ if their profile was not valid. Unfortunley it does not, however, you should still be able to do this using the core. If you use the standard Login module, and you also go to Admin, User Accounts, Manage User Settings, you should be able to turn on ‘force valid profile for login’. Then, under the DNN Profile Field (the one you have mapped to the dynamic field for this) make that field checked as required. What should happen is when users sign in, they will be prompted for just that field. It will show them the CORE look and feel, but for existing users I don’t know a good way around this and would at least force them to answer that property.

The ‘other’ method, would be to use our Dynamic Login module, and allow the ability to ‘Redirect based on security role’. So after login, you could redirect users to ‘Page A’ if they were in ‘Security Role A’ and other users to ‘Role B’. etc…


I hope this helps!

-Chad



I wish this wasn't the case, but I couldn't find any other way to do it. I ended up purchasing Dynamic Login so I could redirect users in a certain user role to the page with the instance of the DR module for accepting the user agreement.

We did run into an issue with the user roles though.  Originally, I had it set up that a user was assigned to a user role when they accepted the user agreement with a completion event.  I then used another completion event that ran a stored SQL procedure from another thread here that checked for a user role and deleted it.

The problem arose because our site was on a shared hosting server and this kind of database load (hundreds of users from a database of 14,000+ in a few minutes) brought the site down.  So, as a workaround, I'm not going to delete the user from the "Invalid Account" role.  When they get added to the "Valid Account" role, their next login redirects them to the Home Page instead of the Accept User Agreement page.

This is where the Dynamic Login module works very nicely.  Being able to explicitly state the priority of the Login Role Rules was essential to get this to work.

I wish we still had the ability to have users get redirected back to the previsou page if they are in a certain user role, but this will work for now.

Thanks for all your help and quick response via email, Chad!

-Xavier

You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Registration > Implementing Terms of Service on existing website



ActiveForums 3.7

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