News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Display Additional Membergroups on Profile

Started by vbgamer45, January 09, 2007, 10:16:18 PM

Previous topic - Next topic

FreeGeezer

#40
I just installed your mod on v.1.1.4, and it works like a charm. Thank you. Like others, I too would like the ability to display the additional membergroups with the posts.

There is 1 other change I would like to make. By default, the mod labels the groups as "Position n:". In order to maintain the character of our forum, I would like to change that label to "Ministry: ", or maybe even eliminate the label for the additional groups. But, I can's seem to find where the label comes from.

It displays now as:
Position:     Full Member
Position 2:    Counselor
Position 3:    Encourager
Position 4:    Prayer Partner
Position 5:    Teacher

I would like it to display as:
Position:     Full Member
Ministry:    Counselor
Ministry:    Encourager
Ministry:    Prayer Partner
Ministry:    Teacher

or:
Position:     Full Member
                Counselor
                Encourager
                Prayer Partner
                Teacher

Can someone point me to the right place?

Thanks,
Roy

DMV

Any luck on showing all/chosen groups in the topic/post?

Also is there a way to change WHICH group you would like displayed for the user...

Thanks in advance...

DMV

OK,

The show multiple badges mod

http://custom.simplemachines.org/mods/index.php?mod=115

will allow for the "star" images of the membergroups to display, BUT the actual name of the Member group does not show...

Also is there a way for the user to choose WHICH group they would like to display, for instance changing the positions?

Yngwiedis

Quote from: GJSchaller on July 27, 2007, 09:47:26 PM
Hello!

Just adding my support to the idea of adding groups under a person's name / avatar on a post, either as a part of this mod, or as a new one.  It would be most helpful.

Thank you!

I am also interested for that...
AmityHost.com - The Affordable Host

InsaneSplash

Anyone been able to display the additional groups below the nick yet?

icon

thnx for the mod..
how to make it appear at posts?

uzetaab

Quote from: DMV on January 03, 2008, 06:07:30 PM
OK,

The show multiple badges mod

http://custom.simplemachines.org/mods/index.php?mod=115

will allow for the "star" images of the membergroups to display, BUT the actual name of the Member group does not show...

Also is there a way for the user to choose WHICH group they would like to display, for instance changing the positions?

I'm thinking that this will work if I use custom images rather than just the default stars, so they would basically have badges like this one:


Then I just need to make some text graphics with things like administrator, moderator, etc.

I just hope this mod works with the newest version of the forum.


chrishicks

Is it possible to get this working with the Ultimate Profile mod? I tried adding the code and it ends up with a parse error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/UltimateProfile.template.php on line 72

72:    foreach ($context['member']['additionalGroups2'] as $additionalGroup)

I am not good at coding so I have no clue on the above.

Jean Prado

#49
how to put in the mini profile of threads?
[Display.template.php]


Jean Prado



starbuckk

This mod is pretty old.  Is there a newer version or would this work iwth RC2?

Jean Prado

I'm have a SMF 1.1.11 ..
I want to put the additional membergroups on the mini profile of threads ..
mini profile (<<<<<<<<<)
you want me to attach the Display.template.php?
sorry bad english :p


ChaosEnergy

Chaos Empire ®

Jean Prado

Quote from: Piteel™ on December 14, 2009, 06:44:36 AM
I'm have a SMF 1.1.11 ..
I want to put the additional membergroups on the mini profile of threads ..
mini profile (<<<<<<<<<)
you want me to attach the Display.template.php?
sorry bad english :p



Zockaaa

#56
Hi FreeGeezer!
I wanted the mod to show the groups like you suggested, just follow very small guide I posted below to manage it.
Quote from: FreeGeezer on November 17, 2007, 12:59:43 PM
It displays now as:
Position:     Full Member
Position 2:    Counselor
Position 3:    Encourager
Position 4:    Prayer Partner
Position 5:    Teacher

I would like it to display as:
Position:     Full Member
                Counselor
                Encourager
                Prayer Partner
                Teacher

  • Open the Profile.template.php
  • Find the original code of the mod

// Begin modification - Additional membergroups on profile
$x = 1;
// Loop through each additional group
foreach ($context['member']['additionalGroups2'] as $additionalGroup)
{
// Add one to our counter
$x++;
// Output this membergroup
echo '
<tr>
<td><b>', $txt[87], ' ', $x, ': </b></td>
<td>', $additionalGroup, '</td>
</tr>';
}
// End modification


  • Replace it with

// Begin modification - Additional membergroups on profile
// Loop through each additional group
foreach ($context['member']['additionalGroups2'] as $additionalGroup)
{
            // Output this group
echo '
<tr>
<td></td>
<td>', $additionalGroup, '</td>
</tr>';
}
// End modification


live627


SallyM

Quote from: chrishicks on May 04, 2009, 07:49:35 AM
Is it possible to get this working with the Ultimate Profile mod? I tried adding the code and it ends up with a parse error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/UltimateProfile.template.php on line 72

72:    foreach ($context['member']['additionalGroups2'] as $additionalGroup)

I am not good at coding so I have no clue on the above.

Hi Chrishicks, been awhile now but did you find a way to make this work?

M*I*B

(... have'nt I ask for help yesterday?)

Ok... maybe Alzheimer  :o

I have installed the MOD by hand (automatic don't work at my side yet) following exactly the Instructions.
Works very well except that the MOD show all available Membergroups the SMF have at all User (see picture from a user there is only in one group).

What I have doing wrong???
WriteYaa...

Micha

Advertisement: