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,9 +520,9 @@ class Users {
520 520
    * @param string $ReturnHTML
521 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 524
     $Avatar = ImageTools::process($Avatar, 'avatar');
525
-    $Style = 'style="max-height: 300px;"';
525
+    $Style = 'style="max-width: 150px; max-height: 300px;"';
526 526
     $AvatarMouseOverText = '';
527 527
     $SecondAvatar = '';
528 528
     $Class = 'class="double_avatar"';
@@ -544,10 +544,12 @@ class Users {
544 544
     switch ($Setting) {
545 545
       case 0:
546 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 549
         } else {
549 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 554
         break;
553 555
       case 2:

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

@@ -1305,7 +1305,7 @@ table.forum_post span[style="float:left;"] img,table.forum_post td[colspan="2"]
1305 1305
 }
1306 1306
 
1307 1307
 td.avatar {
1308
-  width: 100px;
1308
+  max-width: 150px;
1309 1309
   padding: 0
1310 1310
 }
1311 1311
 

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

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

Loading…
Cancel
Save