By Philippe on Wednesday, 07 November 2018
Posted in Technical Issues
Replies 7
Likes 0
Views 524
Votes 0
Hello,

How to force the creation of a new Story Photos Album ?
Because it is the first user who publishes a photo from the Story Form, which creates the album Story Photos.
I would like to authorize the creation of several Story Photos albums in a Group.

Which file and function handles this ?

Thank you,
Philippe
Hi Philippe,

The file and function that detect the existing of post album was in
.../administrator/components/com_easysocial/models/albums.php function getDefaultAlbum
where it check, if already got story photos album ( hasDefaultAlbum ) it will skip creation of the album which is from the function ( createDefaultAlbum )

Hope this helps
·
Thursday, 08 November 2018 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for your help Fadhli

I did some tests.
At line 507, I replaced :

return $exists;
by

return $album;

A new album is well created, but the problem is that if from the Story Form, the user sends multiple photos, multiple albums Story Photos are created.
An album for each photo.
Would there be a solution to avoid this ?

Thank you,
Philippe
·
Thursday, 08 November 2018 21:05
·
0 Likes
·
0 Votes
·
0 Comments
·
It is quite difficult to achieve as the controller uploadStory function (.../components/com_easysocial/controllers/photos.php) was load in repetition if there is more that one photo upload in story form

I am really sorry but unfortunately we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in https://stackideas.com/support

Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.
·
Friday, 09 November 2018 11:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I understand. Thank you

Philippe
·
Saturday, 10 November 2018 00:48
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.
·
Saturday, 10 November 2018 12:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post