News:

Wondering if this will always be free?  See why free is better.

Main Menu

How To Remove Post Based Group Titles

Started by OnlineFunCorner, March 02, 2013, 06:44:19 AM

Previous topic - Next topic

OnlineFunCorner

how to removed post based group tiltles from posts, profile, messages as well ? as newbie, junior member, senior member etc
as I can remove membergroup titles such as administrator by removing this code from display template.php

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


just like that I want to remove post based group titles too

Orangine

Just a thought: rename them giving them values of " " (space). If this won't work try ALT+255 on numeric keypad

emanuele

Quote from: Dr.IT on March 02, 2013, 06:44:19 AM
as I can remove membergroup titles such as administrator by removing this code from display template.php
It would be much simpler to just go to admin > configuration > current theme and select "Hide post group titles for grouped members".


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

OnlineFunCorner

Quote from: emanuele on March 02, 2013, 07:20:53 AM
Quote from: Dr.IT on March 02, 2013, 06:44:19 AM
as I can remove membergroup titles such as administrator by removing this code from display template.php
It would be much simpler to just go to admin > configuration > current theme and select "Hide post group titles for grouped members".

that option only hide post based group titles for administrator, moderators etc, I want to hide post based group titles also for regular members, and use badges instead of text.

shadow82x

Within that same display.template.php you can remove the following postbit
Code (Remove) Select
echo '
<li class="postgroup">', $message['member']['post_group'], '</li>';

That will remove the post group text. If you wish to add it back, simple re-add that code.
Colin B
Former Spammer, Customize, & Support Team Member

WeWeF

I have tried this from last post 123123912 times and that hides stars too, I figured out I must remove all from that..

For users with same problem, delete this:

if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
          echo '
          <li class="postgroup">', $message['member']['post_group'], '</li>';


Leave only:

echo '
<li class="stars">', $message['member']['group_stars'], '</li>';


Its old topic, but I hope to help somebody :)

Advertisement: