[2.0.20] Avatars in Memberlist

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
13
76%
Very Good
4
24%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 17

User avatar
Makc666
Registered User
Posts: 358
Joined: Fri Mar 07, 2003 12:03 pm
Location: MSK-RU
Name: Maxim
Contact:

Re: Very clean Mod

Post by Makc666 »

rhinton wrote:
Makc666 wrote:
Gephri wrote:Nice clean mod.

wanted to also have avatar show in viewonline.php - any idea how?

I submited a new MOD named 'Avatars in Who is Online' to MODs' database.
Hope it will be online soon.


there's already one. all the boards i maintain have that done to them. called AvatarOnIndex_121. not that i haven't seen more than one MOD for a given improvement to the boards.

If you don't understand what is the difference between 'Who is Online' page and 'Memberlist' page and 'Index' page than please don't make posts like you did.
Jay.W
Registered User
Posts: 2
Joined: Thu Sep 14, 2006 1:19 am

Post by Jay.W »

This is nice and have installed.
Now my question is how i sort with and without avatar?
Should it limit the size or the page layout will be widened.
User avatar
Makc666
Registered User
Posts: 358
Joined: Fri Mar 07, 2003 12:03 pm
Location: MSK-RU
Name: Maxim
Contact:

Post by Makc666 »

Jay.W wrote: This is nice and have installed.
Now my question is how i sort with and without avatar?
Should it limit the size or the page layout will be widened.

On Memberlist page
select Select sort method: "Avatar"
and use Ascending or Descending
order
kevlar
Registered User
Posts: 28
Joined: Tue Dec 12, 2006 9:56 pm

Post by kevlar »

How do I increment ? Whatever that may be, tx in advance :wink:
User avatar
Makc666
Registered User
Posts: 358
Joined: Fri Mar 07, 2003 12:03 pm
Location: MSK-RU
Name: Maxim
Contact:

Post by Makc666 »

kevlar wrote: How do I increment ? Whatever that may be, tx in advance :wink:

Read here:
http://www.phpbb.com/kb/article.php?article_id=39

Look for (Ctrl +F):
The INCREMENT Action

Also, you can use:
EasyMOD to install MODs
http://www.phpbb.com/phpBB/viewtopic.php?t=217673
kevlar
Registered User
Posts: 28
Joined: Tue Dec 12, 2006 9:56 pm

Post by kevlar »

tx, I already found out, u didn't need to explain the search function but tx anywe's, mod works like a charm.
Unkynd
Registered User
Posts: 48
Joined: Thu Jul 06, 2006 4:37 am
Location: Australia

Post by Unkynd »

Hey first of all great mod.

Only one question I have to ask.. after playing around a bit.. I decided to reduce the number of columns...

So I have the users avatar and their username underneath. Both are clickable and will reach the user's profile. However, some avatars are quite large.

Is there a way to force the avatars to shrink, much like a thumbnail, so that each member row is a similar size, unless no avatar can be found??

Here's a copy of my code:

Code: Select all

{TPL_HDR1}<span class="cattitle">&nbsp;</span>{TPL_HDR2}<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
	<tr> 
	  <th height="25" class="thCornerL" nowrap="nowrap">#</th>

	  <th class="thTop" nowrap="nowrap">User</th>
	  <th class="thTop" nowrap="nowrap">Contact</th>
	  <th class="thTop" nowrap="nowrap">{L_FROM}</th>
	  <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
	  <th class="thTop" nowrap="nowrap">{L_POSTS}</th>

	</tr>
	<!-- BEGIN memberrow -->
	<tr> 
	  <td class="row4" align="center"><span class="gen">&nbsp;{memberrow.ROW_NUMBER}&nbsp;</span></td>
	  
	  <td height="25" class="{memberrow.ROW_CLASS}" align="center"><a href="{memberrow.U_VIEWPROFILE}">{memberrow.AVATAR_IMG}</a></br><span><a href="{memberrow.U_VIEWPROFILE}">{memberrow.USERNAME}</a></span></br></td>

<td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.PM_IMG}&nbsp;</br>&nbsp;{memberrow.EMAIL_IMG}&nbsp;</br>&nbsp;{memberrow.WWW_IMG}&nbsp;</td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.FROM}</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>

	</tr>
	<!-- END memberrow -->
</table>{TPL_FTR}
Cheers:)
User avatar
Makc666
Registered User
Posts: 358
Joined: Fri Mar 07, 2003 12:03 pm
Location: MSK-RU
Name: Maxim
Contact:

Post by Makc666 »

I didn't test it, but you can try to make it so:

Code: Select all

#
#-----[ OPEN ]------------------------------------------------
#
memberlist.php

