Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: senyorito on March 03, 2008, 01:04:41 PM

Title: Avatar Under Membergroups Rank
Post by: senyorito on March 03, 2008, 01:04:41 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1115)


Avatar Under Membergroups Rank v1.2
By senyorito



Compatibility
For SMF 1.1.x (I haven't tested this on SMF 2.0 beta)

Compatibility
For SMF 1.1.x, SMF 2.0 Beta 3 Public, and SMF 2.0 Beta 3.1 Public

Introduction
This Mod will bring up the avatar and the personal text under the membergroups rank just like in other message boards.

This is a very simple Mod.  If you do manual edit, you can simply do this manually and don't even need this Mod.  But I've made this Mod for those members that has no time to do manual edit or has no confident in manual editing of templates.

Install the package and this will install to the SMF Default Theme -- Core.  This will also works in any themes except for themes that has a custom Dispaly.template.php .

A manual edit will be required for  themes that has a custom Display.template.php .

Changelog

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

v1.1b - March 19, 2008
- Fixed a line break bug on Firefox browser.

v1.1a
- A different installer for forums that has disabled "Karma" (thanks to seek2501 for the suggestion).

v1.1 - March 18, 2008
- Added installation support for SMF 2.0 Beta 3 Public

v1.0 - March 1, 2008
- Initial Release

Live Demo (http://calvinjames.isgreat.org/index.php/topic,1.msg2.html#new)

Useful Links
SMF Package Parser (http://www.adrevenueshare.com/parser)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
Title: Re: Avatar Under Membergroups Rank
Post by: Bulakbol on March 03, 2008, 02:26:26 PM
You made one finally.  Good job. The fun begins.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 03, 2008, 02:35:21 PM
Quote from: Eliana Tamerin on March 03, 2008, 02:14:34 PM
Simple little change. It's nice, I like it. Good job.

Hi Eliana!  Thank you for trying this little mod.

Quote from: JohnyB on March 03, 2008, 02:26:26 PM
You made one finally.  Good job. The fun begins.

Thank you so much bro!
Title: Re: Avatar Under Membergroups Rank
Post by: D.S on March 03, 2008, 05:48:11 PM
Please, I need some help
I'm download ur mod but I have some problems ,plz see my problem in this pix
After install
(http://img211.imageshack.us/img211/295/afterinstallfu9.jpg)

After uninstall
(http://img87.imageshack.us/img87/6230/afteruninstallqr4.jpg)

Uninstall Actions

(http://img156.imageshack.us/img156/4091/uninstallnb4.jpg)

when I tried to uninstall it ,didnt change any thing,why ???
Note :I'm using  Dilber MC Theme

best regards

D.S
Title: Re: Avatar Under Membergroups Rank
Post by: Hoochie Coochie Man on March 03, 2008, 06:16:36 PM
I'm making this trick all of my themes, thanks for the mod @senyorito
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 04, 2008, 12:11:01 AM
Quote from: D.S on March 03, 2008, 05:48:11 PM
Please, I need some help
I'm download ur mod but I have some problems ,plz see my problem in this pix
After install
(http://img211.imageshack.us/img211/295/afterinstallfu9.jpg)

After uninstall
(http://img87.imageshack.us/img87/6230/afteruninstallqr4.jpg)

Uninstall Actions

(http://img156.imageshack.us/img156/4091/uninstallnb4.jpg)

when I tried to uninstall it ,didnt change any thing,why ???
Note :I'm using  Dilber MC Theme

best regards

D.S

Most probably, there was a server hiccup when you installed the mod.  The operation to remove your old avatar's location didn't pursue.

Attach your Display.template.php and PersonalMessage.template.php and I'll fix it for you bro.

Quote from: Hoochie Coochie Man on March 03, 2008, 06:16:36 PM
I'm making this trick all of my themes, thanks for the mod @senyorito

My pleasure bro.  Thanks too.
Title: Re: Avatar Under Membergroups Rank
Post by: D.S on March 04, 2008, 03:38:18 AM
thx for reply

ur mod working perfect in message personal  place but my problem in Display.template.php

plz I need ur help   :(

thank u men
Note:this files after instal

D.S

Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 04, 2008, 04:32:37 AM
Quote from: D.S on March 04, 2008, 03:38:18 AM
thx for reply

ur mod working perfect in message personal  place but my problem in Display.template.php

plz I need ur help   :(

thank u men
Note:this files after instal

D.S



Hi D.S!  I've download your templates and yes you are right that there is no problem with your PersonalMessage.template.php and only in your Display.template.php.

Upon seeing your display template, I saw a line of code inside the removing of your original avatar and personal text operation.  Here's what you have:

if (!empty($message['member']['options']['Xfire'])) echo '<a href="http://www.livejournal.com/users/', $message['member']['options']['Xfire'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/livejournal.gif"></a>';

I'm just wondering because the package manager should have had flagged this as a test failed.

Anyways, I don't know if this line of code has still a fucntion to your forum.  I'm suspecting that this has been a left-over from a previous mod with unsuccessful installation/uninstallation.  Howevery, between your Flag Mod and the post count code, there is a code there that is I'm suspecting where the line came from.  For the meantime, I added that line of code to that group.

// Did they select a flag?
if(isset($message['member']['options']['country']) && !empty($modSettings['country_flag_show']) && !empty($message['member']['options']['country']))
{
$flags = CountryFlag();
echo '
<img src="', $settings['default_theme_url'], '/images/flags/', $message['member']['options']['country'], '.png" alt="', $flags[$message['member']['options']['country']], '" /> ', $flags[$message['member']['options']['country']], '<br /><br />';
}

global $sourcedir, $messagevars;
$messagevars = $message;
require_once($sourcedir . '/CustomProfile.php');
DisplayFieldPosts();

if (!empty($message['member']['options']['Xfire'])) echo '<a href="http://www.livejournal.com/users/', $message['member']['options']['Xfire'], '" target="_blank"><img border="0" src="' . $settings['images_url'] . '/livejournal.gif"></a>';

// Show how many posts they have made.
Title: Re: Avatar Under Membergroups Rank
Post by: D.S on March 04, 2008, 04:53:38 AM
Wonderful Dude ,you are perfect men :-*

It's working perfect  :D

thank u very much  :)

Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 04, 2008, 05:50:19 AM
Quote from: D.S on March 04, 2008, 04:53:38 AM
Wonderful Dude ,you are perfect men :-*

It's working perfect  :D

thank u very much  :)



You're welcome bro and thank you for using this simple mod of mine.
Title: Re: Avatar Under Membergroups Rank
Post by: yrral on March 06, 2008, 03:28:02 AM
I never had any doubt on you when you said to me you'll gonna do a MOD one time... congratulations bro! I'll downloaded it and will install it in the next few minutes!

Ta!
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 06, 2008, 04:22:06 AM
Hey bro... with that words I don't need to think deeper who you are heheh.  Thanks bro Larry!
Title: Re: Avatar Under Membergroups Rank
Post by: tr0y on March 10, 2008, 02:26:03 AM
Bro I tried this one but it's not working on my theme.... I'm using tiny portal XD Nova Theme..

Pls help me


Nice Mod bro..
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 10, 2008, 04:27:01 AM
Quote from: tr0y on March 10, 2008, 02:26:03 AM
Bro I tried this one but it's not working on my theme.... I'm using tiny portal XD Nova Theme..

Pls help me


Nice Mod bro..

Bro, I'm not familiar with the theme that you are using, however, does your theme has a custom Display.template.php?  If yes, you need to install it manually to your theme's Display.template.php.

Attach your Themes/YOURTHEME/Display.template.php and I'll see what I can do bro.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 18, 2008, 04:23:44 AM
v1.1 has been released to give support to SMF 2.0 Beta 3 Public.
Title: Re: Avatar Under Membergroups Rank
Post by: Basie on March 18, 2008, 06:34:36 PM
Thanks for this mod. :)

One suggestion though.... There should be a break between the "personal text" and "online/offline".

E.g;

Quote from: current
"Personal text here"
Offline

Gender: Male
Location: Malaysia
Posts: 1054
Topics: 20

Quote from: suggestion
"Personal text here"
<gap here>
Offline

Gender: Male
Location: Malaysia
Posts: 1054
Topics: 20
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 18, 2008, 10:42:00 PM
Quote from: seek2501 on March 18, 2008, 06:34:36 PM
Thanks for this mod. :)

One suggestion though.... There should be a break between the "personal text" and "online/offline".

E.g;

Quote from: current
"Personal text here"
Offline

Gender: Male
Location: Malaysia
Posts: 1054
Topics: 20

Quote from: suggestion
"Personal text here"
<gap here>
Offline

Gender: Male
Location: Malaysia
Posts: 1054
Topics: 20

As a matter of fact, it has.

Avatar
<break>
Personal Text
<break>
Karma
Online/Offline
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 19, 2008, 12:00:57 AM
@seek2501:  It seems that "Karma" is disabled in your site.  If that's the case, I've made a different version for you.

Avatar Under Membergroups Rank v1.1a

If you have your "Karma" disabled, then use v1.1a .

Installation Note:

Uninstall v1.1.  Then upload and install v1.1a.

Thank you.

Download:

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

Title: Re: Avatar Under Membergroups Rank
Post by: Basie on March 19, 2008, 01:23:33 AM
That didn't work. I uninstalled the old version and added the new one, but it just looks the same...

(http://img170.imageshack.us/img170/6936/image1ff3.th.jpg) (http://img170.imageshack.us/my.php?image=image1ff3.jpg)
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 19, 2008, 01:31:29 AM
First off, make sure that you have download and installed Avatar_UnderMemRank_v1.1a.zip.  And in your package manager, make sure that the version is 1.1a.

I tested it before I update my mod to the Mod Site.
Title: Re: Avatar Under Membergroups Rank
Post by: Basie on March 19, 2008, 01:38:15 AM
Definately 1.1a...

(http://img329.imageshack.us/img329/5008/image2xv8.th.jpg) (http://img329.imageshack.us/my.php?image=image2xv8.jpg)
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 19, 2008, 01:46:16 AM
Hmmmm... v1.1a has only 1 download so far.  And afaik, it was me because I need to download it just to check if it is downloadable or not.

Anyways, can you please post here or PM to me your forum's link?
Title: Re: Avatar Under Membergroups Rank
Post by: Basie on March 19, 2008, 01:50:09 AM
Ok, I PM'ed you the link.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 19, 2008, 02:01:25 AM
I got your pm seek.  Thank you.

As I was suspecting, it's an issue to your internet cache.  Try the following:

- ask your members if they see the same the way you see it (your screenshot suffice)
- clean your internet cache
- use a different browser (just to check if changes has been made or not)
- try a hard F5

... and the result?

(http://xs125.xs.to/xs125/08123/60461.png)
Title: Re: Avatar Under Membergroups Rank
Post by: Basie on March 19, 2008, 02:29:44 AM
What browser were you useing there?

It works for me in IE, but it's still wrong in firefox, even after F5 and clearing the cache.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 19, 2008, 02:47:26 AM
I'm using Opera browser (my default browser). 

And yes I confirm that it has an issue with Firefox.  Though by adding another break string would fix the issue in Firefox.  But other browser than Firefox would display 2 line breaks.  Would it be fine with you?
Title: Re: Avatar Under Membergroups Rank
Post by: Basie on March 19, 2008, 02:57:11 AM
In that case I think it would probably be better left as it is.

Ideally I'd like it as it was in the picture you posted above, but if that isn't possible then I can live with it how it is right now. :)

Thanks for the mod and the help!
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 19, 2008, 03:05:51 AM
Alright then seek.  It is actually an issue between SMF and Firefox.  We're just trying to fix their differences to each other.  The drawback is, other browsers will suffer.

Thank you seek.

Have a nice day!
Title: Re: Avatar Under Membergroups Rank
Post by: Spidtuelv on March 19, 2008, 10:26:23 AM
Thanks man,works great ;)
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 19, 2008, 01:56:18 PM
Quote from: Spidtuelv on March 19, 2008, 10:26:23 AM
Thanks man,works great ;)

You're welcome and thank you for using this mod.
Title: Re: Avatar Under Membergroups Rank
Post by: efil59 on March 20, 2008, 11:38:04 AM
Hi,

When i was  trying to install the mod i got error in Display.template.php.

How can i do a manual edit?

Thanks,
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 20, 2008, 12:30:31 PM
Quote from: efil59 on March 20, 2008, 11:38:04 AM
Hi,

When i was  trying to install the mod i got error in Display.template.php.

How can i do a manual edit?

Thanks,

Modparser by Daniel15 will be a big help to guide you on what to add, replace, delete, etc. 

http://www.adrevenueshare.com/parser

If you can't figure it out, just attach your Display.template.php and PersonalMessage.template.php here and I'll help you out on this.

When you attach it, please inform me also if what version you have downloaded (v1.1 or v1.1b).

Thank you.
Title: Re: Avatar Under Membergroups Rank
Post by: SAMm on March 20, 2008, 01:42:37 PM
can you help me whit that senyorito?

can you say me how can i order like this pic?

(http://i26.tinypic.com/qzj49e.png)

the avatar first and second de group and the rest
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 21, 2008, 02:28:47 AM
Quote from: SAMm on March 20, 2008, 01:42:37 PM
can you help me whit that senyorito?

can you say me how can i order like this pic?

(http://i26.tinypic.com/qzj49e.png)

the avatar first and second de group and the rest

Hi SAMm!  Do you want it to be like this...

(http://xs125.xs.to/xs125/08125/61608.png)

IF yes, then follow this instruction:

Themes/default/Display.template.php

FIND:

// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext" id="msg_', $message['id'], '_extra_info">';


REPLACE with:

// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">';
// 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>';
echo '
<b>', $message['member']['link'], '</b>
<div class="smalltext" id="msg_', $message['id'], '_extra_info">';


Themes/default/PersonalMessage.template.php

FIND:

<table width="100%" cellpadding="4" cellspacing="1" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';


REPLACE with:

<table width="100%" cellpadding="4" cellspacing="1" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">';
// 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>';
echo '
<b>', $message['member']['link'], '</b>
<div class="smalltext">';


Then you must delete or comment out on the original avatar strings in both templates so that the avatar wouldn't appear between the number of post and personal text.

Good luck!
Title: Re: Avatar Under Membergroups Rank
Post by: efil59 on March 21, 2008, 03:00:51 AM
Thank you senyorito!

Your last comment to SAMm, Helped me.

It's working great.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 21, 2008, 03:27:32 AM
Quote from: efil59 on March 21, 2008, 03:00:51 AM
Thank you senyorito!

Your last comment to SAMm, Helped me.

It's working great.

You're welcome.  Anyhow, learn how to use the modparser.  It really helps a lot.

Thank you for using this mod. ;)
Title: Re: Avatar Under Membergroups Rank
Post by: Basie on March 21, 2008, 04:45:51 AM
Hey senyorito - version 1.1b works good with karma enabled AND disabled, so do you really still need 2 different versions?

Here is a pic of 1.1b with karma enabled...

(http://img212.imageshack.us/img212/563/karmaeg9.jpg)

Maybe karma shold be beneath the online/offline indicator though?
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 21, 2008, 06:10:32 AM
@seek:

Hi!

Yeah, I knew that it would work also on v1.1b.  However, enabling Karma on v1.1b will leave a gap between Karma and Online/Offline icon.  There is no gap between the two on SMF default setup and as much as possible, I don't want to touch on it except for the modifications that I'd done.  Now, It's up to the users which one will they use.
Title: Re: Avatar Under Membergroups Rank
Post by: SAMm on March 21, 2008, 08:37:09 AM
it works excellent
thankyou senyo ^^
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on March 21, 2008, 11:20:21 PM
Quote from: SAMm on March 21, 2008, 08:37:09 AM
it works excellent
thankyou senyo ^^

You're welcome!
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 11, 2008, 03:19:41 PM
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?
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 26, 2008, 10:05:04 AM
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.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 26, 2008, 11:30:20 AM
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
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 11:55:20 AM
YOU ROCK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 12:40:57 PM
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)
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 26, 2008, 12:55:36 PM
Yup bro, you can do it.  Just remove/delete the above portion.
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 12:58:35 PM
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!
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 01:07:51 PM
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.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 26, 2008, 02:05:11 PM
Attach here your $themedir/default/Display.template.php bro and I'll see what can I do.
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 02:21:14 PM
Cool!

Here ya go.   ;D  Be easy on me... I'm somewhat new to this stuff!
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 26, 2008, 02:34:21 PM
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.
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 02:48:35 PM
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
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 26, 2008, 02:52:26 PM
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.
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 02:57:56 PM
will do!

Thanks for the help!  appreciate it!

will post a pic when I fix it!
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 26, 2008, 03:00:54 PM
Good luck then.  If you'll have a problem on that, I'll help you.
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 03:19:12 PM
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!
Title: Re: Avatar Under Membergroups Rank
Post by: tk2012 on August 26, 2008, 03:26:48 PM
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!
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on August 27, 2008, 12:44:11 AM
Indeed.  Well done bro.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on September 08, 2008, 12:00:20 PM

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
Title: Re: Avatar Under Membergroups Rank
Post by: Basie on October 28, 2008, 01:34:46 PM
Thanks for keeping this updated senyorito. Great mod. :)
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on October 31, 2008, 01:54:34 PM
You're welcome Basie!
Title: Re: Avatar Under Membergroups Rank
Post by: Pspuser007 on November 10, 2008, 05:19:39 PM
Hello!

I have smf 1.1.7 and custom theme DS.
When i am trying to apply the mod i get this "FTP Information Required"
I type my pass and click proceed.
And i get this : "An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again. "
At the forum log I see this:
2: fclose(): supplied argument is not a valid stream resource
File: /home/myroot/public_html/Sources/Subs-Package.php
Line: 1908

And this :
2: fopen(/home/myroot/public_html/Themes/default/PersonalMessage.template.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /home/myroot/public_html/Sources/Subs-Package.php
Line: 1901

What can i do??
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on November 11, 2008, 01:04:19 AM
My MOD has nothing to do with that error.  It's within your host server.
Title: Re: Avatar Under Membergroups Rank
Post by: offrocker on November 15, 2008, 12:04:57 PM
I downloaded and installed this mod but it did not change the order of the avatar, I know you said you have to edit the Display.template.php file, but what exactly do I put in there? What needs to be deleted? I tried to follow the info you gave somone else for editing the file but I don't see that line of code in mine. This is what i found for what it seemed like you were talking about:

// Show information about the poster of this message.

      echo '

            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">

               <tr>

                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">



            <div class="profile-l">

               <div class="profile-r">

                  <div class="profile">



                     <b>', $message['member']['link'], '</b>

                     <div class="smalltext">';

But it's not the same line of code as you were referring to. Can you please tell me where i should change something and what I'm supposed to change. I've attached the file because it's saying it's already installed and wouldn't need a manual install.
Title: Re: Avatar Under Membergroups Rank
Post by: Pspuser007 on November 17, 2008, 05:47:38 AM
I have installed with no errors.
But it is not working.
Is there any setting?
I mean enable it?
It is not working even at the default core theme.
I am using custom theme,DS.It does not have Display Template Nor PersonalMessage template.
What can i do?

Thank you for your time!
Title: Re: Avatar Under Membergroups Rank
Post by: Pspuser007 on November 17, 2008, 06:33:58 AM
Ok it is working now!!
But there is a big space between Membergroup badge and avatar and Karma Points.Look:
(http://i35.tinypic.com/24np995.jpg)
Is there any way to reduce that?

Thank you for your time!
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on November 19, 2008, 11:30:38 AM
Quote from: offrocker on November 15, 2008, 12:04:57 PM
I downloaded and installed this mod but it did not change the order of the avatar, I know you said you have to edit the Display.template.php file, but what exactly do I put in there? What needs to be deleted? I tried to follow the info you gave somone else for editing the file but I don't see that line of code in mine. This is what i found for what it seemed like you were talking about:

// Show information about the poster of this message.

      echo '

            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">

               <tr>

                  <td valign="top" width="16%" rowspan="2" style="overflow: hidden;">



            <div class="profile-l">

               <div class="profile-r">

                  <div class="profile">



                     <b>', $message['member']['link'], '</b>

                     <div class="smalltext">';

But it's not the same line of code as you were referring to. Can you please tell me where i should change something and what I'm supposed to change. I've attached the file because it's saying it's already installed and wouldn't need a manual install.

Hi!  May I know your SMF version?  Please also tell what version of Avatar Under Membergroups Rank did you install?

I tried to check the file that you attached.  Unfortunately, I don't understand the content of the file.  It's not the usual php codes.  Can you please archive or zip your Display.template.php?
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on November 19, 2008, 11:32:27 AM
Quote from: Pspuser007 on November 17, 2008, 06:33:58 AM
Ok it is working now!!
But there is a big space between Membergroup badge and avatar and Karma Points.Look:
(http://i35.tinypic.com/24np995.jpg)
Is there any way to reduce that?

Thank you for your time!

Hi!  May I know your SMF version please?  With regards to your question, yes it can be reduced.  But I need to know what version of SMF you are using so that I could help you with the right codes to edit.
Title: Re: Avatar Under Membergroups Rank
Post by: virtualxtc on February 06, 2009, 06:49:58 PM
The Manual Install instructions are currently not working.
I need to install this on a custom template.

Cheers.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on February 08, 2009, 08:03:14 AM
Quote from: virtualxtc on February 06, 2009, 06:49:58 PM
The Manual Install instructions are currently not working.
I need to install this on a custom template.

Cheers.

What version of SMF you are using?
Title: Re: Avatar Under Membergroups Rank
Post by: virtualxtc on February 08, 2009, 09:23:50 PM
Quote from: senyorito on February 08, 2009, 08:03:14 AM
Quote from: virtualxtc on February 06, 2009, 06:49:58 PM
The Manual Install instructions are currently not working.
I need to install this on a custom template.

Cheers.

What version of SMF you are using?
SMF Version 1.1.8

Manual Install Instructions for 1.1.7 don't work either.
Title: Re: Avatar Under Membergroups Rank
Post by: X3mE on February 12, 2009, 10:38:01 PM
It needs to be updated to work with SMF 2 RC1. Will there be an update soon?
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on February 12, 2009, 11:14:45 PM
Quote from: virtualxtc on February 08, 2009, 09:23:50 PM
Quote from: senyorito on February 08, 2009, 08:03:14 AM
Quote from: virtualxtc on February 06, 2009, 06:49:58 PM
The Manual Install instructions are currently not working.
I need to install this on a custom template.

Cheers.

What version of SMF you are using?
SMF Version 1.1.8

Manual Install Instructions for 1.1.7 don't work either.

For SMF 1.1.8, you may download and install AUMR_v1.3.zip or AUMR_v1.3.KD.zip.  I've already tested it without any problem.

Quote from: X3mE on February 12, 2009, 10:38:01 PM
It needs to be updated to work with SMF 2 RC1. Will there be an update soon?

I'm working on it now.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on February 13, 2009, 12:43:10 AM

Avatar Under Membergroups Rank v1.3, v2.0.B4, and v2.0.RC1
By senyorito



Compatibility
For SMF 1.1.x, SMF 2.0 Beta 3 Public, SMF 2.0 Beta 3.1 Public, SMF 2.0 Beta 4 Public, and SMF 2.0 RC1.

Introduction
This Mod will bring up the avatar and the personal text under the membergroups rank just like in other message boards.

This is a very simple Mod.  If you do manual edit, you can simply do this manually and don't even need this Mod.  But I've made this Mod for those members that has no time to do manual edit or has no confidence in manual editing of templates.

Install the package and this will install to the SMF Default Theme -- Core.  This will also works in any themes except for themes that has a custom Dispaly.template.php .

A manual edit will be required for  themes that has a custom Display.template.php .

Changelog

February 13, 2009

AUMR_v2.0.RC1 -  For SMF 2.0 RC1 ONLY

AUMR_v2.0.RC1.KD - For SMF 2.0 RC1 which Karma is "disabled"


September 8, 2008

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"

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"


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


v1.1b - March 19, 2008
- Fixed a line break bug on Firefox browser.


v1.1a
- A different installer for forums that has disabled "Karma" (thanks to seek2501 for the suggestion).


v1.1 - March 18, 2008
- Added installation support for SMF 2.0 Beta 3 Public


v1.0 - March 1, 2008
- Initial Release



Download (http://custom.simplemachines.org/mods/index.php?mod=1115)
Title: Re: Avatar Under Membergroups Rank
Post by: virtualxtc on February 13, 2009, 03:11:46 AM
Quote from: senyorito on February 12, 2009, 11:14:45 PM
Quote from: virtualxtc on February 08, 2009, 09:23:50 PM
Quote from: senyorito on February 08, 2009, 08:03:14 AM
Quote from: virtualxtc on February 06, 2009, 06:49:58 PM
The Manual Install instructions are currently not working.
I need to install this on a custom template.

Cheers.

What version of SMF you are using?
SMF Version 1.1.8

Manual Install Instructions for 1.1.7 don't work either.

For SMF 1.1.8, you may download and install AUMR_v1.3.zip or AUMR_v1.3.KD.zip.  I've already tested it without any problem.

Quote from: X3mE on February 12, 2009, 10:38:01 PM
It needs to be updated to work with SMF 2 RC1. Will there be an update soon?

I'm working on it now.

Yes but I need to get this working on a custom template.
Title: Re: Avatar Under Membergroups Rank
Post by: X3mE on February 13, 2009, 04:47:32 AM
Thanks for the RC1 version :)
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on February 13, 2009, 11:25:40 AM
Quote from: virtualxtc on February 13, 2009, 03:11:46 AM
Yes but I need to get this working on a custom template.

Attach your custom Display.template.php and I'll see what I can do.

Quote from: X3mE on February 13, 2009, 04:47:32 AM
Thanks for the RC1 version :)

You're welcome. ;)
Title: Re: Avatar Under Membergroups Rank
Post by: virtualxtc on February 14, 2009, 12:24:52 AM
Quote from: senyorito on February 13, 2009, 11:25:40 AM
Quote from: virtualxtc on February 13, 2009, 03:11:46 AM
Yes but I need to get this working on a custom template.

Attach your custom Display.template.php and I'll see what I can do.

I have attached it.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on February 14, 2009, 09:29:45 AM
@virtualxtc

I don't know if which AUMR version you have installed.  Anyways, if you've installed:

- AUMR_v1.3, then download and unzip the attached zip file AUMR v1.3.zip and upload your edited Display.template.php;

- AUMR_v1.3.KD, then download and unzip the attached zip file AUMR v1.3 KD.zip and upload your edited Display.template.php.

Good luck!
Title: Re: Avatar Under Membergroups Rank
Post by: virtualxtc on February 15, 2009, 09:02:22 AM
Quote from: senyorito on February 14, 2009, 09:29:45 AM
@virtualxtc

I don't know if which AUMR version you have installed.  Anyways, if you've installed:

- AUMR_v1.3, then download and unzip the attached zip file AUMR v1.3.zip and upload your edited Display.template.php;

- AUMR_v1.3.KD, then download and unzip the attached zip file AUMR v1.3 KD.zip and upload your edited Display.template.php.

Good luck!

Worked a treat, thanks mate.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on February 15, 2009, 01:13:36 PM
^ You're welcome! ;)
Title: Re: Avatar Under Membergroups Rank
Post by: mattchewone on February 15, 2009, 01:16:38 PM
I had this installed before i did a RC1 upgrade, when i upgraded i think this may have caused issue's as on members posts there is 3 avatars being displayed. I thought this may have caused the issue and i cant uninstall it as there is no uninstaller as it says.

I deleted the old one from the package list, uploaded the new one and installed it. It moved the avatars to the correct place but there is still 3 of them.

What can i do?
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on February 15, 2009, 11:19:32 PM
Quote from: mattchewone on February 15, 2009, 01:16:38 PM
I had this installed before i did a RC1 upgrade, when i upgraded i think this may have caused issue's as on members posts there is 3 avatars being displayed. I thought this may have caused the issue and i cant uninstall it as there is no uninstaller as it says.

I deleted the old one from the package list, uploaded the new one and installed it. It moved the avatars to the correct place but there is still 3 of them.

What can i do?

Attach your Display.template.php and lemme see.  Also, please let me know if which version of AUMR you are using and if it is KD or not.

Thanks.
Title: Re: Avatar Under Membergroups Rank
Post by: vaguard on May 07, 2009, 10:40:38 AM
Hello,
It looks like I have the same problem as another very early post. I have a double avatar image. Currently using the default template smf 1.1.8 Also have karma disabled.
Title: Re: Avatar Under Membergroups Rank
Post by: Joe N on May 28, 2009, 03:24:29 PM
Nice Mod. Well Done!
Title: Re: Avatar Under Membergroups Rank
Post by: BounceDK on July 30, 2009, 06:12:28 AM
Used this on SMF 2.0 RC1 and it worked like a charm. However with RC1.2 it won't install.
Title: Re: Avatar Under Membergroups Rank
Post by: flamechica on November 19, 2009, 04:47:36 AM
Will this be updated for RC2?
Title: Re: Avatar Under Membergroups Rank
Post by: Quexinos on November 26, 2009, 10:00:13 PM
Quote from: flamechica on November 19, 2009, 04:47:36 AM
Will this be updated for RC2?
Seconded, I'm lazy and I don't want to have to edit all the skins myself :P
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on December 19, 2009, 05:18:01 AM
Quote from: Quexinos on November 26, 2009, 10:00:13 PM
Quote from: flamechica on November 19, 2009, 04:47:36 AM
Will this be updated for RC2?
Seconded, I'm lazy and I don't want to have to edit all the skins myself :P

Yeah, I will update this MOD.
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on December 19, 2009, 09:51:26 AM
It's now updated!
Title: Re: Avatar Under Membergroups Rank
Post by: Rhyme on December 24, 2009, 10:20:56 PM
Mod doesn't work on my display.template.

I read what you wrote for some other people, however it doesn't tell me exactly what I have to put into my template to make it work and there was no phasing for it so help is needed.  Thanks
Title: Re: Avatar Under Membergroups Rank
Post by: senyorito on December 30, 2009, 06:24:13 AM
Quote from: Rhyme on December 24, 2009, 10:20:56 PM
Mod doesn't work on my display.template.

I read what you wrote for some other people, however it doesn't tell me exactly what I have to put into my template to make it work and there was no phasing for it so help is needed.  Thanks

Hi!  May I know what version of SMF you are using?
Title: Re: Avatar Under Membergroups Rank
Post by: Rhyme on January 05, 2010, 08:30:34 PM
Quote from: senyorito on December 30, 2009, 06:24:13 AM
Quote from: Rhyme on December 24, 2009, 10:20:56 PM
Mod doesn't work on my display.template.

I read what you wrote for some other people, however it doesn't tell me exactly what I have to put into my template to make it work and there was no phasing for it so help is needed.  Thanks

Hi!  May I know what version of SMF you are using?

1.1.11
Title: Re: Avatar Under Membergroups Rank
Post by: kibtwane on September 28, 2010, 12:01:37 AM
Alas, installation of this mod failed for me.  I tried to use the 1.1.11 karma-disabled compatible version, but the admin panel brought up an error message once I hit "apply mod". I have a sneaking suspicion that there was a conflict issue with one or more of the five other mods I've installed on my board. 

Not to worry.  These things happen.