I have a slight mod to this to display an icon instead of words.
instead of using
Code:
<if condition="$show['profile']">
<div class="smallfont">My Photos: $trackpadsvbgpbit</div>
</if>
use
Code:
<td class="alt2"><a href="http://www.mysitename.com/gallery/browseimages.php?do=member&imageuser=$post[userid]" rel="nofollow"><img name="camera" src="$stylevar[imgdir_misc]/camera.gif" width="30" height="25" border="0" alt="My Photos: $trackpadsvbgpbit"></a>
</td>
replace the "mysitename.com/gallery" with the proper url
i also changed the area where it will display. check out
http://www.thepiratesreef.com/forums/index.php to see it working
this will also display the number of photos when you hover over the icon. i included the image i'm using.