[Add-on] Avatar on Memberlist

MODs, Hacks, tips and tricks for memberlist, profiles, group members, and team members.
Custom Profile fields Hacks and MODs are also included

How would you rate this MOD

Awesome
11
73%
Good
3
20%
Average
0
No votes
Fair
0
No votes
Poor
1
7%
 
Total votes : 15

Re: [Add-on] Avatar on Memberlist

Postby Sniper_E » 30 May 2007, 16:15

Yes, that did it. There are a lot more avatars showing now.
I guess a lot of people haven't selected an avatar, their's are empty.
How would you add IF no avatar selected show theme/images/no_avatar.gif?
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Add-on] Avatar on Memberlist

Postby Kjell » 30 May 2007, 16:34

Go to ACP > Users and Groups > Group xxxxx Settings > Upload from your machine:

Image


Edit: I have test that now, and that working perfect :good:
Last edited by Kjell on 30 May 2007, 18:21, edited 1 time in total.
Kjelle
My work - My farm - Ware I live - phpBB support Sweden
"The globe is round, think global", My rules: Be teased is okay on a funny way ;)
User avatar
Kjell    
Supporter
Supporter
 
Posts: 490
Joined: 14 Feb 2007, 13:09
Location: Nordic of Sweden
Favorite Team: NHL N-ville,Forsberg
Gender: Male
phpBB Knowledge: 8

Re: [Add-on] Avatar on Memberlist

Postby Highway of Life » 30 May 2007, 16:49

If you are modifying the template, you will want to use something like:
Code: Select all
<!-- IF memberrow.WHATEVER_AVATAR -->{WHATEVER_AVATAR}<!-- ELSE --><img src="{T_IMAGESET_PATH}no_avatar.gif" alt="{memberrow.USERNAME}" /><!-- ENDIF -->
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Add-on] Avatar on Memberlist

Postby Kjell » 30 May 2007, 16:59

Highway of Life wrote:If you are modifying the template, you will want to use something like:
Code: Select all
<!-- IF memberrow.WHATEVER_AVATAR -->{WHATEVER_AVATAR}<!-- ELSE --><img src="{T_IMAGESET_PATH}no_avatar.gif" alt="{memberrow.USERNAME}" /><!-- ENDIF -->

Is true, but in the group you can use different group "no_avatars", say change the color on that but use same base image...
Attachments
no_avatar05.png
no_avatar05.png (7.89 KiB) Viewed 2460 times
no_avatar04.png
no_avatar04.png (6.24 KiB) Viewed 2451 times
no_avatar03.png
no_avatar03.png (8.13 KiB) Viewed 2445 times
no_avatar02.png
no_avatar02.png (7.91 KiB) Viewed 2464 times
no_avatar01.png
no_avatar01.png (8.17 KiB) Viewed 2417 times
Last edited by Kjell on 30 May 2007, 17:41, edited 2 times in total.
Kjelle
My work - My farm - Ware I live - phpBB support Sweden
"The globe is round, think global", My rules: Be teased is okay on a funny way ;)
User avatar
Kjell    
Supporter
Supporter
 
Posts: 490
Joined: 14 Feb 2007, 13:09
Location: Nordic of Sweden
Favorite Team: NHL N-ville,Forsberg
Gender: Male
phpBB Knowledge: 8

Re: [Add-on] Avatar on Memberlist

Postby Sniper_E » 30 May 2007, 17:07

Yes, I can modify the memberlist_body.html where it shows the avatars.
Code: Select all
      <td class="gen" align="center"><a class="thumbnail" href="{memberrow.U_VIEWPROFILE}"><span>{memberrow.USER_AVATAR}</span>{memberrow.USER_AVATAR_THUMB}</a></td>
BTW, I don't think the href="{memberrow.U_VIEWPROFILE}" link works in this.
This is your [Add-on] Avatar on Memberlist MOD I'm working with here in STG with Sniper_Blue.

I wanted it to show the no_avatar.gif image for those who have not selected an avatar.
I don't care about groups, I just didn't want to see any blank cells with no avatars.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [Add-on] Avatar on Memberlist

Postby Kjell » 30 May 2007, 17:19

Sniper_E wrote:I wanted it to show the no_avatar.gif image for those who have not selected an avatar.
I don't care about groups, I just didn't want to see any blank cells with no avatars.

But if you do that in groups you get avatars on all users. and you dont write over existing users avatars.
Kjelle
My work - My farm - Ware I live - phpBB support Sweden
"The globe is round, think global", My rules: Be teased is okay on a funny way ;)
User avatar
Kjell    
Supporter
Supporter
 
Posts: 490
Joined: 14 Feb 2007, 13:09
Location: Nordic of Sweden
Favorite Team: NHL N-ville,Forsberg
Gender: Male
phpBB Knowledge: 8

Re: [Add-on] Avatar on Memberlist

Postby bambam » 24 Jul 2007, 15:54

The link to download the Mod is broken.
Could someone adapt this mod for RC3 please?
bambam
Crewman
Crewman
 
Posts: 5
Joined: 02 Jul 2007, 15:24
Gender: Male

Re: [Add-on] Avatar on Memberlist

Postby Highway of Life » 24 Jul 2007, 19:14

Thanks. They changed the URL format on me. :glare:

Link fixed.
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [Add-on] Avatar on Memberlist

Postby bambam » 29 Jul 2007, 08:15

Could someone adapt this mod for RC4 please?
bambam
Crewman
Crewman
 
Posts: 5
Joined: 02 Jul 2007, 15:24
Gender: Male

Re: [Add-on] Avatar on Memberlist

Postby cyber » 30 Jul 2007, 23:16

Would it be possible to have a prosilver version too? ;) I really like this one :)

Grtz,

Nic
cyber
Crewman
Crewman
 
Posts: 1
Joined: 27 Jun 2007, 14:02
Gender: Male

PreviousNext

Return to Memberlist and Profiles

Who is online

Users browsing this forum: Discovery Bot and 0 guests