News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Post groups and admins

Started by Owdy, March 14, 2004, 05:34:02 PM

Previous topic - Next topic

Owdy

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:

// 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

[Unknown]

Replace that with:

// 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]

pulpitfire

#2
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 :)

Owdy

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

Advertisement: