Login
Oyunlar  

Avatar Bug on Portal

Avatar Bug on Portal

Postby Deumus on Tue May 22, 2007 2:39 pm

Hello,

First, sorry for my english.

I have find a bug. The avatar is not show on portal main page when you are logged. I write a fix for this.




Open: bb3portal\block\user_menu.php
Search:

Code: Select all
   if ($row['user_avatar'] && $user->optionget('viewavatars'))
   {
      $avatar_img = '';
      
      switch ($row['user_avatar_type'])
      {
         case AVATAR_UPLOAD:
            $avatar_img = $config['avatar_path'] . '/';
         break;

         case AVATAR_GALLERY:
            $avatar_img = $config['avatar_gallery_path'] . '/';
         break;
      }
      
      $avatar_img .= $row['user_avatar'];
      $avatar_img = '<img src="' . $avatar_img . '" width="' . $row['user_avatar_width'] . '" height="' . $row['user_avatar_height'] . '" alt="' . $username . '" title="' . $username . '" />';
      $user_colour = ($row['user_colour']) ? ' style="color:#' . $row['user_colour'] .'"' : '';         
   }


replace with:

Code: Select all
   if ($row['user_avatar'] && $user->optionget('viewavatars'))
   {
      $avatar_img = '';
      
      /*
      switch ($row['user_avatar_type'])
      {
         case AVATAR_UPLOAD:
            $avatar_img = $config['avatar_path'] . '/';
         break;

         case AVATAR_GALLERY:
            $avatar_img = $config['avatar_gallery_path'] . '/';
         break;
      }
      */
      
      $avatar_img .= $row['user_avatar'];
      $avatar_img = '<img src="./download.php?avatar=' . $avatar_img . '" width="' . $row['user_avatar_width'] . '" height="' . $row['user_avatar_height'] . '" alt="' . $username . '" title="' . $username . '" />';
      $user_colour = ($row['user_colour']) ? ' style="color:#' . $row['user_colour'] .'"' : '';         
   }
Deumus
 
Posts: 6
Joined: Tue May 22, 2007 2:35 pm

Re: Avatar Bug on Portal

Postby bbrian017 on Tue May 22, 2007 4:15 pm

Works for me RC1 installed and I have no problems
www.yawoop.com Search Engine and 2400 free arcade games :)
bbrian017
 
Posts: 55
Joined: Thu May 10, 2007 3:43 am
Location: Canada

Re: Avatar Bug on Portal

Postby Deumus on Tue May 22, 2007 6:28 pm

You do not have a problem with the avatar without my fix ?

I have installed the RC1 and portal 103b.
Deumus
 
Posts: 6
Joined: Tue May 22, 2007 2:35 pm

Re: Avatar Bug on Portal

Postby bbrian017 on Tue May 22, 2007 7:41 pm

no it works perfect with my RC1 and the avatar comes up and displays no problem, your having issues?
www.yawoop.com Search Engine and 2400 free arcade games :)
bbrian017
 
Posts: 55
Joined: Thu May 10, 2007 3:43 am
Location: Canada

Re: Avatar Bug on Portal

Postby Miyagui on Wed May 23, 2007 12:51 am

I have the same error Deumus
Will give your hack a try.

Regards, Miyagui^

edit: Worked, thanks a bunch.
Miyagui
User avatar
 
Posts: 6
Joined: Wed May 23, 2007 12:49 am

Re: Avatar Bug on Portal

Postby bbrian017 on Thu May 24, 2007 3:35 am

I wonder why you guys are having issues?
www.yawoop.com Search Engine and 2400 free arcade games :)
bbrian017
 
Posts: 55
Joined: Thu May 10, 2007 3:43 am
Location: Canada

Re: Avatar Bug on Portal

Postby Deumus on Thu May 24, 2007 6:09 am

phpBB3 RC1 use download.php?avatar=image.jpg to link the avatar not the link contain in portal version

Sorry for my english. I understand better then i speak :x
Deumus
 
Posts: 6
Joined: Tue May 22, 2007 2:35 pm

Re: Avatar Bug on Portal

Postby stanleyhsieh on Sat May 26, 2007 2:27 pm

Thank you. Got the bug fixed. :D
stanleyhsieh
 

Re: Avatar Bug on Portal

Postby Yoris on Fri Jun 08, 2007 7:40 pm

I have the same bug, but this fix did not solve the problem.... stanley any solutions???
http://www.yorisvirtual.com.ar here.... so you can see what i mean....
www.yorisvirtual.com.ar
Yoris
User avatar
 
Posts: 22
Joined: Thu May 31, 2007 4:54 am
Location: Far, Far away

Re: Avatar Bug on Portal

Postby stanleyhsieh on Sat Jun 09, 2007 5:10 am

Yoris wrote:I have the same bug, but this fix did not solve the problem.... stanley any solutions???
http://www.yorisvirtual.com.ar here.... so you can see what i mean....

Can you give me a test acocunt with an avator. Thank you.
stanleyhsieh
 

Next

Return to [1.0.x] Error Reports



Who is online

Users browsing this forum: No registered users



cron