If I want users to be directed to different pages of my website after log in so they view content related to their subscription, is this something that would need programming? Or can this be configured without knowledge of PHP?
 |
Yes, this can be configured without knowledge of PHP.
Either you could use the 'PHP Login Interface', and using a simple PHP if statement you can control what content is displayed. For example:
<?PHP
if ($dbsub_id=="1") { # If the user's subscription ID is 1.
print "Content for subscription group 1.";
} elseif ($dbsub_id=="2") {
print "Content for subscription group 2.";
}
?>
|
If you do not wish to use PHP you can setup seperate member's area directories for each subscription group, if you do not want to setup multiple links to your member's areas then you can use the login.cgi tool which is located in the same directory as register.cgi. When loaded this will display a form requesting the user's username, upon completing the user is redirected to the appropriate member's area for their account and is required to login using the pop-up login interface.
 |
|
|
Article Details

Last Updated: 18 October 2008 14:07:32 Revision Number: 0 [Update this article] Article viewed 7043 times. |
|