Hello, I've tried to tweak the code so that the user's full names are displayed instead of their username.
I want users to register using their email address, provide a password and their full names.
The system should then append the user's full name (or display name) which is mandory during registeration instead of a username as it is right now. Having users register another "username" that they've to remember ontop of other usernames and email address they already have to me is sort of to much.
Now, iv'e looked at the qa-app-format.php file and seen this function;
function qa_any_get_userids_handles($questions)
/*
Each element in $questions represents a question and optional associated answer, comment or edit, as retrieved from database.
Return an array of elements (userid,handle) for the appropriate user for each element.
*/
{
$userids_handles=array();
foreach ($questions as $question)
if (isset($question['opostid']))
$userids_handles[]=array(
'userid' => @$question['ouserid'],
'handle' => @$question['ohandle'],
);
else
$userids_handles[]=array(
'userid' => @$question['userid'],
'handle' => @$question['handle'],
//return user's full names instead of their handle instead, but what's the key for the @$question associated array?
//'handle' => @$question['name'],
//'handle' => "okwii david",
);
return $userids_handles;
}
So i've tried replacing something like @$question['name'] for @$question['handle'], but it seems there's no "name" key in the $question array.
So what file/function should i tweak. What should i do? Thanks in advance