Website Membership 1.07 Released!

By robin - January 27, 2012

Hello All,

We've just released an updated version of Website Membership. This update refines the functionality introduced in 1.06 for using a separate accounts table for website users.
http://www.interactivetools.com/add-ons/detail.php?Website-Membership-1012

NOTE: This version requires CMSB 2.13.

Here's what's new in 1.07:

MINOR CHANGES & BUG FIXES
- On save of WSM_ACCOUNTS_TABLE, if it's not accounts, encrypt passwords if needed
- Example files now use $GLOBALS['WSM_ACCOUNTS_TABLE'] instead of 'accounts' so they recognize different accounts tablenames
- Sign-up example file no longer updates the _accesslist table if using a seperate table for website users

Please let us know if you have any questions or comments.

Thanks,
Robin
Robin
Programmer
interactivetools.com

Re: [northernpenguin] Website Membership 1.07 Released!

By robin - January 30, 2012

Hi Ragi,

Looks like you found a problem with the profile page example.

You can fix it by updating line 63 from
$query = "UPDATE `{$TABLE_PREFIX}accounts` SET
to:
$query = "UPDATE `{$TABLE_PREFIX}" . @$GLOBALS['WSM_ACCOUNTS_TABLE'] . "` SET

I've also updated the profile example in the download.

Hope that helps!

Thanks,
Robin
Robin
Programmer
interactivetools.com

Re: [robin] Website Membership 1.07 Released!

By Djulia - August 6, 2012 - edited: August 6, 2012

Hi,

I would like to use a separate table. But, I would like to pre-empt the limitations.

For example, is it still possible to use the plugins websiteComments, WebsiteFavorites and WebsiteSavedSearches?

The functions lastlogindate and expiresdate, neverexpires are available or is it necessary to write a request?

Is there a schema of table which is recommended?

Thanks for your feedback!

Djulia

Re: [Djulia] Website Membership 1.07 Released!

By Jason - August 6, 2012

Hi,

There are no limitations to website favorites and saved searches when using a separate table. There has only been 1 documented bug with website comments. A temporary fix has been posted here:
http://www.interactivetools.com/forum/gforum.cgi?post=94406#94406

For schema, what works best is to use the accounts schema to create your new section. In the new section, remove the "accesslist" field.

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/

Re: [Jason] Website Membership 1.07 Released!

By Djulia - August 6, 2012

Hi,

Perfect! :)

Is there a function available for lastlogindate ?

Thanks again!

Djulia

Re: [Djulia] Website Membership 1.07 Released!

By Jason - August 6, 2012

Hi,

Yes, lastlogindate is populated the same. Also all the expiry and disable functionality is there.

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/

Re: [Jason] Website Membership 1.07 Released!

By Djulia - August 7, 2012 - edited: August 7, 2012

Hi,

I have a problem with the session variables.

I often use this code. But, with a separated table, it seems that it is not possible.

if (!defined('START_SESSION')) { define('START_SESSION', true); }
require_once 'lib/viewer_functions.php';
if (!@$_SESSION['username']) { header("Location: /"); exit; }


It seems that the session variables are not available.

Do you have an idea?

Thanks!

Djulia

Re: [Djulia] Website Membership 1.07 Released!

By Jason - August 8, 2012

Hi,

You shouldn't need to do anything with sessions, as the plugin should be taking care of that for you.

To access information about the currently logged in user, you can use the $CURRENT_USER array, which has access to all the information in the member account.

If you need to redirect if they're not logged in, try this:

if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); }

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/