BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #48351

    Or is there a way to work on the avatar size cropped, and prevent it from decreasing the image quality.

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #48349

    I Brajesh, I tried that bud didn’t notice anything.
    It turned out that I had to increase the avatar size cropped, https://buddydev.com/changing-default-avatar-size-croppedused-by-buddypress/, very high, eg. 900px, and it worked. I don’t know if that is advisable though, but I might end up using an image optimizer plugin if there is any problem.

    However, I am facing a problem. The cropper size also increased and can not fit on the page, to which extent I can’t see all the cropper, most especially on mobile devices.

    Is there any way to reduce the cropper and maintain the size(900px).

    Thank you very much for the help.

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #48326

    Hi Brajesh,
    Thanks a lot, I was able to figure it out.

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #48245

    Hi Brajesh,
    I understand what you are saying and I have already achieved that by using the urls to determine whether the user is on a perticular buddypress component, and disabled the irrelevant plugins by modifying the code above.

    However, please just post some examples on how I can call the functions without getting a “Call to undefined function” error, since now I want to filter the unused css on these components, but I don’t want to use the urls to check with this one.

    Since this topic seems to be off the hook, good thing that I have already figured it out, let me atleast benefit by learning how to check if a user is on a particular buddypress component.

    Thank you for understanding.

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #48198

    Hi Brajesh, I don’t understand how to do that.
    Can you please post an example here.

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #48152

    Hi Brajesh,
    What about the “Call to undefined function bp_is_user_profile()”, please just help me on how to resolve the Call to undefined function problem for the various components. Or how do I check whether the current page is the members directory, the view profile, edit profile, upload profile photo, friends, timeline, photos, videos, and so on…

    How do I check if it is any of these components without any error.

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #48085

    Hello Ravi, thank you once again.
    The code also works well.

  • Participant
    Level: Initiated
    Posts: 10
    Emmanuel Johnson on #47866

    Hi Ravi,
    Thanks a lot, I just noticed and tried it and it worked perfectly, but how do I apply the same to the member profile timeline.

    That is, if a user is logged out and visit another user timeline on the user profile, he/she should be redirected to the login page and then redirected back.

    Once again thank you very much