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
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
Programmer
interactivetools.com
Re: [robin] Website Membership v1.04 BETA released
By gkornbluth - May 25, 2011
I'll do that,
Jerry
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
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
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
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
Programmer
interactivetools.com
Re: [robin] Website Membership v1.04 BETA released
By gkornbluth - May 26, 2011
I look forward to hearing what you and Dave can cook up on this.
Jerry
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
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!
interactivetools.com
Re: [Dave] Website Membership v1.04 BETA released
By gkornbluth - May 30, 2011
Appreciate the reply.
I'll try it tonight.
Jerry Kornbluth
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
Well, I tried it out.
Great solution,
So simple.
Simple is good.
Thanks again,
Jerry Kornbluth
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php