By Philippe on Wednesday, 11 July 2018
Posted in Technical Issues
Replies 1
Likes 0
Views 571
Votes 0
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 :

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
Hi Philippe,

This is quite complicated to achieve, but the upload photo controller(storing function etc.) is use in the file:
.../components/com_easysocial/controllers/photos.php
function uploadStory
·
Wednesday, 11 July 2018 11:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post