Website Membership v1.04 BETA released

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

By robin - May 25, 2011

Hey Jerry,

The simplest thing to do is to replace the whole block of php at the top of each membership page (login, password-reset, user-profile and user-signup pages) with the new block from the example files. If there are any custom changes, you'll need to re-integrate them.

Hope that helps,
Robin
Robin
Programmer
interactivetools.com

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

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