News:

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

Main Menu

Avatar on Member List

Started by Gary, April 25, 2007, 03:29:12 PM

Previous topic - Next topic

shaiss

ALM, thank you very much for a great mod and helping.  I got it to work
http://www.ocmoto.com/index.php?action=mlist

But, I would like to have the appars be the 2nd colum.  After the status, but before the name.  Is this possible?
Also, how would I change the size of the avatars displayed on the memberlist?
-Shai
If you ride on two wheels you need to ocmoto.com!

Gary

#21
To move the cell the avatar is in. You'll need to move things around.

<td class="windowbg2">', $member['avatar']['image'], '</td>

Contains the avatar obviously, so relocate that to where you want it in  in $themedir/Memberlist.template.php, but you'll also need to move


'avatar' => array(
'label' => $txt['avatar'],

To the same place in $sourcedir/Memberlist.php

For sizes try:

<td class="windowbg2"><img src="', $member['avatar']['href'], '" width="40" height="40" alt="" /></td>
in Memberlist.template.php and change the width/height.

-ALM
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

shaiss

WOW!
Thank you Again ALM!

But now those people who dont have avatars I get a white box for them.
I think it would be complicated to add an if then statement, so what would you suggest so its not so ugly?
http://www.ocmoto.com/index.php?action=mlist
-Shai
If you ride on two wheels you need to ocmoto.com!

goitalone

I installed this and now all my fonts are bigger than they used to be...HUGE actually.

Where do I go to change this without actually searching all over my files for it?

goitalone

Acutally I found it...after I installed it, I see this at the top of all of my pages:

$txt['avatar'] = 'Avatar';

I'm going to try and find out what happened and fix it.

MarkRH

I am getting the following error when clicking on "Avatar" in the Memberlist to sort by it:

Database Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 30' at line 5
File: /(path...)/Sources/Memberlist.php
Line: 345

Anyone else having this issue?
Mark H.

Gary

Yeah, I know about that. I'm not sure if its possible to fix, but I'll look into it some day, I mean, how can you sort avatars, they're just pictures. :P

-ALM
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

werdz24

Hey ALM,

Just a novice to this Forum thing...saw your mod. Any simple instructions of implementing this feature to my forum...?

Thx

Gary

Download the mod, then go Admin > Packages > Download Packages > Upload a Package > [Browse] > Upload and follow the intructions.

-ALM
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

werdz24

Thanks ALM, will give it a shot...

Filipina

Quote from: samozin on April 29, 2007, 12:22:55 PM
thanx man  but let me  ask u .......who cares for  looking at the avatars ? u  know i dont let the

users
to access the members area   i think u  need to  think  of another mod makes us  say wooo  hes really good something  usefull
iam sorry for saying this and being mean 

Depends how you control your site and what you use it for.

I want to say this is an awsome mod and it works great for me with a dating forum.  When members search the memberlist it saves them a lot of time and they can skip over the people with no pics.  This was just what I needed and it worked without a hitch :)  Also, it will save me a LOT of wasted time clicking on members to see who has failed to provide a pic... I can tell from the member list who has a picture and who does not.  And finally, if they have one of those red x's showing on the memberlist i can go in and try and fix the URL. Thanks again!

werdz24

ALM...thanks. It works great.
Easy and ready to go...

shadow82x

Maybe there should be something to go with this like avatar on buddies list?
Colin B
Former Spammer, Customize, & Support Team Member

werdz24

That sounds like a good mod shadow82x. What do you ALM...?

tonzi

i have an error during installation.

Modification /home/nothingb/public_html/forum/Themes/default/Memberlist.template.php
Test failed!!!

Gary

You probably have some other mod conflicting.

You'll have to install the mod manually.

-ALM
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

tonzi

how? correct me if im wrong coz im a noob.
so you mean i have to extract this and manually upload it through an ftp program? so if ever what directory should I upload this?

TrueSatan

Please read the following and follow the directions given in it:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531

You may also find the following helpful:

http://modparser.dev.dansoftaustralia.net/

tonzi

did this but it gives me lots of error.

Gary

Can you attach your Memberlist.template.php file?

-ALM
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Advertisement: