UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Upload Photos from Story to Albums

Philippe · ·
2:14 AM Wednesday, 11 July 2018
None
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
The replies under this section are restricted to logged in users or users with an active subscription with us