[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: [2.0.20] Avatars in Memberlist

Post by Makc666 »

TPIMaster wrote:Well, colspan was set to {S_COLSPAN}. Where do I find that?
lefty74 wrote:I dont have that in my memberlist_body.tpl so I guess you have some kind of mod installed... try memberlist.php
lefty74 is right. You have {S_COLSPAN} there because of other mod installed. You have to look throw installation instructions of mods you have installed for {S_COLSPAN} there.

I even found this mod for you...
It is:
[BETA] Democracy MOD 0.2.1 (reputation + warnings + reports)
http://www.phpbb.com/community/viewtopic.php?t=289721

Code: Select all

## MOD Title: Democracy MOD
## MOD Author: Carbofos < carbofos@mail.ru > (N/A) N/A
## MOD Author: ETZel < etzel@mail.ru > (N/A) N/A
## MOD Description: Adds some social mechanisms to the phpBB (namely: warnings + reputation + reports)
## MOD Version: 0.2.1e
And it has installation code:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------
#
	  <th class="thTop" nowrap="nowrap">{L_POSTS}</th>

#
#-----[ AFTER, ADD ]------------------------------------------
#
	  <!-- BEGIN democracy -->
	  <th class="thTop" nowrap="nowrap">{democracy.L_TITLE}</th>
	  <!-- END democracy -->

#
#-----[ FIND ]------------------------------------------
#
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>

#
#-----[ AFTER, ADD ]------------------------------------------
#
	  <!-- BEGIN democracy -->
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.democracy.VALUE}</span></td>
  	  <!-- END democracy -->

#
#-----[ FIND ]------------------------------------------
#
	  <td class="catBottom" colspan="8" height="28">&nbsp;</td>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="8"
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
colspan="{S_COLSPAN}"
So you have to do so:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_var('S_COLSPAN', 8 + count($democracy_cols));
#
#-----[ REPLACE WITH ]------------------------------------------
#
$template->assign_var('S_COLSPAN', 9 + count($democracy_cols));
TPIMaster
Registered User
Posts: 25
Joined: Fri May 04, 2007 10:39 pm

Re: [2.0.20] Avatars in Memberlist

Post by TPIMaster »

Ah, fantastic! Such a helpful community it is here! Worked like a charm, thanks!
rantbot
Registered User
Posts: 83
Joined: Sun May 07, 2006 1:37 pm

Re: [2.0.20] Avatars in Memberlist

Post by rantbot »

What is the function of this line -

<td class="catBottom" colspan="{%:1}" height="28">&nbsp;</td>

I have 2.0.22 installed. My subSilver template has that line like so -

<td class="catBottom" colspan="8" height="28">&nbsp;</td>

I think that's the way it was with a new install. I don't use subSilver and am quite certain that I never modified memberlist_body.tpl.

The Aqua template, my forum's default, doesn't seem to have anything like that line at all.

I installed the mod without that line in Aqua, and it seems to work. What am I missing?

The link http://www.phpbb.com/kb/article.php?article_id=39 is dead.
Captain Tycoon
Registered User
Posts: 46
Joined: Sat May 26, 2007 5:49 pm

Re: [2.0.20] Avatars in Memberlist

Post by Captain Tycoon »

Hello,

This mod isn't working for my forum. I have installed the Default Avatars Mod and Living Avatars Mod. It isn't displaying any of the Avatars.

(Just to let you know, i have disabled members from uploading avatars and forced them to only use the Living Avatars MOD)

There should be avatars showing from both Living Avatars MOD and Default Avatars MOD. :|

PS: The Living Avatars should already be showing as they show up perfectly without any changes in the Avatars in Whos Online MOD and Avatars in PM Inbox/Sent Box/Outbox/Savebox MOD.
wintersmith
Registered User
Posts: 46
Joined: Wed Sep 19, 2007 12:22 pm

Re: [2.0.20] Avatars in Memberlist

Post by wintersmith »

Makc666 wrote:
TPIMaster wrote:Well, colspan was set to {S_COLSPAN}. Where do I find that?
lefty74 wrote:I dont have that in my memberlist_body.tpl so I guess you have some kind of mod installed... try memberlist.php
lefty74 is right. You have {S_COLSPAN} there because of other mod installed. You have to look throw installation instructions of mods you have installed for {S_COLSPAN} there.

I even found this mod for you...
It is:
[BETA] Democracy MOD 0.2.1 (reputation + warnings + reports)
http://www.phpbb.com/community/viewtopic.php?t=289721

Code: Select all

## MOD Title: Democracy MOD
## MOD Author: Carbofos < carbofos@mail.ru > (N/A) N/A
## MOD Author: ETZel < etzel@mail.ru > (N/A) N/A
## MOD Description: Adds some social mechanisms to the phpBB (namely: warnings + reputation + reports)
## MOD Version: 0.2.1e
And it has installation code:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------
#
	  <th class="thTop" nowrap="nowrap">{L_POSTS}</th>

#
#-----[ AFTER, ADD ]------------------------------------------
#
	  <!-- BEGIN democracy -->
	  <th class="thTop" nowrap="nowrap">{democracy.L_TITLE}</th>
	  <!-- END democracy -->

