Please post all pre-sales questions of all products on this forum

Externally validating data during acct creation

  • Greg d'Entremont
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #98170 by Greg d'Entremont
Externally validating data during acct creation was created by Greg d'Entremont
I'm wondering if Membership Pro can help me with this:

I manage the membership dues and web site for our RC model flying club. Memberships run Jan 1st to Dec 31st. We don't prorate.
To be a member of our club, you need to be a member of the national club. The national club website has an API that I can use to validate and receive a members National membership account status, given their last name and membership number.

Ok so far?

What I want is to split the registration to my web site into steps:
- provide national membership number, last name --> validate that pair of data against National DB
-If they are not National members, stop the user creation and put up a message explaining why.

If they are all paid up at National,
- gather all the rest --> go to payment page to complete user creation and my club dues payment.

For renewal, I expect the system to:
- revalidate the national membership using the stored data, if the stored expiry date is expired in the coming year.
..... abend if they didn't renew Nationally.
Or
- move on to the payment screen if the National membership is ok.

In the November timeframe, I want the site to start sending renewal emails, and on Jan 1st, I want to change the users "group" to public (from Registered), to lock them out from the good content.

I'm running Joomla 3.7.0, with PHP 5.6.

Thanks,

Greg

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #98171 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Externally validating data during acct creation
Hello Greg

Unfortunately, Membership Pro could not be used to handle this requirement out of the box and honestly, you will need to find a good developer to customize the system for you if you want to have it works like that

I don't think there is any extensions can handle this feature. You would have to pick one extension, then hire someone to customize it for you to have it works in the way you want (note that we are too busy now to improve our products and could not be available for this development if you want to hire us)

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Greg d'Entremont
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #98204 by Greg d'Entremont
Replied by Greg d'Entremont on topic Externally validating data during acct creation
Hi Tuan,

OK ... so I already created a new user_profile plugin that added a new field (the national membership number). And that part works, and it survived an upgrade from 3.65. to 3.7.0.

But the registration logic seems to be in ./components/com_users/models/registration.php . I'm new to Joomla, and I gather that modifying the core will make updating/upgrading difficult going forward (i.e. losing my mods). I do have intermediate programming skills ... and enough real programmers around me to get me out of a bind.

What (or perhaps where) should I mod this so that I could still make use of MembershipPro to eventually gather payments? My end goal is to free myself of chasing down cash and checks by automating it all via the web.

This registration part doesn't seem to be in any plugin or anything that I can duplicate, but I can track my edits and merge it in after the next upgrade. I have my website duplicated (on Centos at home0 and on the web.

Greg

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #98274 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Externally validating data during acct creation
Hello Greg

Honestly, I don't understand Joomla core code enough to guide you with proper instructions. Most of my time, I only works with my extension code, haven't read the code of com_users Joomla core code much yet. I still think that it can be handled by plugin but at this time, I am unsure

So Yes, for now, maybe modify code in registration.php would be OK. Guess you will have to track and restore it each time you update Joomla core but should not be much work

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham NgocGiang Dinh TruongDang Thuc Dam