I use to reduce the size of photos of the module imagecache_profiles. But the forum is loaded by default phpbb big picture (250x300), how to make a loaded small (100x150)? Or if it is problematic how to change the (postrow.POSTER_AVATAR) the width and height?

CommentFileSizeAuthor
#1 phpbbforum-avatar-imagecachefix.patch2.62 KBjaperry

Comments

japerry’s picture

Version: 6.x-2.0-beta5 » 6.x-2.0-beta12
Assigned: Unassigned » japerry
Category: bug » feature
Status: Active » Needs review
StatusFileSize
new2.62 KB

I've created a fix for this, but its a little messy and could be improved. But it does work.

Key things:
* requires imagecache_profiles to be enabled
* uses the 'Profile picture preset' in the user settings

Works for me on the latest version, but it shoehorned with the avatar selection module right after it. if I spent more time, I could probably rewrite the whole avatar section, but just didn't want to do that.. so you'll see a bunch of 'if $avatar_selection_url || module_exists('imagecache_profiles') cases so the default picture doesn't overwrite the url at the top of the avatar code.

Works on the latest 6.x-20-beta12

Toxid’s picture

Unfortunately alot of the avatar code seems to have changed in RC. The patch can't be applied. I think this would be a great addition to this module, since phpbb doesn't have automatic resizing.

fizk’s picture

Issue tags: +ToDo

Adding todo tag.

fizk’s picture

Status: Needs review » Postponed