Skip to:
Content
Pages
Categories
Search
Top
Bottom

Minimum Avatar-Size

  • Avatar of glycoknob
    glycoknob
    Member

    @glycoknob

    I’m using the default Buddypress-Theme and there are 2 Avatar-Sizes (150px and 50px) – That great but I’d like to avoid that users can upload smaller Pics.

    I’ve looked at the code in bp-core-avatars.php:


    function bp_core_check_avatar_dimensions($file) {
    $size = getimagesize($file);
    ...

    This function is not used – But I tried to add a if-clause using this function but then every picture – how big or small it may be – gets refused.

    Any Ideas how to resolve this?

Viewing 1 replies (of 1 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    What about trying to insert a call to that function around line 134 in bp-core-avatars.php? Just above where it has four checks (one of them is ‘File you uploaded is too big’ and ‘Please upload only JPG, GIF or PNG photos’).

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.