Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi Victor Omark,

    I hope you are well today.

    The post is closed now but I was wondering if this is hacking the plugin?

    Yes it is hacking the plugin.

    If it is hacking the plugin then how do I write a plugin so I can do this without hacking the plugin?

    Could you please share me the screenshot of where exactly you want to display the image on top so that i can help you to achieve it without hacking the plugin if it’s possible?

    For screenshots, you can simply provide a link to an image through Google Drive, Dropbox, screencast.com, https://imgur.com/ or other image service. ??

    Kind Regards,
    WPMU DEV

    Thread Starter vanleurth

    (@vanleurth)

    Thank you for your prompt response,

    Here is a snapshot to the activity post.
    https://areyoupop.com/images/areyoupop_angelina.png

    I was looking in the code without modifying anything and realized this image is not the high resolution one I updated.

    So, this is what I would like to accomplish;

    1. Filter or Hook the function so it uses the higher resolution image instead of a reduced one (large image).
    2. Filter the activity output and place the high resolution image at on top of the activity post.

    Any links or ideas please let me know.

    Thank you,

    Victor

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi Victor,

    Thank you for your reply.

    1. Filter or Hook the function so it uses the higher resolution image instead of a reduced one (large image).

    To use the higher resolution image instead of a reduced one, use the following BuddyPress Activity Plus plugin template file in your child theme and edit it on line number 17 as following.

    BuddyPress Activity Plus plugin template file :
    wp-content\plugins\buddypress-activity-plus\lib\forms\images_tag_template.php

    Before Editing:

    <img src="<?php echo $thumbnail;?>" />

    After Editing:

    <img src="<?php echo bpfb_get_image_url($activity_blog_id) . trim($img); ?>" />

    2. Filter the activity output and place the high resolution image at on top of the activity post.

    I have tested it on my test site adding link on activity stream using BuddyPress Activity Plus and found the image fetched from the link is displaying above the link content.

    Could you please tell me how you are adding the image and activity content?

    Also share me the activity page link from your site so that i can test it.

    Regards,
    WPMU DEV

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Move Image to Top Without Hacking The Plugin’ is closed to new replies.