- Posts: 170
- Thank you received: 1
Custom File Field
- Lionel Charrier
- Topic Author
- Offline
- Elite Member
-
Less
More
5 years 7 months ago - 5 years 7 months ago #128424
by Lionel Charrier
Custom File Field was created by Lionel Charrier
Hi everyone
I am using a Custom file field for member to upload a compulsory file at subscription.
1) Is it possible, and how, that this file is transferred in the CB profile when subscription is activated (Active statuts) :
2) At subscription renewal, how can I have this field empty such as the member is forced to upload an updated file when this field is "requested"?
Thanks
Lionel
I am using a Custom file field for member to upload a compulsory file at subscription.
1) Is it possible, and how, that this file is transferred in the CB profile when subscription is activated (Active statuts) :
- I have made a test. The file name is correctly transmitted to the CB Profile as a link to a file.
- However the file itself is not stored in the directory used by CB. Would it be possible to use same directory ?
2) At subscription renewal, how can I have this field empty such as the member is forced to upload an updated file when this field is "requested"?
Thanks
Lionel
Last edit: 5 years 7 months ago by Lionel Charrier. Reason: Add test information.
Please Log in or Create an account to join the conversation.
- Lionel Charrier
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 170
- Thank you received: 1
5 years 7 months ago #128425
by Lionel Charrier
Replied by Lionel Charrier on topic Custom File Field
I think this is too complicated as the two products use very different methods:
Membership Pro stores the files in media/com_osmembership/upload and does not change the name of the uploaded file. What's happens if the uploaded has same name of another member uploaded file or when the file name content non-ascii characters, that I do not know.
Community Builder stores the files in /images/comprofiler/plug_cbfilefield into a subdirectory at the userid (e.g 1045 for userid 1045) and codes the filename with a coding that is specific to CB such as "original_file_name cm-lionel-_5c8f6223f054d.jpg"
Membership Pro stores the files in media/com_osmembership/upload and does not change the name of the uploaded file. What's happens if the uploaded has same name of another member uploaded file or when the file name content non-ascii characters, that I do not know.
Community Builder stores the files in /images/comprofiler/plug_cbfilefield into a subdirectory at the userid (e.g 1045 for userid 1045) and codes the filename with a coding that is specific to CB such as "original_file_name cm-lionel-_5c8f6223f054d.jpg"
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
5 years 7 months ago #128427
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom File Field
This is something complicated as you said and not supported by our extension, sorry
If you really need it, I'm afraid of you will need to customize code of the file plugins/osmembership/cb/cb.php to handle that logic
Tuan
If you really need it, I'm afraid of you will need to customize code of the file plugins/osmembership/cb/cb.php to handle that logic
Tuan
Please Log in or Create an account to join the conversation.
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.