Advertisement:

Author Topic: Post groups and admins  (Read 10975 times)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Post groups and admins
« on: March 14, 2004, 05:34:02 PM »
In display.php , how i change code so if user are admin, their posts wont show post group. Is this make any sense? I mean in admins messages arent show their post goups like"newbie". So admins show post group free :)


I belive code is this:

Code: [Select]
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
echo '
', $message['member']['post_group'], '<br />
', $message['member']['group_stars'], '<br />';

But how do i change that?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Post groups and admins
« Reply #1 on: March 14, 2004, 05:36:28 PM »
Replace that with:

Code: [Select]
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
if (empty($message['member']['group']))
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';


And members who are in a group will not show a post group.

-[Unknown]

Offline pulpitfire

  • Sophist Member
  • *****
  • Posts: 1,132
  • Gender: Male
  • This is what the php parser looks like.
    • Pulpitfire Devotionals
Re: Post groups and admins
« Reply #2 on: March 14, 2004, 05:40:44 PM »
i think that's your Display.template.php, instead of Display.php, right?

not exactly sure, but might try something like changing this:

if (!$message['member']['is_guest'])

to

if ((!$message['member']['is_guest']) && if (!$message['member']['is_admin']))

edit: was still working on this while UK posted :)
« Last Edit: March 14, 2004, 05:42:15 PM by pege »

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: Post groups and admins
« Reply #3 on: March 14, 2004, 05:53:45 PM »
Thanks! This was asked in Finnish support area :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0