Commit 7e65a432 authored by nkoth's avatar nkoth

[NEW] Show large full size image (stored in file gallery) for users in addition to small avatar

parent 4e8d73b9
......@@ -26,6 +26,12 @@
{if $user_picture_id}
<div class="userpicture">
{wikiplugin _name="img" fileId="$user_picture_id"}{/wikiplugin}
<div class="simplebox">
{if $avatar}
......@@ -166,6 +166,13 @@ if ($prefs['feature_ajax'] == "y") {
// Get full user picture if it is set
if ($prefs["user_store_file_gallery_picture"] == 'y') {
require_once ('lib/userprefs/userprefslib.php');
if ($user_picture_id = $userprefslib->get_user_picture_id($userwatch)) {
$smarty->assign('user_picture_id', $user_picture_id);
// disallow robots to index page:
$smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW');
$smarty->assign('mid', 'tiki-user_information.tpl');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment