Loading...
 
Skip to main content

Big avatar in forums, elsewhere

Status
Closed
Subject
Big avatar in forums, elsewhere
Version
2.x
Category
  • Error
  • Regression
  • Usability
  • Less than 30-minutes fix
  • Patch
Feature
Forum
Resolution status
Invalid
Submitted by
pmorenogarcia
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

"If a user upload a big avatar (more than 45x45 px) tiki 2.1 not 'avatarize' and show the big image in the forums. This problem may be very uncomfortable when you read a forum topic."

I can confirm that this still occurs on tiki.org and whatever Tiki version it is running presently, specifically with GIF images. — ssanders

Solution

Change the line 1073 of /lib/tikiklib.php

Copy to clipboard
$ret = "<img border='0' src='tiki-show_user_avatar.php?user=$user' " . $style . " alt='$user' />";

by

Copy to clipboard
$ret = "<img border='0' width='45' height='45' src='tiki-show_user_avatar.php?user=$user' " . $style . " alt='$user' />";


(like in tiki 1.9)

or, for rectangular avatars:

Copy to clipboard
$ret = "<img border='0' height='45' src='tiki-show_user_avatar.php?user=$user' " . $style . " alt='$user' />";


This change works in http://precarios.org/



I, Chealer9, can't reproduce this bug in trunk. I'm closing assuming this was fixed. Please reopen if you can reproduce in a current version.

Workaround
Importance
5
Easy to solve?
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2082
Created
Saturday 18 October, 2008 16:09:18 UTC
by Unknown
LastModif
Friday 01 May, 2026 14:51:30 UTC


Show PHP error messages