Hello,
I would like in the Timeline, the Story Photo tool send the photos to a new album.
I think I need to modify the following file :
/components/com_easysocial/themes/wireframe/story/photos/plugin.js
And modify the url :
I tried to get inspired by the following file :
/administrator/components/com_easysocial/includes/albums/albums.php
And the code :
But it does not work. Do you have an idea to suggest to me ?
Or am I on the right track ?
Thank you for your help
Philippe
I would like in the Timeline, the Story Photo tool send the photos to a new album.
I think I need to modify the following file :
/components/com_easysocial/themes/wireframe/story/photos/plugin.js
And modify the url :
url: "<?php echo FRoute::raw( 'index.php?option=com_easysocial&controller=photos&task=uploadStory&uid=' . $uid . '&type=' . $type . '&format=json&tmpl=component&' . ES::token() . '=1' ); ?>",
I tried to get inspired by the following file :
/administrator/components/com_easysocial/includes/albums/albums.php
And the code :
// Construct the upload url
$uploadUrl = ESR::raw('index.php?option=com_easysocial&controller=photos&task=upload&format=json&tmpl=component&albumId=' . $album->id . '&layout=' . $options['layout'] . '&uid=' . $this->uid . '&type=' . $this->type . '&createStream=1'. '&' . ES::token() . '=1');
But it does not work. Do you have an idea to suggest to me ?
Or am I on the right track ?
Thank you for your help
Philippe