Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 01:34 pm EST

Geeklog Forums

Full Names in Forum


Status: offline

cthesoup

Forum User
Junior
Registered: 11/07/03
Posts: 16
confused
I'm using Forum v2.2RC1 and I would like to display the full name of the poster, and not the username. I've searched the forums. Is there an easy hack? Any and all help appreciated!

Christian
 Quote

Status: offline

Turias

Forum User
Full Member
Registered: 10/20/03
Posts: 807
In public_html/forum/include/gf_showtopic.php, in the function showtopic(), do the following:

change

Text Formatted Code
if($showtopic['uid'] > 1) {
    $userlink = '<A HREF="' .$_CONF['site_url']. '/users.php?mode=profile&uid=' .$showtopic['uid']. '" class="authorname' .$onetwo. '"><b>' .$showtopic['name']. '</b></a>';
 


to

Text Formatted Code
if($showtopic['uid'] > 1) {
    $display_name = $userarray['fullname'];
    if ($display_name == '') {
        $display_name = $showtopic['name'];
    }
    $userlink = '<A HREF="' .$_CONF['site_url']. '/users.php?mode=profile&uid=' .$showtopic['uid']. '" class="authorname' .$onetwo. '"><b>' .$display_name. '</b></a>';
 

 Quote

Status: offline

cthesoup

Forum User
Junior
Registered: 11/07/03
Posts: 16
THANKS! It worked great!

Christian
 Quote

All times are EST. The time is now 01:34 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content