hey there.
i just implemented, what you asked for...it's a small hack for XOOPS version 2.0.10.
i modified following files:
/userinfo.php
/language/english/user.php
/modules/system/templates/system_userinfo.html
following lines i added to
/userinfo.php after line with
$xoopsTpl->assign('lang_notregistered', _US_NOTREGISTERED);
$xoopsTpl->assign('lang_gallery', _US_GALLERY);
if(file_exists(XOOPS_ROOT_PATH . '/modules/xcgal/albums/userpics/' . (10000 + $thisUser->getVar('uid'))))
$xoopsTpl->assign('user_gallery', '<a href="' . XOOPS_URL . '/modules/xcgal/index.php?cat=' . (10000 + $thisUser->getVar('uid')) . '">' . _US_GALLERY . '</a>');
else
$xoopsTpl->assign('user_gallery', '--');
in
/language/english/user.php i added a constant after
define('_US_SHOWALL','Show All');(you have to add this constant for other languages, too, if you use any):
define('_US_GALLERY','Gallery');
and lastly, i modified the template
/modules/system/templates/system_userinfo.html by adding following lines like this:
<tr valign="top">
<td class="head"><{$lang_extrainfo}></td>
<td class="odd"><{$user_extrainfo}></td>
</tr>
<!-- start of new code -->
<tr valign="top">
<td class="head"><{$lang_gallery}></td>
<td class="odd"><{$user_gallery}></td>
</tr>
<!-- end of new code -->
</table>
that worked quite nice for me. maybe you can use that, too.
i have to point out, that this is a hack to the core system, so if you update your XOOPS after that hack, these modifications might become erroneous!
greetings,
ric