We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Expire Users with SCM Extension & Cron Job -- Does this work?

Development and Programming

marcamos's avatar
marcamos
57 posts
15 years ago
marcamos's avatar marcamos

Hello all,

After reading through this thread, it seems like additional development is unlikely, since the extension does so much, so well (great work, gents). I have to admit that, even though I read through it, some parts aren’t clear.

I still question whether or not this extension can do what I need it to do. In fact, before discovering this thread, I had create a new one asking for advice on how to accomplish a short list of goals that a client project requires. From that thread:

Hello all, I’ve got a potential project on my radar that will require a new member registration form that allows the following to happen, yet I’m not sure how I’d pull of all of the requirements without doing some custom PHP (I’d like to avoid this): I’d use the existing register form, but with the following tweaks: - There’s a select/option element that allows the visitor to select one of three different member types (each of which aligns with three different types of member groups in the Control Panel). - Each of the three member types has an associated fee. $5 Individual / $10 Business / $15 Sponsor, for example… - When the form is filled out and submitted, the visitor is brought over to a PayPal payment page with one of the three above amounts predefined, allowing the visitor to punch in payment information, etc. - Once PayPal has accepted the payment, the visitor is brought back to the EE registration form and it’s finalized/saved/etc. Is this possible with a default version of EE, or is there at least a module (free/pay/doesn’t matter) out there that provides this very thing? Many thanks, in advance, for your advice.

I’m in the process of determining whether or not one of their goals is to have recurring payments (annually) and expiration, or if the above mentioned fees are one-time fees … I know the extension discussed in this thread primarily focuses on the expiration and move-the-member-to-a-new-group features … but I wonder if a) it’s the right extension for my needs, above, and b) if it can handle the three different types of ‘purchases’ I mention above.

Thanks for any advice provided!

       
Ryan M.'s avatar
Ryan M.
1,511 posts
15 years ago
Ryan M.'s avatar Ryan M.
I don’t think I’ll take a crack at expanding this at all. I’d like to think that with the latest update to FoxEE Cart that any future memberships I’d do would be through that. I was just trying to get from Point A to Point B as quickly as possible so I could get devot:ee membership up and running quickly.

As I mentioned before, I’m trying to move away from this extension to use FoxyCart (which does subscriptions and recurring billing and is generally pretty awesome) and the FoxEE module (of which, I’ll say it again: I am not a fan). There really aren’t too many other decent options for ExpressionEngine that I’m aware of at this time.

       
koala kid's avatar
koala kid
71 posts
15 years ago
koala kid's avatar koala kid

Hi all,

I’ve just installed the Masuga version of the plugin (thanks very much for your hard work) and everything seems to be working. However I can’t find instructions on how to get the CRON script working and how to test it. Apologies if I’m missing some post but there doesn’t appear to be an official documentation anywhere?

Thanks.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
15 years ago
Ryan M.'s avatar Ryan M.

You need to set up a cron job on your server that can call the page that has the PHP code you want to execute at certain intervals. For example, when I was using the Expire Users extension on devot:ee, I had a template that had all the member expiration functions, and I would call it like this:

curl h++p://devot-ee.com/path/to/users-expire/ >/dev/null 2>&1

While I was testing I set that to run every minute (or other small interval) and when I was satisfied things were working I set it to run once a day.

An example of running it every three minutes:

*/3 * * * * curl h++p://devot-ee.com/path/to/users-expire/ >/dev/null 2>&1

And running it once a day in production:

0 0 * * * curl h++p://devot-ee.com/path/to/users-expire/ >/dev/null 2>&1

At this time I set this up, the site was on a server running cPanel, and I manipulated the cron jobs while logged into cPanel.

       
First 4 5 6

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.