Website Membership Multiple sign-up pages
3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: February 14, 2011 (RSS)
By sidcam - February 12, 2011
I have just purchased Website Membership, Favorites and Saved Searches and am going through my installation(s) and have a few questions.
Website Memberships:
1) Can I have multiple sign up pages on my website? I currently have form submissions on the website that generate an email directing people to a password protected page (via htaccess). Was thinking I might be able to just implement a universal login so they just sign up once for everything.
If so, would that be handled in the websitememebership.php file in this fashion...
$GLOBALS['WEBSITE_LOGIN_SIGNUP_URL1'] = 'location1/signup.php';
$GLOBALS['WEBSITE_LOGIN_SIGNUP_URL2'] = 'location2/signup.php';
2) Is it possible to have a login button on every page (or a group of pages) that takes the user to a defined login page (or opens in a popup) and then have it redirect back to the previous page the user was viewing (or close the popup)? That way the login feature is available throughout the website and doesn't require them to jump to a specific page at that time.
3) I was thinking about using Memberships for both website visitors as well as to create a password protected intranet for my employees. But those are obviously two different types of users. Is there an out of the box way that already exists to "tier" the data a logged in user sees? Like if they just sign up on a webpage they see "protected data level 1" but if the admin give them access to "protected data level 2" they can also see it? I could also see tiering the data level website visitors see (like simple website signups see protected data level 1 and after people go through a confirmation process they see level 2).
4) Is there an existing out of the box way to make the system generate an alert email to an admin (and/or other internal user(s)) when a new member signs-up?
Thanks
Sid
Website Memberships:
1) Can I have multiple sign up pages on my website? I currently have form submissions on the website that generate an email directing people to a password protected page (via htaccess). Was thinking I might be able to just implement a universal login so they just sign up once for everything.
If so, would that be handled in the websitememebership.php file in this fashion...
$GLOBALS['WEBSITE_LOGIN_SIGNUP_URL1'] = 'location1/signup.php';
$GLOBALS['WEBSITE_LOGIN_SIGNUP_URL2'] = 'location2/signup.php';
2) Is it possible to have a login button on every page (or a group of pages) that takes the user to a defined login page (or opens in a popup) and then have it redirect back to the previous page the user was viewing (or close the popup)? That way the login feature is available throughout the website and doesn't require them to jump to a specific page at that time.
3) I was thinking about using Memberships for both website visitors as well as to create a password protected intranet for my employees. But those are obviously two different types of users. Is there an out of the box way that already exists to "tier" the data a logged in user sees? Like if they just sign up on a webpage they see "protected data level 1" but if the admin give them access to "protected data level 2" they can also see it? I could also see tiering the data level website visitors see (like simple website signups see protected data level 1 and after people go through a confirmation process they see level 2).
4) Is there an existing out of the box way to make the system generate an alert email to an admin (and/or other internal user(s)) when a new member signs-up?
Thanks
Sid
Re: [sidcam] Website Membership Multiple sign-up pages
By sidcam - February 14, 2011
On #3, if I create a yes/no field in the Users Account called "internal_user" and check it as Yes, is there a way to add a second condition to:
<?php if ($CURRENT_USER): ?>
So only currently logged in users that are checked yes as internal users can see the content (instead of all logged in users)?
Thanks
Sid
<?php if ($CURRENT_USER): ?>
So only currently logged in users that are checked yes as internal users can see the content (instead of all logged in users)?
Thanks
Sid
Re: [sidcam] Website Membership Multiple sign-up pages
By Jason - February 14, 2011
Hi Sid,
You can have as many signup pages as you like, however, there isn't a way to set multiple signup pages in the plugin. Giving the address of a signup page in the login is for setting up automatic redirects. If you want to do these redirects manually, then there isn't a limit on how many you can have.
Yes, this is possible. You can set $GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] in your code to redirect to whichever page you want.
The best way to achieve this is to set a new field in the accounts section. Any field you create here will be put into the $CURRENT_USER variable once a user logs in. So in your example, you can use this:
No, the plugin doesn't come with this functionality. However, you can customize the plugin to send emails if you like.
It's important to note that most of the features you're trying to implement go beyond the basic features on the plugin and will require some work to implement.
Hope this helps
1) Can I have multiple sign up pages on my website? I currently have form submissions on the website that generate an email directing people to a password protected page (via htaccess). Was thinking I might be able to just implement a universal login so they just sign up once for everything.
You can have as many signup pages as you like, however, there isn't a way to set multiple signup pages in the plugin. Giving the address of a signup page in the login is for setting up automatic redirects. If you want to do these redirects manually, then there isn't a limit on how many you can have.
2) Is it possible to have a login button on every page (or a group of pages) that takes the user to a defined login page (or opens in a popup) and then have it redirect back to the previous page the user was viewing (or close the popup)? That way the login feature is available throughout the website and doesn't require them to jump to a specific page at that time.
Yes, this is possible. You can set $GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL'] in your code to redirect to whichever page you want.
I was thinking about using Memberships for both website visitors as well as to create a password protected intranet for my employees. But those are obviously two different types of users. Is there an out of the box way that already exists to "tier" the data a logged in user sees? Like if they just sign up on a webpage they see "protected data level 1" but if the admin give them access to "protected data level 2" they can also see it? I could also see tiering the data level website visitors see (like simple website signups see protected data level 1 and after people go through a confirmation process they see level 2
The best way to achieve this is to set a new field in the accounts section. Any field you create here will be put into the $CURRENT_USER variable once a user logs in. So in your example, you can use this:
<?php if ($CURRENT_USER['internal_user): ?>
4) Is there an existing out of the box way to make the system generate an alert email to an admin (and/or other internal user(s)) when a new member signs-up?
No, the plugin doesn't come with this functionality. However, you can customize the plugin to send emails if you like.
It's important to note that most of the features you're trying to implement go beyond the basic features on the plugin and will require some work to implement.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/