From: <sy...@us...> - 2005-03-09 21:22:11
|
Update of /cvsroot/tikiwiki/tiki/lib/smarty_tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12460/lib/smarty_tiki Modified Files: Tag: BRANCH-1-9 modifier.userlink.php Log Message: library avatar to show up in popup Index: modifier.userlink.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/smarty_tiki/modifier.userlink.php,v retrieving revision 1.3.2.19 retrieving revision 1.3.2.20 diff -u -d -r1.3.2.19 -r1.3.2.20 --- modifier.userlink.php 9 Mar 2005 19:30:26 -0000 1.3.2.19 +++ modifier.userlink.php 9 Mar 2005 21:22:01 -0000 1.3.2.20 @@ -105,10 +105,17 @@ } if ($feature_community_mouseover_picture == 'y') { - if (empty($content)) { - $content = "<img src='tiki-show_user_avatar.php?user=$other_user' width='45' height='45'>"; + if ($info['avatarLibName'] != "") { + $img = "<img border='0' width='45' height='45' src='" . $info['avatarLibName']. "' alt='' />"; + } else if ($info['avatarData'] != "") { + $img = "<img src='tiki-show_user_avatar.php?user=$other_user' width='45' height='45' alt='' />"; } else { - $content = "<table><tr><td><img src='tiki-show_user_avatar.php?user=$other_user' width='45' height='45'></td><td>$content</td></tr></table>"; + $img = ""; + } + if (empty($content)) { + $content = $img; + } elseif ($img != "") { + $content = "<table><tr><td>$img</td><td>$content</td></tr></table>"; } } |