hello ,
i'm using "Video browser plugin" version 1 and i would like to knowhow i can add
video thumbnail to the river page , it will be much more nice than that
if anyone have an idea :)
here is the code that create the river item
<code>
$performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
$object = get_entity($vars['item']->object_guid);
$url = $object->getURL();
$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
$string = sprintf(elgg_echo("video:river:created"),$url) . " ";
$string .= "<a href=\"" . $object->getURL() . "\">" . elgg_echo("video:river:item") . "</a>";
echo $string;
</code>
and here is the code that show the video thumb on the custom index
<code>
set_context('search');
set_input('search_viewtype','gallery');
$title2 = elgg_view_title(elgg_echo("New Videos"));
$body2 .= list_entities('object', 'video', 0, 3, false);
echo $title2 . $body2;
</code>
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.
- Georges Gillard@gillardg
Georges Gillard - 0 likes
- rjcalifornia@rjcalifornia
rjcalifornia - 0 likes
- Georges Gillard@gillardg
Georges Gillard - 0 likes
You must log in to post replies.please help :)
Try our video plugin... http://community.elgg.org/pg/plugins/rjcalifornia/read/491143/milockercom-video-plugin
i already have 2 videos plugin i just want to have the thumb show in the river