News:

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

Main Menu

Reversing membergroup icons

Started by meemzo, August 16, 2014, 03:06:31 PM

Previous topic - Next topic

meemzo

Right now my layout has the primary membergroup image showing up under the additional membergroup image.  I've searched and tried messing with my index template but to no avail.  Any help?  And while I'm at it, how do I move the "likes" field above the custom advanced profile field.  Attached is a copy of the index file.  Thanks in advance.

Deaks

The reason is because your looking in wrong file, try display.template.php
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

meemzo

Dangit@! I knew that.  Sorry was working on that file most recent,  here is the right one.

meemzo


margarett

SMF doesn't show additional membergroups by default, so which MODs are you running?
* margarett notes that he can't open the file you attached...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

meemzo


margarett

I'm sorry, I forgot this (I was on vacations...)
do you still need help?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

meemzo

Hope your vacation was awesome!  And yes please,  ;)

margarett

So, the sections in Display.template.php are pretty much detailed so you should be able to identify them easily.

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

2) Name of the post count group + stars (badge)
// 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 '
<li class="postgroup">', $message['member']['post_group'], '</li>';
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';

3) Additional membergroups:
//Show additional groups, if the user has some attributed
if (!empty($message['member']['additional_groups_full'])) {
foreach($message['member']['additional_groups_full'] as $temp) {
if (!empty($modSettings['show_additional_groups_name']))
echo '
<li class="membergroup">', $temp['group'], '</li>';
echo '
<li class="membergroup">', $temp['stars_img'], '</li>';
}
}

So you just need to move 1) and 2) if you wish to below 3)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: