Page 3 of 4

Re: Very clean Mod

Posted: Fri Jun 16, 2006 12:39 pm
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.

Posted: Thu Sep 14, 2006 1:23 am
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.

Posted: Thu Sep 14, 2006 6:34 am
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

Posted: Thu Dec 14, 2006 3:10 pm
by kevlar
How do I increment ? Whatever that may be, tx in advance :wink:

Posted: Thu Dec 14, 2006 3:13 pm
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

Posted: Thu Dec 14, 2006 7:51 pm
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.

Posted: Tue Jan 09, 2007 3:51 pm
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:)

Posted: Tue Jan 09, 2007 4:20 pm
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 :)

Posted: Tue Jan 09, 2007 4:29 pm
by Unkynd
WOW you're a genius!! Thank-you sooooo much!

Posted: Mon Jan 15, 2007 11:59 pm
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.)

Posted: Tue Jan 16, 2007 12:01 am
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

Re: [2.0.20] Avatars in Memberlist

Posted: Sat Jun 23, 2007 4:00 pm
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

Re: [2.0.20] Avatars in Memberlist

Posted: Sat Jun 23, 2007 4:29 pm
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"

Re: [2.0.20] Avatars in Memberlist

Posted: Sat Jun 23, 2007 5:01 pm
by TPIMaster
Well, colspan was set to {S_COLSPAN}. Where do I find that?

Re: [2.0.20] Avatars in Memberlist

Posted: Sat Jun 23, 2007 5:42 pm
by lefty74
I dont have that in my memberlist_body.tpl so I guess you have some kind of mod installed... try memberlist.php