News:

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

Main Menu

Membergroup display in post

Started by derekr44, July 24, 2007, 11:22:49 AM

Previous topic - Next topic

derekr44

SMF Version: SMF 1.1.3
I've found how to disable post-based groups when a user is assigned to a non-post based group.  That was easy and helped me with half of my idea...

I'd like to disable the "name" of the non-post based group and use the rank image only.  How can I do that?  I am using SMF 1.1.3

Example:

Derekr44
Administrator
<admin rank image here>

to

Derekr44
<admin rank image here>

karlbenson

Quote
Hide post group titles for grouped members?
Enabling this will not display a member's post group title on the message view if they are assigned to a non-post based group.

Admin > Under Configuration > Current Theme > Theme Settings Tab>
Its the BOTTOM one!

I think thats whatyou are after.

derekr44

No, that's not the one.  That one disables post-based groups.  All I'm looking for is a way to disable the displayed name of a group and use the rank image only.

karlbenson

ohh.

The only way I know is to remove the word 'administrator' example from each membergroup in the admin area.

Dr MoYaJa

in the admin control panel change "the name of the group' you don't want to be displayed to 'spaces'
then save
nothing will be displayed

i hope it can help you

Sarge

Hi, have you managed to solve the issue or do you still need assistance?

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

TarantinoArchives

Quote from: Dr MoYaJa on July 24, 2007, 01:43:54 PM
in the admin control panel change "the name of the group' you don't want to be displayed to 'spaces'
then save
nothing will be displayed

i hope it can help you

seems like that's in fact the only way, unless you want to modify some code..

the problem with that is, that then there's nothing in the admin interface you can click on, in order to get to the part where you add members to the group.

so my question: is there a better solution?

karlbenson

Manually removing the showing of the text name of the membergroup from the files is the only other option I can see

TarantinoArchives

what I did now, is call those groups "______", which is acceptable to me, as it adds a just little line on top of the badges I use instead ;-)

Jade Elizabeth

Quote from: derekr44 on July 24, 2007, 11:22:49 AM
SMF Version: SMF 1.1.3
I've found how to disable post-based groups when a user is assigned to a non-post based group.  That was easy and helped me with half of my idea...

I'd like to disable the "name" of the non-post based group and use the rank image only.  How can I do that?  I am using SMF 1.1.3

Example:

Derekr44
Administrator
<admin rank image here>

to

Derekr44
<admin rank image here>

I know this one :D you HAVE to edit code, there is no way around it. I would be happy to do this for you :)
My favorite file is the "display.template.php" file. Inside it if you search for
// Show information about the poster of this message.


in there there are lines similar to to this (gotten from fresh 1.1.4 install, though i edited mine in 1.1.3 as well)
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';


delete that.

This block here will display the stars, or the image you assign :) so move it to where you need it :)
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';


to do what you wanted,  edited the template to display this way:

FIND
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';


REPLACE (delete the reoccurance of this code)
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';


if you dont want the post group (I didnt test if the stars would display with it turned off) simply replace it with this instead:

echo '
', $message['member']['group_stars'], '<br />';


I tested it, and it worked for me :) if you have trouble post me the entire block of code from "show information" to "done with the information" and tell me the exact way you want it displayed and I'll do it for you.
I edited my own


and I've had people vote on ways to display stuff


so if you are having trouble I'd be happy to do it for you :D
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: