Website Membership v1.01 Released

By (Deleted User) - February 1, 2010

Dave,

Do you have instructions for the Website Membership plugin that cover how to integrate with Paypal, 2Checkout, or other services for a paid membership section? Will the plugin handle different payment lengths, ie. monthly, semiannual, annual, etc. as well as the expiration date of the membership to control access?

Thanks

Re: [pchell] Website Membership v1.01 Released

By Dave - February 1, 2010

Hi pchell,

We don't have anything for tying into payment gateways yet but we're considering something like that for the future (likely as a separate plugin)

And there's no default expiry date but that can easily be added using the same expiry mechanism as CMSB and we can provide instructions for that on request.

The main features of the Website Membership plugin are the user sign-up, password reminder, login, edit your profile, user specific content, and login only content.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [alissi] Website Membership v1.01 Released

By Dave - February 2, 2010

Hi alissi,

Do you just want it to BCC you when new users sign up?

If so, open websiteMemebership.php, scroll to the bottom and add this code in red:

$mailResult = @mail($to, $subject, $message, "From: {$SETTINGS['adminEmail']}\r\nBCC: you@example.com");
if (!$mailResult) { die("Mail Error: $php_errormsg"); }


Then create a new test user account to ensure it's working.

Next, you can set the expiry date like this:
expiresDate = NOW() + INTERVAL 30 DAY,
or
expiresDate = NOW() + INTERVAL 1 MONTH,

Also note that by the expiry date currently only affects CMS login access. So to restrict website access you'll need to add a line of code. Let me know if you need that.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
hi dave, thanks ever so much for the great support as always!

setting the expiry date works perfectly!!

re the bcc:

$mailResult = @mail($to, $subject, $message, "From: {$SETTINGS['adminEmail']}\r\nBCC: you@example.com");
if (!$mailResult) { die("Mail Error: $php_errormsg"); }


does not blind copy me, nothing comes through (i tried with a couple of accounts to make sure it wasnt my email account)

i guess this could be a server issue thats not allowing me to bcc? do you know of a work around?

and yes if you could supply the code so that the website access is a matched expiry as per the cms admin access that would be much appreciated

thanks very much!!!

Re: [alissi] Website Membership v1.01 Released

i just set this up on another installation of cmsbuilder on a different server to test and the bcc code does not work there either...

Re: [alissi] Website Membership v1.01 Released

By Donna - February 2, 2010

This is one of those "well, we have to check" things, but ... did you change the "you@example.com" to your own email address? :)
Donna

--
support@interactivetools.com

Re: [Donna] Website Membership v1.01 Released

hi donna

yes i tried it with a few different email addresses i have to make sure it wasnt a problem with my email address but still no blind copy was received anywhere... i also tried bcc, Cc, cc etc and no joy..

its pretty important for us as we intend to allow the public to sign up for an account and post listings into cmsbuilder and then onto the site after our review/approval (a seperate approved field will display these listings on the site) so the email will save us entering the system if there are no new members to approve, allow us to approve listing a lot quicker when they are submitted and keep track of things a lot easier etc...

will wait for your advice [;)]

many thanks!

Re: [alissi] Website Membership v1.01 Released

By Dave - February 3, 2010

Hi alissi,

I have this working locally. It may just take a little trial and error to figure out why it isn't working on your end.

Can you copy and paste the line of code you're using?

Alternatively, if you're not in a rush we could add this feature to the plugin and beta test it on your server. That would probably take 1-2 weeks, though. The advantage to that method is your code changes won't get overwritten when you upgrade.

Let me know what works best for you.
Dave Edis - Senior Developer
interactivetools.com