Website Membership v1.04 BETA released

18 posts by 4 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 30, 2011   (RSS)

Re: [robin] Website Membership v1.04 BETA released

By gkornbluth - May 25, 2011

Thanks

I'll do that,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [robin] Website Membership v1.04 BETA released

By gkornbluth - May 26, 2011

Hi Robin,

On a different note.

I was looking for a way to redirect a cookbook subscriber to a renewal page if their subscription had expired, and found that you had already raised that question in the “error checking - logoff expired and disabled users” code section in this beta version of the membership plugin.

I think that a redirect on expiration function would be a very useful addition to the plugin.

Could it be implemented before the new version comes out of beta.

Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By robin - May 26, 2011

Hi Jerry,

Once software is in beta it's generally 'feature-frozen'.

I like your idea though, I'll forward it along to Dave to look at for the next version.

Thanks,
Robin
Robin
Programmer
interactivetools.com

Re: [robin] Website Membership v1.04 BETA released

By gkornbluth - May 26, 2011

Thanks,

I look forward to hearing what you and Dave can cook up on this.

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - May 30, 2011

Hi Jerry,

You could just add a redirect line to the top of each page (or to a common php header you load on all pages). Here's some (untested) code to point you in the right direction:

$isMembershipExpired = strtotime($CURRENT_USER['expiresDate']) <= time();
if ($isMembershipExpired) { redirectBrowserToURL("renew_now.php"); }


Just don't put that code on the page you redirect to or you'll get an infinite redirect loop! :)

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

Re: [Dave] Website Membership v1.04 BETA released

By gkornbluth - May 30, 2011

Thank you Dave,

Appreciate the reply.

I'll try it tonight.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [Dave] Website Membership v1.04 BETA released

By gkornbluth - May 30, 2011

Good evening Dave,

Well, I tried it out.

Great solution,

So simple.

Simple is good.

Thanks again,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php