if ($image->annotate('phototag', serialize($tag), $access_id, $owner_id)) {\r
// if tag is a user id, add relationship for searching (find all images with user x)\r
if ($relationships_type === 'user') {\r
- if (!check_entity_relationship($user_id, 'phototag', $image_guid))\r
+ if (!check_entity_relationship($user_id, 'phototag', $image_guid)) {\r
add_entity_relationship($user_id, 'phototag', $image_guid);\r
+ \r
+ // also add this to the river\r
+ if (function_exists('add_to_river'))\r
+ add_to_river('river/object/image/tag', 'tag', $image_guid, $user_id); // subject is image\r
+ }\r
}\r
\r
system_message(elgg_echo("tidypics:phototagging:success"));\r
// river\r
\r
//images\r
- 'image:river:created' => "%s added the image %s to album %s",\r
- 'image:river:item' => "an image",\r
- 'image:river:annotate' => "a comment on the image",\r
+ 'image:river:created' => "%s added the photo %s to album %s",\r
+ 'image:river:item' => "an photo",\r
+ 'image:river:annotate' => "a comment on the photo",\r
+ 'image:river:tagged' => "was tagged in the photo",\r
\r
//albums\r
'album:river:created' => "%s created a new photo album",\r
--- /dev/null
+<?php\r
+\r
+ $image = get_entity($vars['item']->subject_guid);\r
+ $person_tagged = get_entity($vars['item']->object_guid);\r
+ if($image->title) {\r
+ $title = $image->title;\r
+ } else {\r
+ $title = "untitled";\r
+ }\r
+ \r
+ \r
+ \r
+ $image_url = "<a href=\"{$image->getURL()}\">{$title}</a>";\r
+ $person_url = "<a href=\"{$person_tagged->getURL()}\">{$person_tagged->name}</a>";\r
+ \r
+ $string = $person_url . ' ' . elgg_echo('image:river:tagged') . ' ' . $image_url;\r
+ \r
+ echo $string;\r
+\r
+?>
\ No newline at end of file
background: url(<?php echo $vars['url']; ?>_graphics/river_icons/river_icon_comment.gif) no-repeat left -1px;
}
+.river_user_tag {
+ background: url(<?php echo $vars['url']; ?>mod/tidypics/graphics/icons/river_icon_tag.gif) no-repeat left -1px;
+}}
+
/* ----------- tagging ---------------- */
#tidypics_tag_instructions {
background:#BBDAF7;