Avatar Under Membergroups Rank

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

Previous topic - Next topic

senyorito

Link to Mod


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

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Bulakbol

You made one finally.  Good job. The fun begins.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

senyorito

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!

D.S

Please, I need some help
I'm download ur mod but I have some problems ,plz see my problem in this pix
After install


After uninstall


Uninstall Actions



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

best regards

D.S

Hoochie Coochie Man

I'm making this trick all of my themes, thanks for the mod @senyorito
İnadına SMF 1.1.X

senyorito

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


After uninstall


Uninstall Actions



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.

D.S

#6
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


senyorito

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.

D.S

Wonderful Dude ,you are perfect men :-*

It's working perfect  :D

thank u very much  :)


senyorito

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.

yrral

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!

senyorito

Hey bro... with that words I don't need to think deeper who you are heheh.  Thanks bro Larry!

tr0y

#12
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..

senyorito

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.

senyorito

v1.1 has been released to give support to SMF 2.0 Beta 3 Public.

Basie

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

senyorito

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

senyorito

#17
@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


Basie

That didn't work. I uninstalled the old version and added the new one, but it just looks the same...


senyorito

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.

Advertisement: