3
Well, if you are SURE that using the real name isn't a privacy issue, then I can supply a quick bit of code.
I don't see an easy way to display the name rather than the uname. The newstory class is based on xoopsstory (in the class directory) which gets the uname from kernel/user.php.
If you would like to display the user's name, insert these two bits:
1. news/index.php line 78;
$story['poster'] = $sarray[$i]->getName($sarray[$i]->uid);
2. news/class/class.newsstory.php paste in this new function;
function getName($uid){
$db =& Database::getInstance();
$sql = "select name from {$db->prefix}_users where uid=$uid";
$result = $db->query($sql);
list($name) = $db->fetchRow($result);
return($name);
}
Of course, you will probably need to insert the call to getName in article.php. Look for the same substitution - uname will be replaced by getName. I will leave this for you as a XOOPS hacking adventure.