News:

Wondering if this will always be free?  See why free is better.

Main Menu

Real Name for Admin only...

Started by trenchteam, August 29, 2005, 03:37:31 AM

Previous topic - Next topic

trenchteam

What I would like is for the real name to show up for admins at all times.  I know that people can change their usernames since I allow it. They love the feature, but I would like to be able to see their original name if that makes sense. If I could have a option to in the backend that would allow alll their real usernames to appear instead of their modified names. 

Im hoping this makes sense. I tried the HOVER name mod thing, but it doesnt seem to be working properly for me.

Rudolf

In Display.template.php search for:

// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';


Replace with:

// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>';
if (!$context['can_moderate_forum']) echo $message['member']['link'];
else echo '<a href="' . $scripturl . '?action=profile;u=' . $message['member']['id'] . '" title="' . $txt[92] . ' ' . $message['member']['username'] . '">' . $message['member']['username'] . '</a>';
echo '</b>
<div class="smalltext">';


This will show the usernames for those who can moderate the forum. The only way I could make it work right now.
  If you want this to work only for yourself you could try instead:
if ($GLOBALS['ID_MEMBER'] != yourid)

Note: For the guest it won't show up anything. You'll see only "guest".
Rudolf
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)


Rudolf

Change the condition of the if statement in this to show the normal names of guests.:
if (($context['can_moderate_forum']) || (strpos($message['member']['link'], "<a href=") === false))
or
if (($GLOBALS['ID_MEMBER'] != yourid) || (strpos($message['member']['link'], "<a href=") === false))

Depending on which route you want to take. "Moderators" vs. "Only you".  ;)

You're welcome.
Rudolf
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Advertisement: