Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Fjclip99 on January 03, 2015, 05:22:47 AM

Title: I want to remove a little thing :)
Post by: Fjclip99 on January 03, 2015, 05:22:47 AM
Hello, can someone please tell me where and how can i remove the "membergroup text" - just text, not the "stars".
Here in the screenshot what is in the red square i want gone: http://prntscr.com/5nx8rj (http://prntscr.com/5nx8rj)
Title: Re: I want to remove a little thing :)
Post by: Antechinus on January 03, 2015, 05:59:19 AM
li.membergroup, li.postgroup { display: none; }
Title: Re: I want to remove a little thing :)
Post by: Fjclip99 on January 03, 2015, 06:18:31 AM
Quote from: Antechinus on January 03, 2015, 05:59:19 AM
li.membergroup, li.postgroup { display: none; }

In which file is that ? :)
Title: Re: I want to remove a little thing :)
Post by: Antechinus on January 03, 2015, 06:48:25 AM
Just add it to the end of index.css.
Title: Re: I want to remove a little thing :)
Post by: Bruce the Shark on January 04, 2015, 03:00:29 AM
Quote from: Antechinus on January 03, 2015, 06:48:25 AM
Just add it to the end of index.css.
i'm going to try this myself.
Thanks
Title: Re: I want to remove a little thing :)
Post by: Steve on January 04, 2015, 08:21:25 AM
Is that better than doing this?

In theme/display.template.php find:

// Show the member's primary group (like 'Administrator') if they have one.
if (!empty($message['member']['group']))
echo '
<li class="membergroup">', $message['member']['group'], '</li>';


Change to:

// Show the member's primary group (like 'Administrator') if they have one.
// if (!empty($message['member']['group']))
// echo '
// <li class="membergroup">', $message['member']['group'], '</li>';


Or just another way of accomplishing the same thing?
Title: Re: I want to remove a little thing :)
Post by: Arantor on January 04, 2015, 10:08:41 AM
The visual look is the same, but your method saves more bandwidth.
Title: Re: I want to remove a little thing :)
Post by: Steve on January 04, 2015, 10:18:38 AM
Cool. Thanks for the explanation. :)
Title: Re: I want to remove a little thing :)
Post by: Antechinus on January 04, 2015, 02:21:51 PM
Yup. Removing the markup is more efficient, but it's also trickier for non-coders. If I was doing it for myself I'd remove the markup. If I'm suggesting something easy for someone who may not know PHP from a custard pie, I might suggest a quick CSS tweak. ;)
Title: Re: I want to remove a little thing :)
Post by: ARG01 on January 04, 2015, 02:38:23 PM
Quote from: Antechinus on January 04, 2015, 02:21:51 PM
If I'm suggesting something easy for someone who may not know PHP from a custard pie, I might suggest a quick CSS tweak. ;)

This is very often the case. If one has no idea how to locate and/or alter a specific function, then it's probably best that they are not poking around in a php file.  ;D
Title: Re: I want to remove a little thing :)
Post by: Antechinus on January 04, 2015, 03:02:15 PM
Ah, you've learned from dire experience too I see. :D It used to drive me mental.
Title: Re: I want to remove a little thing :)
Post by: Arantor on January 04, 2015, 03:07:31 PM
Here was me thinking it would drive you sane :P
Title: Re: I want to remove a little thing :)
Post by: Antechinus on January 04, 2015, 03:20:24 PM
Never. I shall resist assimilation! :P
Title: Re: I want to remove a little thing :)
Post by: Arantor on January 04, 2015, 03:27:10 PM
Resistance is useless.