- Posts: 7
- Thank you received: 0
Please post all pre-sales questions of all products on this forum
OSM MEMBERSHIP PRO UPGRADE
- STEFANO
- Topic Author
- Offline
- New Member
-
Less
More
9 years 8 months ago #68056
by STEFANO
OSM MEMBERSHIP PRO UPGRADE was created by STEFANO
Hi, I have Membership Pro 1.5.4 installed on Joomla 2.5. It's all ok from 3 years. Now I need to create a custom field "codice fiscale" ( tax code) and I need to verify if "codice fiscale" is a real tax code for italian law.
I have a PHP script to do this thing. Now...I need a new version of Membership pro to embed this script or I can do this with my version?
when upgrading (if I need to do) what currently works perfectly it may no longer work? because now it works really well.
many thanks
Stefano
I have a PHP script to do this thing. Now...I need a new version of Membership pro to embed this script or I can do this with my version?
when upgrading (if I need to do) what currently works perfectly it may no longer work? because now it works really well.
many thanks
Stefano
Please Log in or Create an account to join the conversation.
- What No Website
-
- Offline
- Platinum Member
-
- Full Stack Developer
9 years 8 months ago #68059
by What No Website
Joomla & Hand Coded Web Design
What no Website
Replied by What No Website on topic OSM MEMBERSHIP PRO UPGRADE
Hi Stefano
I'm running Membership Pro 1.6.8 and there's an option "Custom Fields". Here you can add a custom field for users to insert anything you like from weight to tax codes or anything you like.
That field appears on the signup form.
I'm running Membership Pro 1.6.8 and there's an option "Custom Fields". Here you can add a custom field for users to insert anything you like from weight to tax codes or anything you like.
That field appears on the signup form.
Joomla & Hand Coded Web Design
What no Website
Please Log in or Create an account to join the conversation.
- STEFANO
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
9 years 8 months ago #68062
by STEFANO
Replied by STEFANO on topic OSM MEMBERSHIP PRO UPGRADE
Hi, thanks.
Yes I know custom fields, but I need to embed a verification formula for the data inserted from user.
Where / how can I embed a little php script to do this check?
Thanks
Stefano
Yes I know custom fields, but I need to embed a verification formula for the data inserted from user.
Where / how can I embed a little php script to do this check?
Thanks
Stefano
Please Log in or Create an account to join the conversation.
- What No Website
-
- Offline
- Platinum Member
-
- Full Stack Developer
9 years 8 months ago #68063
by What No Website
Joomla & Hand Coded Web Design
What no Website
Replied by What No Website on topic OSM MEMBERSHIP PRO UPGRADE
Explain "verification formula" Stefano.
Do you mean a Captcha field...?
Do you mean a Captcha field...?
Joomla & Hand Coded Web Design
What no Website
Please Log in or Create an account to join the conversation.
- STEFANO
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
9 years 8 months ago #68067
by STEFANO
Replied by STEFANO on topic OSM MEMBERSHIP PRO UPGRADE
No no a little script ( PHP o Javascript) to verify if the inserted data is a real italian codice fiscale ( like tax code ).
Is a 16 HEX digit ( based on date of birth, birth place, name and surname.
I have to ask the customer. I do not want to calculate the tax code, because otherwise I should interact with the other fields, but at least check what you have entered is 16 hex digits.
actually writing this post, I was reminded that I can interact with other fields, so I can only confirm that it is 16 hex digits and what I already know how to do it.
but if the customer wants the automatic calculation, I think is a problem.
Is a 16 HEX digit ( based on date of birth, birth place, name and surname.
I have to ask the customer. I do not want to calculate the tax code, because otherwise I should interact with the other fields, but at least check what you have entered is 16 hex digits.
actually writing this post, I was reminded that I can interact with other fields, so I can only confirm that it is 16 hex digits and what I already know how to do it.
but if the customer wants the automatic calculation, I think is a problem.
Please Log in or Create an account to join the conversation.
- What No Website
-
- Offline
- Platinum Member
-
- Full Stack Developer
9 years 8 months ago #68070
by What No Website
Joomla & Hand Coded Web Design
What no Website
Replied by What No Website on topic OSM MEMBERSHIP PRO UPGRADE
if I were doing this I would create a seperate hand coded form that asks for this and then use REGEX to validate the input.
Joomla & Hand Coded Web Design
What no Website
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
9 years 8 months ago #68120
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic OSM MEMBERSHIP PRO UPGRADE
Infact, you will need to :
1. Upgrade to latest version of Membership Pro. Don't worry about the upgrade, it will keep all your old data and the new version is much better compare to the old version. Everything which works on your site at the moment will still work, plus there are more features available in the extension.
2. To validate the code, there will be some customization, there are two ways :
- Adding a custom validation rule. This will include adding a method to a controller and also, some javascript modification to make an ajax call to validate the code right after users entered the data into the field.
- Using server side validation code. In this case, you can add the validation code to the validate method of OSMembershipModelRegister class to validate the tax code which users entered. If it is wrong, you can return a message and it will be displayed by the system and it will requires users to correct it......
I think the second method is the easiest way. If you have PHP code ready, I think it will take you about 10 to 15 mins to integrate it into Membership Pro
Regards,
Tuan
1. Upgrade to latest version of Membership Pro. Don't worry about the upgrade, it will keep all your old data and the new version is much better compare to the old version. Everything which works on your site at the moment will still work, plus there are more features available in the extension.
2. To validate the code, there will be some customization, there are two ways :
- Adding a custom validation rule. This will include adding a method to a controller and also, some javascript modification to make an ajax call to validate the code right after users entered the data into the field.
- Using server side validation code. In this case, you can add the validation code to the validate method of OSMembershipModelRegister class to validate the tax code which users entered. If it is wrong, you can return a message and it will be displayed by the system and it will requires users to correct it......
I think the second method is the easiest way. If you have PHP code ready, I think it will take you about 10 to 15 mins to integrate it into Membership Pro
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- STEFANO
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
9 years 8 months ago #68133
by STEFANO
Replied by STEFANO on topic OSM MEMBERSHIP PRO UPGRADE
Hi Tuan, many thank for these informations!
OK...next week I'll do upgrade.
Best regards
Stefano
OK...next week I'll do upgrade.
Best regards
Stefano
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
9 years 8 months ago #68181
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic OSM MEMBERSHIP PRO UPGRADE
OK Stefano. Hope all goes well. Please make sure you make a backup of your site before upgrading so that in case something doesn't work well, you can roll back 
Tuan

Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Mr. Dam
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.