Advertisement:

Author Topic: Hide Local Time in Profile  (Read 18194 times)

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Hide Local Time in Profile
« on: November 08, 2004, 01:21:07 AM »
I would like to hide the local time in the profiles of the admins from the general public.  How would I do this?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Hide Local Time in Profile
« Reply #1 on: November 08, 2004, 03:42:20 AM »
Find and remove from the Profile template:

Code: [Select]
</tr><tr>
<td><b>', $txt['local_time'], ':</b></td>
<td>', $context['member']['local_time'], '</td>

-[Unknown]

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: Hide Local Time in Profile
« Reply #2 on: November 09, 2004, 12:26:05 AM »
I don't want to remove ALL local time, only the local time of the ADMINs

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Hide Local Time in Profile
« Reply #3 on: November 09, 2004, 02:04:05 AM »
Replace with:

Code: [Select]
';

if ($context['member']['group_id'] != 1)
   echo '
</tr><tr>
<td><b>', $txt['local_time'], ':</b></td>
<td>', $context['member']['local_time'], '</td>';

echo '

-[Unknown]

Offline Amacythe

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,060
  • Gender: Female
Re: Hide Local Time in Profile
« Reply #4 on: November 09, 2004, 02:39:06 AM »
That did it... of course :)

Thanks [Unknown] :)