Topic: Real Name

Good Morning,

New user of PubBB and I must say it is 'da bomb' (is that still the in thing to say?!). I do have one question (at this time). We would like to require people to register, include their real name and finally make that real name available to any user. This is a small forum for members of our deparment and do not want any 'anonymous' posts.

Help?!

Cheers!

duck

Re: Real Name

Hi,

I also need real names to show instead of user names. Is this possible with punBB?

thanks!

3

Re: Real Name

Needs some tweaking but why not?

If you want to show the user's real name you open viewtopic.php, go for line 186 (or around there) and change 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 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());

To this

$result = $db->query('SELECT u.email, u.title, u.realname, 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 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());

and then go for line 200 or around and change

$username = '<a href="profile.php?id='.$cur_post['poster_id'].'">'.pun_htmlspecialchars($cur_post['username']).'</a>';

to

$username = '<a href="profile.php?id='.$cur_post['poster_id'].'">'.pun_htmlspecialchars($cur_post['realname']).'</a>';

That should do the trick.

Forcing people to enter their real name, however, is a lot more difficult because it involves forcing them to enter another profile page and enter something there.....

The German PunBB Site:
PunBB-forum.de

Re: Real Name

Great, thanx!!!

No electrons were harmed in the creation of this post.
However, many were excited and some may have enjoyed the experience.

5

Re: Real Name

Yep nice one Tobi

Yours, Benny.

6

Re: Real Name

This is exactly what we do on our forum.  it's actually implemented into the registration process.

This has helped significantly in cutting down the rif-faf.

Re: Real Name

I have made a mod based on Tobis post that does all this. Not only that, it also shows the real names at each post (if anabled by admin that is).

No electrons were harmed in the creation of this post.
However, many were excited and some may have enjoyed the experience.