Avatar Under Membergroups Rank

Started by senyorito, March 03, 2008, 01:04:41 PM

Previous topic - Next topic

tk2012

I see that it isn't compatible with v2.0 b3.1, but is for b3.0.  Does anyone know if you can manually install this to 3.1 at all?

senyorito

I'll test this to v2.0 Beta 3.1 and will update the mod if necessary.  Currently, I'm still busy on other things that taking my time.

senyorito

Avatar Under Membergroups Rank v1.2

v1.2 - August 26, 2008
- Added installation support for SMF 2.0 Beta 3.1 Public

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

tk2012

YOU ROCK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


tk2012

I have a couple other mods installed which are being used in some of the codes, so my tests are failing.  I'm doing this manually to make sure it fits.  My first conflict appears in the 2nd edit of the Display.template.php

We're supposed to find:
// Show avatars, images, etc.? if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image'])) echo ' <div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />'; // Show their personal text? if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '') echo ' ', $message['member']['blurb'], '<br /> <br />'; // This shows the popular messaging icons.

And replace it with just the:
// This shows the popular messaging icons.

But my portion of the code looks like this:
Quote// Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            {
            if ($context['user']['is_logged'])
               echo '<a href="'.$scripturl.'?action=profile;u='.$message['member']['id'].'">', $message['member']['avatar']['image'], '</a><br />';
            elseif ($context['user']['is_guest'])
               echo '<a href="'.$scripturl.'?action=register">', $message['member']['avatar']['image'], '</a><br />';
            echo '<br />';
            }
      // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                        ', $message['member']['blurb'], '<br />
                        <br />';

         // Show their awards?
         if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
            echo '
                        <fieldset style="border: 1px solid black; padding: 5px;">
                           <legend>', $txt['awards'], '</legend>';

            // Couldn't limit it in Load.php, so let's do it here.
            $awards = 0;
            foreach ($message['member']['awards'] as $award){
               if($awards < $modSettings['awards_in_post'])
                  echo '
                           <a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
               $awards++;
            }

            echo '
                        </fieldset>';
         }



         // This shows the popular messaging icons.

To perform this edit, can I just get rid of everything above the blue section or will that cause problems?  It looks like that's all I need to do, but I just want to make sure.  (This is the Member Awards mod)

senyorito

Yup bro, you can do it.  Just remove/delete the above portion.

tk2012

Thanks, all the other edits went fine manually.  No problems at all.  I love this mod because it really puts the avatar where it should instead of 1/2 way down the list of items.  I'm surprised this wasn't made standard!

From a visual standpoint, this is the way it should be!

tk2012

#47
Hmmm, I got a little snag.

I guess because I use Stars & Badges Mod, it has split the Star & Badges that display and put the avatar right in the middle of it.  (see attached)

The blue circle w/ star = the Admin membergroup.
The other circle below = a secondary group.

Is there a way to fix this?  I guess I need both groups above the avatar.  Although, it would be fine with both group below the avatar, too.

senyorito

Attach here your $themedir/default/Display.template.php bro and I'll see what can I do.

tk2012

Cool!

Here ya go.   ;D  Be easy on me... I'm somewhat new to this stuff!

senyorito

Ok.  Try this bro.  But make sure that you have a backup copy of your Display.template.php before you upload this edited Display.template.php.  It's a trial and error process bro.

tk2012

YAY!  tried it and it worked  .. attached pic#1

What did you do?  I need to do it in my PersonalMessage.template.php file, too .. attached #2

senyorito

Just follow what I had done in your Display.template.php.  You can do it.  You'll learn more by experimenting.   Just make sure that you have a backup of the file before you apply any manual edits that you do.

tk2012

will do!

Thanks for the help!  appreciate it!

will post a pic when I fix it!

senyorito

Good luck then.  If you'll have a problem on that, I'll help you.

tk2012

I'm getting there....

I went thru my original Display.template and compared it to the one you did.  I saw the variation and then went into my PersonalMessage.template and did the same alteration.

I've got it close, but I see I have the secondary group showing up twice, so I need to go back and remove something it appears.  I am determined to get this one now.  Be back in a bit.. hopefully with the finished pic!

tk2012

Found the problem... went ahead and looked down a couple lines where I added the new code and saw that the code repeated after the Avatar section, so I deleted it...

YAY!  Thanks for the original help.

Hopefully, this shows that we (n00bs) are capable of not having everything given to us!

senyorito


senyorito


Avatar Under Membergroups Rank v1.3 & v2.0.B4



Changelog

September 8, 2008

AUMR_v2.0.B4 -  For SMF 2.0 Beta 4 Public ONLY

AUMR_v2.0.B4.KD - For SMF 2.0 Beta 4 Public which Karma is "disabled"

AUMR_v1.3 - For SMF 1.1.x and 2.0 Beta 3.x

AUMR_v1.3.KD - For SMF 1.1.x and 2.0 Beta 3.x which Karma is "disabled"


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

Basie

Thanks for keeping this updated senyorito. Great mod. :)

Advertisement: