Hello. When I upload a file I would like to have it show up in the River with a thumbnail of the picture. I would like it to display just as it does within the file menu but have it on the activity page.
Thanks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Mercyspree@jones
Mercyspree - 0 likes
- SocialEyes@eyesocialeyes
SocialEyes - 0 likes
- Mercyspree@jones
Mercyspree - 0 likes
- Mercyspree@jones
Mercyspree - 0 likes
- shehbaz@shehbaz
shehbaz - 0 likes
You must log in to post replies.Hello i have this feature on my site. I'm busy right now. I will supply code later in the day.
Thanks
That would be terriffic. What is your sites' address? Thanks
Sorry for the delay
Here is the code. Visit mod/file/views/default/river/object/file
and replace the code in create.php with this one
<?php
/**
* New file river entry
*
* @package File
*/
$object = $vars['item']->getObjectEntity();
echo elgg_view('river/item', array(
'item' => $vars['item'],
'attachments' => elgg_view('object/file/river', array('entity' => $object)),
));
That's exacty my site.
Here is the code. Visit mod/file/views/default/river/object/file
and replace that of create.php with this
<?php
/**
* New file river entry
*
* @package File
*/
$object = $vars['item']->getObjectEntity();
echo elgg_view('river/item', array(
'item' => $vars['item'],
'attachments' => elgg_view('object/file/river', array('entity' => $object)),
));
not working with elgg 1.8.8
using 3c river and rivertalk plugin