Photo Uploader Boonex Dolphin 7.4.2

Hello,

 

i hope somebody can help me please.

 

In Photos-Module i use HTML5 Uploader and i want to delete the first entry

"Create new album". For users its not allowed to create new albums

 

Has anybody an idea or a hint for me please.

 

Thank you

Thomas

Quote · 21 Dec 2019

Do you also need this same functionality for Videos and Sounds?

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 21 Dec 2019

Hello Modzzz,

 

thanks for your reply.

 

I do not need this for Videos, Sounds, etc. only for photos.

 

Thank you very much

Thomas

Quote · 21 Dec 2019

Hello Tomas!

 

The easiest way to do it - change the following line from the inc/classes/BxDolFilesModule.php file (backup it before changes):

 

$aAlbums[0] = $sCreateNewAlbumCaption ? $sCreateNewAlbumCaption : _t('_sys_album_create_new');


Just add before it this one:

 

if ($this->_oConfig->getClassPrefix() != 'BxPhotos')


The most proper way to have this code in the redeclared method getInstanceUploadFormArray in modules/boonex/photos/classes/BxPhotosModule.php.

Quote · 21 Dec 2019

I think LeonidS meant :

 

if ($this->_oConfig->getClassPrefix() != 'BxPhotos')


Since you do not want it for Photos but for Videos etc.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 21 Dec 2019

Thank you for your help, it works now.

 

Another idea i have is when a couple makes a registration, they have the option to use 2 Profileimages that will be shown in the profile view "as one".

 

Is it possible to change these function in the way, that instead of 2 pictures, only the upload of 1 picture is allowed?

 

This would be very helpful for me.

 

Kind regards

Thomas

Quote · 23 Dec 2019

Hello Thomas!

 

Better not to do it because it may corrupt the work of profile fields builder. Why just leave this field as empty for the second from the couple?

Quote · 23 Dec 2019
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.