Replies
- Brajesh Singh on November 26, 2015 at 1:17 pm in reply to: [Resolved] BP-activity-shortcode: what option value would be blog-titles? #1785
Hi Ernesto,
Welcome to BuddyDev forums.You are doing it correctly. Using “blogs” object will list all blog activity. This plugin does not control the content. It simply delegates the task to BuddyPress for listing the items based on your options.
For newer blog posts( After BuddyPress 2.3 ), They do not record the whole blog post, so only a part should be listed. For older blog posts, BuddyPress does have issues with longer posts. That’s why you are seeing this.
Though I understand the need for listing title, that will be much beyond the scope of this plugin. The only solution as I see is using css to hide the content and let the title be there.
If you want to go through that way, please do let me know. I will assist with css.
Hi Duncan,
Thank you for the report and help is fixing the bug.
Closing this topic as resolved. Please do open new topic if you find any issue with MediaPress.Thank you
Brajesh- Brajesh Singh on November 25, 2015 at 10:10 pm in reply to: [Resolved] Cover Image cropping feature (like the avatar cropping feature) #1778
Thank you Andy 🙂
I am certainly opening a ticket in a day or two.I am glad everything is working for you. All the best with your project 🙂
Please do let me know if you need any help in future.
Thank you
Brajesh Hi Duncan,
I have made a small change herehttps://github.com/buddydev/mediapress/commit/5bc6a359e01221df67e149a5d09b72d15be30c2e
and have pushed it. Can you please give it a try and see if it works or not?
Thank you
BrajeshHi Duncan,
Thank you for asking.Is the file deleting showing this
/wp-content/uploads/mediapress/members/1/29220/../somepath/somepath/../../../../..If yes, then It is related to the way the absolute path is being calculated. There is something wrong with it.
Is there anything specific about your web server configuration?( Are you using nginx or apache ?)- Brajesh Singh on November 25, 2015 at 12:53 am in reply to: [Resolved] Cover Image cropping feature (like the avatar cropping feature) #1769
Hi Andy,
Thank you for sharing.
Your image responds beacutifully. I had used some other way ( two containers, inner for content+overlay and outer for the background image). I did set background-size:cover and position to center, center. That saves a lot. My implementation is working but is not the best thing(specially on small screens).I like your concept of using proper ratio and cropping. Thank you for all the explanations.
Here is the code for the modfied function
It is almost same of the core handler with 2 small changes. I did not like copying the whole function and I have dropped the idea of multiple cover image for now, It needs more work in BuddyPress core. I will be opening a ticket, If things get in the right direction, the above task could be accomplished in 4-5 lines without any duplication of code.
For now, Please use the above code. Please do let me know if that works for you or not?
- Brajesh Singh on November 24, 2015 at 12:45 pm in reply to: [Resolved] Cover Image cropping feature (like the avatar cropping feature) #1758
Hi Andy,
Thank you.
I will do that. The above code was not complete, we removed the handler but did not provide any handler, so It was bound to have issue.I will post the code a little bit late today for the custom handler.
Also, I will love to see how are you managing it specially the responsive aspect. I am using 2000x400px image for the header and It seems wastage of bandwidth to load such a large image. I will see if we can add multiple versions of the header image to avoid this wastage of bandwidth.
How are you managing this aspect? Hi ,
sorry about that. In the shortcodes.php, please replace the whole “bp_gallery_list_medias” function by thisfunction bp_gallery_list_medias( $args, $echo = true ) { $content = ""; $params = wp_parse_args( $args, array( "show_thumb" => true ) ); extract( $params ); global $medias_template; if ( bp_gallery_has_medias( $args ) ): while ( bp_gallery_medias() ):bp_gallery_the_media(); $media = $medias_template->media; $content .= "<div " . bp_get_media_css() . " id='gallery_media_" . bp_get_media_id() . "'>"; $content .= "<div class='media-content'> <h5 class='media-title'>" . bp_get_media_title() . "</h5>"; if ( $show_thumb ) { $content .= "<a href='" . bp_get_media_permalink() . "'>" . bp_get_gallery_media_full_html( $media ) . "</a>"; $content .= "<br class='clear' />"; } // $content.="<p class='media-description'>".bp_get_media_description()."</p>"; $content .= "</div>"; //media content div ends here // endwhile; $content .= "</div>"; endwhile; $content .= "<br class='clear' />"; endif; if ( ! $echo ) { return $content; } else { echo $content; } }That will solve it.
Hope that helps.- Brajesh Singh on November 24, 2015 at 12:10 pm in reply to: Profile Visibility Manager: Visual tag for Usernames #1754
Hi Hans,
Thank you for asking. It is easily doable by filtering on “bp_get_member_class” and adding a new class but your theme does not support it. - Brajesh Singh on November 24, 2015 at 12:07 pm in reply to: Could blog-categories-for-groups post to a groups activity stream? #1753
Hi Jan,
No, It won’t do that.