BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Disable Cover Photo Stock Image generation
Tagged: @media, cover image
- This topic has 9 replies, 3 contibutors, and was last updated 8 years, 6 months ago by Varun Dubey.
Question
October 16, 2015 at 4:42 am #48834@gimmediaAfter a profile is activated an image is generated in the media folder, called Cover Photo Stock Image. I have disabled the function (not using cover images). How can I stop getting images in the media folder I don’t want?
Answers
October 16, 2015 at 2:03 pm #48870@vapvarunHi @gimmedia
I have notified developers about it, buddyboss-inc/cover-photo.php need to be modified
Regards
Varun DubeyOctober 16, 2015 at 2:08 pm #48872@gimmediaAlright, is it a bug (and if so, when will this be fixed?) or can I comment out the code somewhere around row 293?
October 17, 2015 at 3:19 am #48892@vapvarunHey @gimmedia
for mean while
you can modify function buddyboss_cover_photo_get_stock_sample() inside buddyboss-inc/cover-photo.php$attach_id = wp_insert_attachment( $attachment, $filename, 0 );
with
//$attach_id = wp_insert_attachment( $attachment, $filename, 0 ); $attach_id = 0;
it will pause to insert new media into media library
Regards
Varun DubeyOctober 17, 2015 at 5:30 am #48910@gimmediathanks!
October 17, 2015 at 6:35 am #48921@giacomoHi, but this modify, stops generation of cover photo if this feature is enabled?
And how i can set a custom stock of cover photos, to use it automatically? I’d like personalize the cover photos in my site 🙂
It’s possible?
And there is a similar option for the avatar? So the user that not sets a profile photo, have one random photo of a pool pre-selected from me 🙂
ThanksOctober 18, 2015 at 4:36 am #49013@gimmediaI adjusted this code in the main boss theme, but it is not working. New profiles being activated still gets the stock image generated. Do I need to adjust it in my child theme or media plugin?
October 19, 2015 at 12:15 pm #49108@vapvarunHi @gimmedia Above fix will work fine, i have tested them on my instance, Please PM your login details, i will make those temp edits.
RegardsOctober 20, 2015 at 3:09 pm #49202@gimmediait works now, I forgot to comment-out the original code 😉
October 21, 2015 at 8:19 am #49261@vapvarunGreat 🙂
- The question ‘Disable Cover Photo Stock Image generation’ is closed to new replies.