Skip to content

Instantly share code, notes, and snippets.

@X-Raym
Created October 14, 2015 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save X-Raym/17ed62891b6514640e5e to your computer and use it in GitHub Desktop.
Save X-Raym/17ed62891b6514640e5e to your computer and use it in GitHub Desktop.
<!-->pProQuiz_View_StatisticsAjax.php
At line 39, replace
<a href="#" class="user_statistic" data-ref_id="<?php echo $model->getStatisticRefId(); ?>"><?php echo $model->getUserName(); ?></a></code>
by-->
<a href="#" class="user_statistic" data-ref_id="<?php echo $model->getStatisticRefId(); ?>">
<?php
$user_id = $model->getUserId();
$user_info = get_userdata($user_id);
$username = $user_info->user_login;
$first_name = $user_info->first_name;
$last_name = $user_info->last_name;
$results = $first_name . " " . $last_name . " (" . $username . ")";
echo $results;
?></a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment