Hello guys. I'm starting a new project and as part of the user registration, I require the user to ble able to upload certain images. The problem is I'm new to SocualEngine and PHP in general (I code, just my experience with PHP is somwehat limited) so I'm wondering if anybody from the community could point me in the right direction. Thanks a lot in advance for your support.
Hi Yasmany! Welcome aboard
Can you let us know more about what you want to achieve?
Sure...I need a certain type of user to provide some picture as a proof of some document types. Now, I think I can use the profile questions section because in there I can filter by profile type. Also, If I create a profile question of type "File", then I can reuse that logic and in that way I can replicate more "File" profile questions for the same profile or add another questions to other profile types. Now, I've done some things like modifying the application\modules\Fields\settings\fields.php to add this:
'legalAccreditation' => array(
'base' => 'file',
'label' => 'Legal accreditation',
'category' => 'specific',
'helper' => 'fieldLegalAccreditation',
'multi' => false,
)
<?php
/**
* @category Application_Core
* @package Fields
* @copyright Copyright 2020 MedallPro
* @license http://www.socialengine.com/license/
* @author Yasmany Alfonso
*/
class Fields_Form_Element_LegalAccreditation extends Engine_Form_Element_File
{
}
You should make a plugin instead of modifying core as that voids support and can break upgrades. I do not know how to make what you are trying to make but first, try to make it as a plugin.
I believe there may be some third party plugins that already do this.
Is it possible for you to point me to some of them??
I'm not sure which of them at our store here https://www.socialengine.com/store would do that. The search I did there found this one https://www.socialengine.com/store/product/member-verification-via-kyc-documents-plugin but there could be more.
This one: https://www.socialengine.com/store/product/member-verification-via-kyc-documents-plugin looks promising because it has other features I needed to code as well. Thanks a lot
Do we have any way of contacting the creators of the plugin here: https://www.socialengine.com/store/product/member-verification-via-kyc-documents-plugin . I triend in the website, but so far, I've had no answed
Yes, each plugin has a link to contact the developer. You sent two tickets to us instead of the developer. Contact them at this link https://www.socialnetworking.solutions/tickets/