March 2010
In this tutorial we enhance the OWS Login module that we have previously created and also show you how to build an OWS Twitter module.
This tutorial continues the previous Login module tutorial, so you will need to view this tutorial first:
How to Create a Custom Login Module with OWS
In this tutorial we enhance the OWS Login module by adding a "Remember Me" checkbox. We show you how to use cookies so that a users' username is remembered each time they return to the login page.
We also add a "Forgot Password" link so that the user can reset their DotNetNuke password automatically using the OWS login module. We show you how to generate a random password, email the password to the user, and then when they login, request the user to create a new password.
We also demonstrate how to create a Twitter module which pulls the search results from twitter directly into an Open Web Studio module. We show you how to access the Twitter API and format the display of the search results.
By enhancing and creating these modules we demonstrate how to use web service API queries, how to use radio buttons, control headers, working with cookies, as well as exploring some of the DNN user database properties and how to set them.
You can download the latest version of OWS from here:
www.openwebstudio.com
If you are new to OWS we recommend you first of all view the six part series on
How to Build a Knowledge Base Article Module.
The videos contain:
Video 1 - How to Create a "Remember Me" Login Feature
- Introduction
- How to add a "Remember Me" checkbox to the OWS login module
- Register Actions / Detail Template / Login form code
- How to add the checkbox to the login form
- Login Actions
- How to assign Cookies if the "Remember Me" checkbox is ticked
- How to create a "Forgot Password" link to reset a user password
- How to create the Send Password form
- How to build a random password generator
- How to capture letters from the users first name and last name
Time Length: 10min 4secs
Video 2 - How to Build a Random Password Generator
- How to use SQL to generate a random number
- How to create a new password using a combination of letters and numbers
- How to assign and save the new password to the user
- How to create the password changed success / failure message
- How to get the portal name using SQL find
- How to send an email with the new password details
Time Length: 10min 48secs
Video 3 - How to Request the User to Update Their Password
- How to require the user to update their password
- How to test if a user is required to update their password
- How to create the form for the new password
- How to easily reuse code with copy and paste
Time Length: 7min 36secs
Video 4 - How to Create a Twitter Module Using OWS
- Introduction to the Twitter module
- How to setup a Twitter search
- OWS Control Header for the search form
- How to query Twitter using an API and JSON
- Explanation of the Twitter API
- Explanation of the JSON query
- How to set the search path
- How to set the Column layout for the search results
- How to format the search results
Time Length: 6min 12secs
Total Time Length: 34min 40secs
Comments