4
I'm working on this as well. It most likely can't be done with just html, but if you put in some php to query your database you should be able to pull out the path. I haven't put this into action on my server yet, but here's an idea using what you've got:
// first you want the username, so that's what you had above:
echo "<a href='http://www.pagename.com/userinfo.php?uid=idnumber'>";
// next you need to connect to the database with your xoops
// user (or any user with select privileges on the XOOPS db
// obviously replace with real values
$db = mysql_connect('localhost', 'your_xoops_user', 'your_pass');
// again replace with real value
mysql_select_db('your_xoops_db', $db);
// form your sql query
$query = "SELECT user_avatar FROM xoops_users WHERE uid=some_number";
// ask
$answer = mysql_query($query, $db);
// if there's an error you should make some kind of default
if(!$answer){
echo "<img src='default.jpg'>";
}
// I'm planning on fetching multiple data, so I wrote it
// this way, you could probably do it some other way though
$array = mysql_fetch_array($answer);
// this is different depending on how and where you've
// stored the avatars, by default avatars are stored in your
// http://yourxoopssite.com/uploads/
echo "<img src='http://yourxoopssite.com/uploads/".$array['user_avatar']."'>";
That should do it, but again, I haven't put this in place yet myself (and I'm relatively new to php/mysql).
Hope this helps, good luck!