Advertisement:

Author Topic: users online/Info centre visible to admin only?  (Read 214 times)

Offline Rae11

  • Newbie
  • *
  • Posts: 2
users online/Info centre visible to admin only?
« on: October 10, 2019, 06:18:59 PM »
I would like to make the users online and into centre visible tot admin only ...how do I achieve this?

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,376
  • We were all equal in the end.
Re: users online/Info centre visible to admin only?
« Reply #1 on: October 10, 2019, 06:41:31 PM »
BoardIndex.template.php

Code: [Select]

if ($context['user']['is_admin'])
template_info_center();
}

function template_info_center()

“There is nothing more frightful than ignorance in action.”  Goethe

Offline Rae11

  • Newbie
  • *
  • Posts: 2
Re: users online/Info centre visible to admin only?
« Reply #2 on: October 10, 2019, 07:09:30 PM »
Thank you SIR;)