For some reason, the feature that resizes the user's image in the guestbook was removed in 4.7.0. Also, instead, they introduced a much more complicated and unneeded code. I haven't had the time to go through the image section to remove any uneeded code, however, it won't affect the page whatsoever.

Replace this:

      }

      $output .= "<div class=\"picture\">$picture</div>";
    }

With:

      }
  if (variable_get('user_pictures', 0)) {
    if ($account->picture && file_exists($account->picture)) {
      $pic = file_create_url($account->picture);
}
  }

      $output .= "<div align=\"right\"><a href=\"?q=user/$uid\"><img src=\"$pic\" height=70></a></div>";
    }

Simply change the value for 'height=70' to whatever you want and it will proportionally resize in your guestbook.

Comments

Popboard’s picture

StatusFileSize
new26.82 KB

Here's the actualy module file. I just simply regenerated the URL to the user's image with $pic. You can change this to whatever you want, obvisouly.

Popboard’s picture

StatusFileSize
new26.82 KB

I appologize but I made a stupid error. You DON'T want

. You want
. This will display your images correctly. I uploaded the new file. Sorry again.
      }
  if (variable_get('user_pictures', 0)) {
    if ($account->picture && file_exists($account->picture)) {
      $pic = file_create_url($account->picture);
}
  }

      $output .= "<div class=\"picture\"><a href=\"?q=user/$uid\"><img src=\"$pic\" height=70></a></div>";
    }
Popboard’s picture

StatusFileSize
new26.82 KB

I appologize but I made a stupid error. You DON'T want:
<div align=\"right\"></code You want: <code><div class=\"picture\"> . This will display your images correctly. I uploaded the new file. Sorry again.

      }
  if (variable_get('user_pictures', 0)) {
    if ($account->picture && file_exists($account->picture)) {
      $pic = file_create_url($account->picture);
}
  }

      $output .= "<div class=\"picture\"><a href=\"?q=user/$uid\"><img src=\"$pic\" height=70></a></div>";
    }
scroogie’s picture

Status: Needs review » Active

I would recommend using imagecache for creating a cached copy of the resized image instead of just scaling it down with HTML. Additionally, i dont believe this should go in the module, you can change that behaviour by overriding the theme function.

sun’s picture

Status: Active » Closed (won't fix)

Agreeing with scroogie.