[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 Kjell » 29 May 2007, 09:51

A small problem I hope, new pictures/avatar do not come on screen with RC1
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




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [Add-on] Avatar on Memberlist

Postby Sniper_E » 29 May 2007, 11:25

Highway of Life wrote:I just installed this MOD here on STG, and everything works... memberlist.php
I just installed this MOD here on STG, and everything works... memberlist.php

But it only shows some avatars.?.?.?
You think it needs to change for RC1?
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: 6980
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 eFantasy » 29 May 2007, 11:29

I don't see the avatars on the memberlist here :confused:
Dark Blitz - A graphics community
Styles: proFantasy
New ranks: Blue Blitz ranks
Topic icons: More prosilver topic icons
Image
User avatar
eFantasy    
Style Author
Style Author
 
Posts: 528
Joined: 26 Apr 2007, 09:53
Location: Netherlands
Gender: Male
phpBB Knowledge: 5

Re: [Add-on] Avatar on Memberlist

Postby Sniper_E » 29 May 2007, 11:37

You wouldn't be looking in prosilver would you? I'm not working in prosilver just yet.

Try looking here: memberlist.php?style=3
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: 6980
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 eFantasy » 29 May 2007, 12:32

Can't view style 3, I'll just change my style in the ACP.
Dark Blitz - A graphics community
Styles: proFantasy
New ranks: Blue Blitz ranks
Topic icons: More prosilver topic icons
Image
User avatar
eFantasy    
Style Author
Style Author
 
Posts: 528
Joined: 26 Apr 2007, 09:53
Location: Netherlands
Gender: Male
phpBB Knowledge: 5

Re: [Add-on] Avatar on Memberlist

Postby eFantasy » 29 May 2007, 12:34

I saw it. Really nice! :good:
Dark Blitz - A graphics community
Styles: proFantasy
New ranks: Blue Blitz ranks
Topic icons: More prosilver topic icons
Image
User avatar
eFantasy    
Style Author
Style Author
 
Posts: 528
Joined: 26 Apr 2007, 09:53
Location: Netherlands
Gender: Male
phpBB Knowledge: 5

Re: [Add-on] Avatar on Memberlist

Postby Kjell » 29 May 2007, 14:02

Sniper_E wrote:
Highway of Life wrote:I just installed this MOD here on STG, and everything works... memberlist.php
I just installed this MOD here on STG, and everything works... memberlist.php

But it only shows some avatars.?.?.?
You think it needs to change for RC1?

I belive the are some problems with the new filename for the database.
Upload a new avatar and see...
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 eFantasy » 29 May 2007, 14:19

Can I make this work with prosilver?
Dark Blitz - A graphics community
Styles: proFantasy
New ranks: Blue Blitz ranks
Topic icons: More prosilver topic icons
Image
User avatar
eFantasy    
Style Author
Style Author
 
Posts: 528
Joined: 26 Apr 2007, 09:53
Location: Netherlands
Gender: Male
phpBB Knowledge: 5

Re: [Add-on] Avatar on Memberlist

Postby Sniper_E » 29 May 2007, 16:43

Kjell wrote:
Sniper_E wrote:
Highway of Life wrote:I just installed this MOD here on STG, and everything works... memberlist.php
I just installed this MOD here on STG, and everything works... memberlist.php

But it only shows some avatars.?.?.?
You think it needs to change for RC1?

I belive the are some problems with the new filename for the database.
Upload a new avatar and see...

Well the thing is, it shows my avatar.... so I'm good! :D
And I love the way you mouse over and the real image shows.

All the codes look fine that you have to add in this MOD.
It's grabbing the avatars but not everyone's avatar.
Some are in the Gallery and some are Uploaded. Are the linked ones missing?

The only part that would have to be changed, if it needed to be changed, is this part:
Spoiler:
Code: Select all
   /**
   * Grabs member avatars
   */
   $user_avatar = $user_avatar_size = $user_avatar_thumb = $size = '';
   if (!empty($data['user_avatar']))
   {
      switch ($data['user_avatar_type'])
      {
         case AVATAR_UPLOAD:
            $user_avatar = $config['avatar_path'] . '/';
         break;

         case AVATAR_GALLERY:
            $user_avatar = $config['avatar_gallery_path'] . '/';
         break;
      }
      $user_avatar .= $data['user_avatar'];
      
      $avatar_width = $data['user_avatar_width'];
      $avatar_height = $data['user_avatar_height'];
      
      $size = ($avatar_width > $avatar_height) ? 'width: 25px;' : 'height: 25px;';
      $user_avatar_thumb = '<img src="' . $user_avatar . '" style="' . $size . '" alt="" />';
      $user_avatar = '<img src="' . $user_avatar . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="" />';
   }
Would someone know if this code clashes with our new database changes?
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: 6980
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, 08:54

I fixed the problems here ;)
Spoiler:
Code: Select all
   /**
   * Grabs member avatars
   */
   $user_avatar = $user_avatar_size = $user_avatar_thumb = $size = '';
   if (!empty($data['user_avatar']))
   {
      switch ($data['user_avatar_type'])
      {
         case AVATAR_UPLOAD:
            $user_avatar = $phpbb_root_path . "download.$phpEx?avatar=";
         break;

         case AVATAR_GALLERY:
            $user_avatar = $phpbb_root_path . $config['avatar_gallery_path'] . '/';
         break;
      }
      $user_avatar .= $data['user_avatar'];
      
      $avatar_width = $data['user_avatar_width'];
      $avatar_height = $data['user_avatar_height'];
      
      $size = ($avatar_width > $avatar_height) ? 'width: 25px;' : 'height: 25px;';
      $user_avatar_thumb = '<img src="' . $user_avatar . '" style="' . $size . '" alt="" />';
      $user_avatar = '<img src="' . $user_avatar . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="" />';
   }
//end


The new code are:
Code: Select all
Find
$user_avatar = $config['avatar_path'] . '/';
Replace with
$user_avatar = $phpbb_root_path . "download.$phpEx?avatar=";
Find
$user_avatar = $config['avatar_gallery_path'] . '/';
Replace with
$user_avatar = $phpbb_root_path . $config['avatar_gallery_path'] . '/';
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

PreviousNext

Return to Memberlist and Profiles

Who is online

Users browsing this forum: ichiro [crawler] and 2 guests

cron