From 620be743083e3c7c53d71c7686175c8ad341c7cb Mon Sep 17 00:00:00 2001
From: Greg Froese
';
@@ -195,6 +204,13 @@
add_to_river('river/object/album/create', 'create', $album->owner_guid, $album->guid);
$album->new_album = TP_OLD_ALBUM;
}
+
+ if(count($uploaded_images) && $river_view == "1") {
+ if (function_exists('add_to_river')) {
+ add_to_river('river/object/image/create', 'create', $file_for_river->getObjectOwnerGUID(), $file_for_river->getGUID());
+ }
+ }
+
// plugins can register to be told when a Tidypics album has had images added
trigger_elgg_event('upload', 'tp_album', $album);
diff --git a/languages/en.php b/languages/en.php
index 9edbc6be5..3d8216bb8 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -24,6 +24,7 @@
'tidypics:settings:maxfilesize' => "Maximum file size in megabytes (MB):",
'tidypics:settings:watermark' => "Enter text to appear in the watermark - ImageMagick must be selected for the image library",
'tidypics:settings:im_path' => "Enter the path to your ImageMagick commands",
+ 'tidypics:settings:river_view' => "Show entries in river for each batch of uploaded images",
'tidypics:enablephotos' => 'Enable Group Photo Albums',
'tidypics:editprops' => 'Edit Image Properties',
'tidypics:mostviewed' => 'Most viewed images',
@@ -89,7 +90,7 @@
// river
//images
- 'image:river:created' => "%s uploaded",
+ 'image:river:created' => "%s added %s to album %s",
'image:river:item' => "an image",
'image:river:annotate' => "a comment on the image",
diff --git a/views/default/river/object/image/create.php b/views/default/river/object/image/create.php
index 3f5bbb5e8..bf6d2acbb 100644
--- a/views/default/river/object/image/create.php
+++ b/views/default/river/object/image/create.php
@@ -1,5 +1,30 @@
subject_guid);
+ $image = get_entity($vars['item']->object_guid);
+ if($image->title) {
+ $title = $image->title;
+ } else {
+ $title = "untitled";
+ }
+
+ $url = "getURL()}\">{$performed_by->name}";
+ $album = get_entity($image->container_guid);
+
+ $album_link = "" . $album->title . "";
+ $image_link = "getURL() . "\">" . $title . "";
+
+ $string = sprintf(elgg_echo("image:river:created"),$performed_by->name, $image_link, $album_link);
+
+ $string .= "
+ river_view; + if (!$river_view) $river_view = 'all'; + ?> + + 'params[river_view]', + 'options_values' => array( + 'all' => 'all', + '1' => '1', + 'none' => 'none' + ), + 'value' => $river_view)); + ?> +
watermark_text; -- cgit v1.2.3