Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author donmik

    (@atallos)

    You can do it with a filter or with css…

    In the FAQ, I explain how to use the filter to change the way the field value is displayed. In your functions.php, you can write the filter and instead displaying a simple img tag with alt attibute, you can add width and height attributes.

    With css it’s even easier…

    Thread Starter aldebaranmirko

    (@aldebaranmirko)

    ok thanks, but if the code below works only in edit profile.
    when I go to view profile image remains large.
    please can you help me?….is my first website

    `if (bp_get_the_profile_field_edit_value() != ”) {
    $actual_image = sprintf(‘<img src=”%s” width=”300″ alt=”%s” /><label for=”%s_deleteimg”><input type=”checkbox” name=”%s_deleteimg” id=”%s_deleteimg” value=”1″ />%s</label><input type=”hidden” name=”%s_hiddenimg” id=”%s_hiddenimg” value=”%s” />’,
    $uploads[‘baseurl’].bp_get_the_profile_field_edit_value(),
    bp_get_the_profile_field_input_name(),
    bp_get_the_profile_field_input_name(),
    bp_get_the_profile_field_input_name(),
    bp_get_the_profile_field_input_name(),
    __(‘Check this to delete this image’, ‘bxcft’),
    bp_get_the_profile_field_input_name(),
    bp_get_the_profile_field_input_name(),
    bp_get_the_profile_field_edit_value());
    } else {
    $actual_image = ”;
    }’

    Plugin Author donmik

    (@atallos)

    Because this code is only for edit profile… it’s not responsible of the profile template…only the profile form.

    With the css, I can’t help you if you don’t send me a link to see it. I need to know what classes or ids to use…

    Thread Starter aldebaranmirko

    (@aldebaranmirko)

    sorry,

    where is the css in question?

    buddypress.css?

    Plugin Author donmik

    (@atallos)

    You can write it in style.css in your theme, but you need to create it. The lines you need don’t exist, you need to create them…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Large image in view profile’ is closed to new replies.