News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Hide Membergroup Titles v1.0

Started by MarcusJ, March 26, 2010, 07:00:48 PM

Previous topic - Next topic

MarcusJ

Link to the mod

This mod removes the Member Group title below the user name on topic view.  This is useful on forums when you use member group stars/icons that contain the membergroup title or description in them.  In which case the text above the star/icon become redundant.

To enable/disable: Configuration > Modification Settings > Miscellaneous > Display Membergroup Titles on Posts

Yahmez

Awesome! I have seen this requested many times. Thanks

Sakae

Does not work on SMF 2.0 RC2?

I installed fine on mine, but it just keep displaying the titles.
http://www.tigrelog.com.br
l: simple p: machines

Ataru Moroboshi

wonderful! were you reading my mind?

TheListener

#4
This may answer my current problems too.

HOWEVER

Does it affect the membergroups in the Users online?

How would it affect the postcount groups?

Edit:

Postcount Groups are NOT affected. Nor is the membergroup list in Users Online.

MarcusJ

Quote from: Sakae on March 27, 2010, 07:14:06 PM
Does not work on SMF 2.0 RC2?

This small mod was written for and tested only on RC3.  Sorry.

Quote from: Brack1 on March 28, 2010, 04:46:23 PM

How would it affect the postcount groups?

Edit:

Postcount Groups are NOT affected. Nor is the membergroup list in Users Online.

I didn't think about hiding the title for post count based groups.  I also see that the group title is displayed when viewing private messages.

I am brand new to this sort of thing.  I'll see about getting these features added to a future version.   :)

TheListener

Hey bud

The mod is a good one believe me.

I asked about the post counts because I still want them to show.

Good job.

TheListener

Hey guys.

Is there anyway this can be extended to a persons pm?


MarcusJ

Quote from: Brack1 on March 30, 2010, 05:16:31 PM
Hey guys.

Is there anyway this can be extended to a persons pm?

Yes I would like to extend the functionality.  I know Labradoodle has a few things he is working on currently.  I haven't had any time to study up and do it on my own.  But I would like to include that in the next release.  Perhaps not until SMF goes gold however.

GoldieFR

Exactly what I was looking for !
Nice mod :)
thanks :)
SMF 2.0 RC3
my mods [nofollow]

Afro

congrats, good mod.
easy way without using mod is to go to display template.php of your theme and remove this code.

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



my reasons is that if we keep installing all the mods we like/need.
we will have over 100 mods in a few weeks and thats bad news for forum perfomance.

improv


OnlineFunCorner

Thanks
I Really Need That
Now I Can Use Administrator Image/Badge Instead Of Text "Administrator"
Same For Other Regular Groups
Again Thanks

npiccoli

Could you update this so it will work with SMF 2.0 Gold?

npiccoli

Quote from: rica.carv on July 12, 2011, 06:07:01 PM
Well, i've been working on this today, and come up with a modification to an existing mod that does this and a few more, in v2.0....

Have a look....

It gave me a lot of errors before installation, it doesn't seem to like my theme very much. I would rather just use the mod on this thread.

rica.carv

Quote from: npiccoli on July 12, 2011, 06:13:59 PM
Quote from: rica.carv on July 12, 2011, 06:07:01 PM
Well, i've been working on this today, and come up with a modification to an existing mod that does this and a few more, in v2.0....

Have a look....

It gave me a lot of errors before installation, it doesn't seem to like my theme very much. I would rather just use the mod on this thread.

It currently only works on the default SMF standard theme.....
Even the original mod it's based also works only with the default theme....
Maybe if i can see your theme, i can change it to work with it....

npiccoli

#16
Quote from: rica.carv on July 13, 2011, 05:00:49 AM
Quote from: npiccoli on July 12, 2011, 06:13:59 PM
Quote from: rica.carv on July 12, 2011, 06:07:01 PM
Well, i've been working on this today, and come up with a modification to an existing mod that does this and a few more, in v2.0....

Have a look....

It gave me a lot of errors before installation, it doesn't seem to like my theme very much. I would rather just use the mod on this thread.

It currently only works on the default SMF standard theme.....
Even the original mod it's based also works only with the default theme....
Maybe if i can see your theme, i can change it to work with it....

Sure. I'm using laGusta from Dzinerstudio.

EDIT: I was able to follow the manual installation instructions for SMF RC3 to get this working with SMF 2.0. I would recommend that if people would like to install this mod that they should simply follow the manual installation instructions.

Xarkurai

Works for me through emulating 2.0 RC3.
Useful paid mod: Badge Awards - Award members for actions

The Wizard

Hello:

These are my notes on how to make this mod with with 1.1.16. Feel free to make a mod of this or update the existing one. Just don't forget to give me credit.


./Sources/ModSettings.php

Find:

Quotefunction ModifyBasicSettings()
{
   global $txt, $scripturl, $context, $settings, $sc, $modSettings;

   $config_vars = array(

After Add:

Quote// Hide Membergroup
         array('check', 'enable_membergroup_display'),

./Themes/default/Display.template.php

Find:

Quote// Show the member's primary group (like 'Administrator') if they have one.
      if (isset($message['member']['group']) && $message['member']['group'] != '')

Replace with:

Quote// Show the member's primary group (like 'Administrator') if they have one.
      if (!empty($modSettings['enable_membergroup_display']) && (!empty($message['member']['group'])))

./Themes/default/languages/Modifications.english.php

Find:
Quote?>

Add Before:

Quote// MarcusJ's Hide Membergroup Titles Mod.
$txt['enable_membergroup_display'] = 'Display Membergroup Titles on Posts';

Notes: In the 1.1.16 control panel this option is found here -
Admin > Configuration> Features and Options > Under the Basic Features

When I installed my code the option was set to hide already. Just go into the control panel and check to box and save. This should make the membergroups show up again.

Enjoy

This is posted as is no support as I'm just a poor coder and not good enough to give support or make a mod.



rolltidega

Is there an ETA for updating the MOD to hide the groups from PM's as well?

Advertisement: