close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Need help customizing URSP

Thread began 5/07/2010 1:40 pm by Peter | Last modified 5/24/2010 11:15 am by Jason Byrnes | 1923 views | 15 replies |

Peter

Need help customizing URSP

How would I modify the files so that the registration/log-in system only worked for existing registered users? I am building a site for an organization that wants the current members to have access to members-only information and pages on the larger site. Visitors to the site would not have this additional access. I want to add the member information to the database tables that came with the solution pack. When these members registered on the site for the first time, the registration would recognize them and proceed implementing the process. Visitors that are non-members who tried to login would not be recognized in the database and the login would fail. I don't want it so that just anyone register in and automatically be added to the database tables and then have access to the members-only content. It seems like it would be possible to customize the solution pack in this way, but fairly new to working on dynamic sites and the URSP and need some advice and guidance. Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

You would need t create a recordset to filter your existing registered users table on the email address entered in the registration.

You could then use the server Validation in the CSS Form Builder extension to make sure that the recordset is not empty.

After installing the CSS Form Builder extension, you can double click the Server Validation server behavior on the server behaviors panel to edit it.


Slect Number validation, for the server variabel use "$totalRows_recordsetName" (Substitute the name of your recordset for recordsetName).

Set the minimum to 1, leave the maximum blank.

This will cause the registration to be precessed only if the users email address exists in the existing registered users table.

Sign in to reply to this post

Peter

Jason thanks for getting back. I'm excited about the possibilities of making this work but operating at 33 rpm vs. your 45. It would be a great help if you could step me through your instructions a bit more detailed how to implement what you say. I really want to get this, it would be very helpful to me and hope you'll be patient. Thanks!

Would you go ahead and set up a support ticket to help me get the solution pack working to meet my specific needs?

Sign in to reply to this post

Jason ByrnesWebAssist

OK, the first step is to create a recordset that queries your existing users table to check the email address column for the email addrress that was entered into the registration form.


This is a strait forward recordset that can be created in Simple View, Select the old usrs table, set it to return all columns, in the filtering section, select the "UserEmail" column "=" "Form Variable" "UserEmail". name the recordset "emailLookup"


The next step is to edit the server validation server behavior.

In the server behaviors list, double click the server validation server behavior.


from the list of validation types, select number validation.

for the server variable, enter:
$totalRows_emailLookup


click the plus button to add it, and set the minimum number to 1.

Sign in to reply to this post

Peter

OK I created the recordset and edited the server validation server behavior as you said. What next? I brought up the registration form to test (users_Registration_Simple.php), filled in the form and all it told me was that the email address I used is already registered. That's really the point. I want to use existing email addresses of current members of the organization (along with their password) to get them broader access to the members-only sections of the site.

Also there is a red exclamation mark next to the Universal email in the server behavior panel.

Sign in to reply to this post

Jason ByrnesWebAssist

From my understanding you have 2 user tables, right?

the existing user table and the new one for user registration.

Once an email address is registred in the user registration solution pack, it cannot be registered again.

The recordset I had you create should be querying the existing user table. It will only allow the user to register if their email is in the existing user table.

Sign in to reply to this post

Peter

Actually for the registration/log-in I'm using one table that contains the existing members. They log in with their email address and temporary password we provide and successful if the database recognizes them. If it doesn't the person would be returned to the home page and have no access to the members-only parts of the site. I'd like to add an option for members to change their temporary password if that's possible too.

Sign in to reply to this post

Jason ByrnesWebAssist

I dont follow what your are trying to accomplish.

If the user information is already entered into the users table, they do not need to go through the registration page.

They should just go to the login page to log into the site.

Once logged in, they can change their password on the profile page.

Sign in to reply to this post

Peter

This is what I'm trying to sort out. I've been using the registration / login interchangeably in the conversation. Yes basically I'm talking about user login. Since there is no documentation (that I've found anyway) that really describes all of the different components of the URSP and what they look like and do, I guess I haven't been able to talk as intelligently as I'd like about what files to work with or should be working with. For example, your references to the login and update profile pages. As a "solution pack" with many moving parts, I need a user manual, not a getting started guide that clips instructions. All I can do is tell you what I want to accomplish in some coherent way that I hope you understand and can step me through it. I'm only savvy enough with the technology to implement your instructions, like with the databases I can do the mechanics. What I need is a robust user guide with all of the details including how to implement my needs. Sorry for the rant, but this should be an easier process to resolution for both of us...

Sign in to reply to this post

Jason ByrnesWebAssist

The solution packs are Pre Built PHP Applications that where created using the WebAssist Extensions.

They where created with specific functionality to perform specific tasks.

They can be modified using the extensions to add or remove functionality, but it is not the goal of the solution packs.

If you are going to modify the functionality of the solution pack, it is very important to be familiar with the extensions that where used to create the solution.

to become familiar with the different pieces of the registration and login process that is implemented in the User registration solution pack, you should become familiar with using Security assist and the security assist documentation:
securityassist/

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...