Index: trunk/core/units/users/users_tag_processor.php =================================================================== diff -u -N -r8369 -r8634 --- trunk/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 8369) +++ trunk/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 8634) @@ -82,7 +82,7 @@ $passed_key = $this->Application->GetVar('user_key'); $user_object = &$this->Application->recallObject('u.forgot'); - + // used for error reporting only -> rewrite code + theme (by Alex) $user_current_object = &$this->Application->recallObject('u', null, Array('skip_autoload' => true)); // TODO: change theme too @@ -176,16 +176,16 @@ $object =& $this->getObject($params); return $object->GetID() != -1 ? $object->GetDBField('Login') : 'root'; } - + function CookieUsername($params) { $submit_value = $this->Application->GetVar($params['submit_field']); if ($submit_value !== false) { return $submit_value; } - + $username = $this->Application->GetVar('save_username'); // from cookie - + if ($username == 'super-root') { $username = 'root'; } @@ -205,9 +205,21 @@ return $perm_helper->TagPermissionCheck($params, 'u_HasPermission'); } - - } + /** + * Returns link to post author public profile + * + * @param Array $params + * @return string + */ + function ProfileLink($params) + { + $object =& $this->getObject($params); + $params['user_id'] = $object->GetID(); + return $this->Application->ProcessParsedTag('m', 'Link', $params); + } + } + ?> \ No newline at end of file