Joe
|
| Posted: 05/11/2005, 8:06 AM |
|
I need a way of redirecting a user to a profile page if they have not filled one out yet. I am not sure weather I include this in the login script or weather it is on the homepage.
I am thinking of having a hidden field on the profile page with the value 1 in it. So I think I need some along the lines of if profile = 1 redirect to homepage.asp if not redirect to profile.asp. Thanks for any help in advance.
|
|
|
 |
dhodgdon
Posts: 80
|
| Posted: 05/13/2005, 10:29 AM |
|
I do something like this to check if a user has registered for a conference. I have a Yes/No column in the Users table of the database that defaults to "No" when the user creates a login. When they register, (or in your case create a profile), I put a "Yes" in that column via a hidden control in the registration form. I then can test at any time using a CCDLookUp conditioned by CCGetUserID(). This allows me to dynamically assign hyperlinks, redirect, etc.
I also have used CCS security levels and change the security level of a user based on information they fill out. That allows me to use page security settings that redirect, or hide forms, hyperlinks, etc. based on security levels. You can also test the user security level in an event and make decisions from there.
_________________
Regards,
David Hodgdon
|
 |
 |
Oper
Posts: 1195
|
| Posted: 05/15/2005, 12:02 AM |
|
Using Security Level and changed to a higher level will allow you to use internal security and the already done redirect funcions. (Work like a chamr for waht you are trying to do.
http://www.GlobalDevelop.com
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
|