#
#-----[ FIND ]------------------------------------------
#
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>

#
#-----[ AFTER, ADD ]------------------------------------------
#
	  <!-- BEGIN democracy -->
	  <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.democracy.VALUE}</span></td>
  	  <!-- END democracy -->

#
#-----[ FIND ]------------------------------------------
#
	  <td class="catBottom" colspan="8" height="28">&nbsp;</td>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="8"
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
colspan="{S_COLSPAN}"
So you have to do so:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_var('S_COLSPAN', 8 + count($democracy_cols));
#
#-----[ REPLACE WITH ]------------------------------------------
#
$template->assign_var('S_COLSPAN', 9 + count($democracy_cols));
Just want to say that I came across this post after experiencing problems with installing the Birthday mod. The fix was right on the money for me as well; it was the Democracy mod that was causing the conflict, but now, both are installed and working fine (*touch wood).
Captain Tycoon
Registered User
Posts: 46
Joined: Sat May 26, 2007 5:49 pm

Re: [2.0.20] Avatars in Memberlist

Post by Captain Tycoon »

Does anyone have a fix for this to work with Living Avatars and Default avatars? :(

Edit: I am willing to pay for someone to fix this to work with Living Avatars and Default Avatars. Msg Me if interested. :ugeek:
kigoobe
Registered User
Posts: 169
Joined: Sat Apr 16, 2005 7:53 am
Location: Paris
Contact:

Re: [2.0.20] Avatars in Memberlist

Post by kigoobe »

Hi guys

Looks like a wonderful little mod. I'm wondering if it would be possible to modify the mod in a way that have a different display of users (with avatars), I mean, instead of having one in a row, could we have 5 / 6 in a row, with username and other details coming below the avatar.

It seems for that we will have to change the following part of memberlist.php

Code: Select all

		$template->assign_block_vars('memberrow', array(
			'ROW_NUMBER' => $i + ( $start + 1 ),
			'ROW_COLOR' => '#' . $row_color,
			'ROW_CLASS' => $row_class,
			'USERNAME' => $username,
			'FROM' => $from,
			'JOINED' => $joined,
			'POSTS' => $posts,
			'AVATAR_IMG' => $poster_avatar,
			'PROFILE_IMG' => $profile_img, 
			'PROFILE' => $profile, 
			'SEARCH_IMG' => $search_img,
			'SEARCH' => $search,
			'PM_IMG' => $pm_img,
			'PM' => $pm,
			'EMAIL_IMG' => $email_img,
			'EMAIL' => $email,
			'WWW_IMG' => $www_img,
			'WWW' => $www,
			'ICQ_STATUS_IMG' => $icq_status_img,
			'ICQ_IMG' => $icq_img, 
			'ICQ' => $icq, 
			'AIM_IMG' => $aim_img,
			'AIM' => $aim,
			'MSN_IMG' => $msn_img,
			'MSN' => $msn,
			'YIM_IMG' => $yim_img,
			'YIM' => $yim,
			
			'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
		);
But ... how !!! :?:

Thanks for any help guys.

:oops:
assault14
Registered User
Posts: 7
Joined: Sun Jun 29, 2008 11:50 pm

Re: [2.0.20] Avatars in Memberlist

Post by assault14 »

Is there a way to make this mod work for the Glacier theme in phpBB version 3.0.1?
rapid2008
Registered User
Posts: 151
Joined: Sat Aug 02, 2008 9:35 am

Re: [2.0.20] Avatars in Memberlist

Post by rapid2008 »

Can some one help me how to install this do i have to use FTP or how?
i ahve download it Avatar on Memberlist and opended the file i can seee install XML document and i have opend that it tell :::

[Open: memberlist.php
Comments
Add Template Vars
Find
Tip: This may be a partial find and not the whole line.

Code:Select All
return array(
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code:Select All
'USER_AVATAR' => get_user_avatar($data['user_avatar'], $data['user_avatar_type'], $data['user_avatar_width'], $data['user_avatar_height']),
'USER_AVATAR_THUMB' => ($data['user_avatar']) ? get_user_avatar($data['user_avatar'], $data['user_avatar_type'], ($data['user_avatar_width'] > $data['user_avatar_height']) ? 25 : (25 / $data['user_avatar_height']) * $data['user_avatar_width'], ($data['user_avatar_height'] > $data['user_avatar_width']) ? 25 : (25 / $data['user_avatar_width']) * $data['user_avatar_height']) : '',]


Code:Select All
return array( i cant find this in memberlist.php in ACP


thanks in advance
rapid2008
Registered User
Posts: 151
Joined: Sat Aug 02, 2008 9:35 am

Re: [2.0.20] Avatars in Memberlist

Post by rapid2008 »

how and where can i find that memberlist.php to edit please help me?
User avatar
Kingdombuilder
Registered User
Posts: 91
Joined: Sat Apr 26, 2008 7:48 am
Location: Flint, MI
Contact:

Re: [2.0.20] Avatars in Memberlist

Post by Kingdombuilder »

rapid2008 wrote:how and where can i find that memberlist.php to edit please help me?

It should be in your phpBB root directory...


/www/domain name/phpbb directory/memberlist.php
Image
Post Reply

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