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

+ 4
- 6
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 = 0, $ReturnHTML = true) {
523
+  public static function show_avatar($Avatar, $UserID, $Username, $Setting, $Size = 120, $ReturnHTML = true) {
524
     $Avatar = ImageTools::process($Avatar, 'avatar');
524
     $Avatar = ImageTools::process($Avatar, 'avatar');
525
-    $Style = 'style="max-width: 245px; max-height: 420px;"';
525
+    $Style = 'style="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\" $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);
547
+          $ToReturn = ($ReturnHTML ? "<a href=\"user.php?id=$UserID\"><img src=\"$Avatar\" ".($Size?"width=\"$Size\" ":"")."$Style $AvatarMouseOverText$SecondAvatar $Class /></a>" : $Avatar);
549
         } else {
548
         } else {
550
           $URL = STATIC_SERVER.'common/avatars/default.png';
549
           $URL = STATIC_SERVER.'common/avatars/default.png';
551
-          $ToReturn = ($ReturnHTML ? "<img src=\"$URL\" $Style $AvatarMouseOverText$SecondAvatar />" : $URL);
552
-          #$ToReturn = ($ReturnHTML ? "<img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar />" : $URL);
550
+          $ToReturn = ($ReturnHTML ? "<img src=\"$URL\" width=\"$Size\" $Style $AvatarMouseOverText$SecondAvatar />" : $URL);
553
         }
551
         }
554
         break;
552
         break;
555
       case 2:
553
       case 2:

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

1305
 }
1305
 }
1306
 
1306
 
1307
 td.avatar {
1307
 td.avatar {
1308
-  max-width: 150px;
1308
+  max-width: 120px;
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
-  max-width: 150px;
805
+  max-width: 120px;
806
   padding: 0px;
806
   padding: 0px;
807
 }
807
 }
808
 
808
 

Loading…
Cancel
Save