--- /dev/null
+<?php\r
+\r
+ include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");\r
+ \r
+ // Set context\r
+ set_context('search');\r
+ \r
+ // Get user guid\r
+ $guid = get_input('guid');\r
+ \r
+ $user = get_entity($guid);\r
+// if ($user)\r
+// $user->name;\r
+ \r
+ $title = $user->name;\r
+ \r
+ \r
+ $body = elgg_view_title($title); \r
+ $body .= list_entities_from_relationship('phototag', $guid, false, 'object', 'image'); \r
+ $body = elgg_view_layout('two_column_left_sidebar','',$body);\r
+\r
+ page_draw($title,$body);\r
+\r
+?>
\ No newline at end of file
include($CONFIG->pluginspath . "tidypics/world.php");\r
break;\r
\r
+ case "search": //view an image individually\r
+ if (isset($page[1])) set_input('guid',$page[1]);\r
+ include($CONFIG->pluginspath . "tidypics/search.php");\r
+ break;\r
+\r
case "rate": //rate image\r
if (isset($page[1])) set_input('guid',$page[1]);\r
include($CONFIG->pluginspath . "tidypics/actions/rate.php");\r
$phototag_text = $photo_tag->value;
- $phototag_link = $vars['url'] . "word";
+ $phototag_link = $vars['url'] . 'search/?tag=' . $phototag_text . '&subtype=image&object=object';
if ($photo_tag->type === 'user') {
$user = get_entity($photo_tag->value);
if ($user)
else
$phototag_text = "unknown user";
- $phototag_link = $vars['url'] . "user";
+ $phototag_link = $vars['url'] . "pg/photos/search/" . $photo_tag->value;
}
// hack to handle format of Pedro Prez's tags - ugh