Browse Source

Now everyone's happy

pjc 5 years ago
parent
commit
82c4aafa17
3 changed files with 8 additions and 6 deletions
  1. 6
    4
      classes/users.class.php
  2. 1
    1
      static/styles/beluga/style.css
  3. 1
    1
      static/styles/oppai/style.css

+ 6
- 4
classes/users.class.php View File

520
    * @param string $ReturnHTML
520
    * @param string $ReturnHTML
521
    * @return string
521
    * @return string
522
    */
522
    */
523
-  public static function show_avatar($Avatar, $UserID, $Username, $Setting, $Size = 150, $ReturnHTML = true) {
523
+  public static function show_avatar($Avatar, $UserID, $Username, $Setting, $Size = 0, $ReturnHTML = true) {
524
     $Avatar = ImageTools::process($Avatar, 'avatar');
524
     $Avatar = ImageTools::process($Avatar, 'avatar');
525
-    $Style = 'style="max-height: 300px;"';
525
+    $Style = 'style="max-width: 150px; max-height: 300px;"';
526
     $AvatarMouseOverText = '';
526
     $AvatarMouseOverText = '';
527
     $SecondAvatar = '';
527
     $SecondAvatar = '';
528
     $Class = 'class="double_avatar"';
528
     $Class = 'class="double_avatar"';
544
     switch ($Setting) {
544
     switch ($Setting) {
545
       case 0:
545
       case 0:
546
         if (!empty($Avatar)) {
546
         if (!empty($Avatar)) {
547
-          $ToReturn = ($ReturnHTML ? "<a href=\"user.php?id=$UserID\"><img src=\"$Avatar\" ".($Size?"width=\"$Size\" ":"")."$Style $AvatarMouseOverText$SecondAvatar $Class /></a>" : $Avatar);
547
+          $ToReturn = ($ReturnHTML ? "<a href=\"user.php?id=$UserID\"><img src=\"$Avatar\" $Style $AvatarMouseOverText$SecondAvatar $Class /></a>" : $Avatar);
548
+          #$ToReturn = ($ReturnHTML ? "<a href=\"user.php?id=$UserID\"><img src=\"$Avatar\" ".($Size?"width=\"$Size\" ":"")."$Style $AvatarMouseOverText$SecondAvatar $Class /></a>" : $Avatar);
548
         } else {
549
         } else {
549
           $URL = STATIC_SERVER.'common/avatars/default.png';
550
           $URL = STATIC_SERVER.'common/avatars/default.png';
550
-          $ToReturn = ($ReturnHTML ? "<img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar />" : $URL);
551
+          $ToReturn = ($ReturnHTML ? "<img src=\"$URL\" $Style $AvatarMouseOverText$SecondAvatar />" : $URL);
552
+          #$ToReturn = ($ReturnHTML ? "<img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar />" : $URL);
551
         }
553
         }
552
         break;
554
         break;
553
       case 2:
555
       case 2:

+ 1
- 1
static/styles/beluga/style.css View File

1305
 }
1305
 }
1306
 
1306
 
1307
 td.avatar {
1307
 td.avatar {
1308
-  width: 100px;
1308
+  max-width: 150px;
1309
   padding: 0
1309
   padding: 0
1310
 }
1310
 }
1311
 
1311
 

+ 1
- 1
static/styles/oppai/style.css View File

802
 }
802
 }
803
 
803
 
804
 td.avatar {
804
 td.avatar {
805
-  width: 100px;
805
+  max-width: 150px;
806
   padding: 0px;
806
   padding: 0px;
807
 }
807
 }
808
 
808
 

Loading…
Cancel
Save