One more question or maybe i should open new thread?
Is it possible to delete uploaded images when i delete post in bp activity?
I tested photos they staying there after i deleted post with uploaded image in front end.
Thanks
I solved … in file buddypress-activity-plus/lib/form/images_tag_template.php find line 16
<a href="<?php echo bpfb_get_image_url($activity_blog_id) . trim($img); ?>" class="<?php echo $use_thickbox; ?>" rel="<?php echo $rel;?>" <?php echo $target; ?> >
and delete class="<?php echo $use_thickbox; ?>"
and images will use (in my case) fancybox for wordpress plugin othervise will be displayed twice.
So if anybody use any other simmilar plugin for images i think this can be solution. this class thickbox is added in case if we dont have any other plugin for images.
Hi @alex80ks,
Hope you’re doing great today! 🙂
Thanks for posting your solution and yeah, it does sort of need a plugin code adjustment for use with another lightbox. Glad you got that sorted though.
You’re right too, the images wouldn’t be removed after deleting the activity. I’ll check with the team to see if that can be adjusted in a future version.
If you have further questions on anything, please feel free to ask.
Thanks,
David
@david i have question that is maybe related to your plugin.
i wrote a post and keep it in draft, then when i publish it everything is ok but when i look in activity i get this
http://speedy.sh/aADWG/Capture-5.jpg
as you see there are link on photo and link on text. It sounds weird to me then i check database and get activity strings written bad.
<a href="http://www.mysite.com/?p=2429"><img src="http://www.mysite.com/wp-content/uploads/2014/02/Ice-Cave-Mendenhall-150x150.jpg" width="100" height="100" alt="Thumbnail" class="align-left thumbnail" /></a><a href="http://www.mysite.com/wp-content/uploads/2014/02/Ice-Cave-Mendenhall.jpg">
Mendenhall ледене пећине
<strong>Mendenhall Глечер</strong> је око 12 миља (19 км) дугачак и <strong>налази се у долини Mendenhall</strong>, око 12 миља (19 км) од центра Juneau у југоисточном делу америчке <strong>савезне државе Аљаске</strong>. Првобитно […]</a>
Not by me becouse in wordpress blog page everything is ok.
as we can see there is post linked on activity photo and that is ok but text is linked to photo as it not should be.
I m using latest wordpress with buddypress and bp-default child theme. Is it possible that plugin has influence on that?
My lnowledge isnt big so i ask for advice or maybe you had simmilar problem?
Sorry for posting here. I posted same on buddypress support page also but no answers to this. I assume that you are making plugin for that part of buddypress Activity and hope that you have some tip for that.
If you need some additional info i will gladly send you.
Thanks,
Aleksandar