#
#-----[ FIND ]------------------------------------------------
#
		$poster_avatar = '';
		if ( $row['user_avatar_type'] && $user_id != ANONYMOUS && $row['user_allowavatar'] )
		{
			switch( $row['user_avatar_type'] )
			{
				case USER_AVATAR_UPLOAD:
					$poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $row['user_avatar'] . '" alt="" border="0" />' : '';
					break;
				case USER_AVATAR_REMOTE:
					$poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $row['user_avatar'] . '" alt="" border="0" />' : '';
					break;
				case USER_AVATAR_GALLERY:
					$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $row['user_avatar'] . '" alt="" border="0" />' : '';
					break;
			}
		}
#
#-----[ AFTER, ADD ]------------------------------------------
#

		$poster_avatar_2 = '';
		if ( $row['user_avatar_type'] && $user_id != ANONYMOUS && $row['user_allowavatar'] )
		{
			switch( $row['user_avatar_type'] )
			{
				case USER_AVATAR_UPLOAD:
					$poster_avatar_2 = ( $board_config['allow_avatar_upload'] ) ? '<img width=100 height=100 src="' . $board_config['avatar_path'] . '/' . $row['user_avatar'] . '" alt="" border="0" />' : '';
					break;
				case USER_AVATAR_REMOTE:
					$poster_avatar_2 = ( $board_config['allow_avatar_remote'] ) ? '<img width=100 height=100 src="' . $row['user_avatar'] . '" alt="" border="0" />' : '';
					break;
				case USER_AVATAR_GALLERY:
					$poster_avatar_2 = ( $board_config['allow_avatar_local'] ) ? '<img width=100 height=100 src="' . $board_config['avatar_gallery_path'] . '/' . $row['user_avatar'] . '" alt="" border="0" />' : '';
					break;
			}
		}
#
#-----[ FIND ]------------------------------------------------
#
'AVATAR_IMG' => $poster_avatar,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'AVATAR_IMG_2' => $poster_avatar_2,
In code above you added there is:
width=100 height=100
You can change it to one you like.
Also you can use only
width=100 without height.

Code: Select all

#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/memberlist_body.tpl

#
#-----[ FIND ]------------------------------------------------
#
{memberrow.AVATAR_IMG}

#
#-----[ REPLACE WITH ]------------------------------------------------
#
{memberrow.AVATAR_IMG_2}
Hope it will help :)
Last edited by Makc666 on Tue Jan 09, 2007 4:55 pm, edited 1 time in total.
Unkynd
Registered User
Posts: 48
Joined: Thu Jul 06, 2006 4:37 am
Location: Australia

Post by Unkynd »

WOW you're a genius!! Thank-you sooooo much!
User avatar
PoorHaplessPeon
Registered User
Posts: 37
Joined: Wed Aug 23, 2006 12:39 am

Post by PoorHaplessPeon »

Nice mod. Installation was very smooth on 2.0.22. Had to use brain to figure out {%:1} but it didn't hurt very much. :wink:

(Just search for <td class="catBottom" colspan= instead of the whole line and add one to whatever's there.)
User avatar
Makc666
Registered User
Posts: 358
Joined: Fri Mar 07, 2003 12:03 pm
Location: MSK-RU
Name: Maxim
Contact:

Post by Makc666 »

PoorHaplessPeon wrote: Nice mod. Installation was very smooth on 2.0.22. Had to use brain to figure out {%:1} but it didn't hurt very much. :wink:

(Just search for <td class="catBottom" colspan= instead of the whole line and add one to whatever's there.)

Thanks :!:

And if you read this one:
http://www.phpbb.com/kb/article.php?article_id=39
next time brain can rest a littile :P
TPIMaster
Registered User
Posts: 25
Joined: Fri May 04, 2007 10:39 pm

Re: [2.0.20] Avatars in Memberlist

Post by TPIMaster »

Hmm, after installing this mod, I get this little thingie, which kind of annoys me:

Image
The bottom bar image seems to stop a bit before the actual bar stops
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [2.0.20] Avatars in Memberlist

Post by lefty74 »

TPIMaster wrote:Hmm, after installing this mod, I get this little thingie, which kind of annoys me:

Image
The bottom bar image seems to stop a bit before the actual bar stops
looks like u forgot to increment a colspan by 1, e.g. from colspan="5" to colspan="6"
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
TPIMaster
Registered User
Posts: 25
Joined: Fri May 04, 2007 10:39 pm

Re: [2.0.20] Avatars in Memberlist

Post by TPIMaster »

Well, colspan was set to {S_COLSPAN}. Where do I find that?
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [2.0.20] Avatars in Memberlist

Post by lefty74 »

I dont have that in my memberlist_body.tpl so I guess you have some kind of mod installed... try memberlist.php
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
Post Reply

Return to “[2.0.x] MOD Database Releases”