Topic: Show the real name at the userinfo
Hi!
Currently my place, the date of signment, ... are displayed beside every post. Now I want just add the real name into this "list". How can I do it?
Thanks!
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Show the real name at the userinfo
Hi!
Currently my place, the date of signment, ... are displayed beside every post. Now I want just add the real name into this "list". How can I do it?
Thanks!
1) Replace 187 line of viewtopic.php with this:
$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online, u.realname FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
2) Go to 223 line of viewtopic.php and replace it with this peace of code:
if ($pun_config['o_show_user_info'] == '1')
{
if (!empty($cur_post['realname']))
$user_info[] = '<dd>Realname: '.$cur_post['realname'];
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Show the real name at the userinfo
Powered by PunBB, supported by Informer Technologies, Inc.