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>
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.
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.
ohh.
The only way I know is to remove the word 'administrator' example from each membergroup in the admin area.
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
Hi, have you managed to solve the issue or do you still need assistance?
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?
Manually removing the showing of the text name of the membergroup from the files is the only other option I can see
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 ;-)
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi18.photobucket.com%2Falbums%2Fb108%2Fyuk75%2Fnewcodes.jpg&hash=45e2b940c997fbb85af14c36ec86b606fc315027)
and I've had people vote on ways to display stuff
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi18.photobucket.com%2Falbums%2Fb108%2Fyuk75%2FnewlookCOMPACT.jpg&hash=584af7b622957de6a0b0481a62d008f723501903)
so if you are having trouble I'd be happy to do it for you :D