Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: [Resolved] Album Delete Errors #1781

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: [Resolved] Album Delete Errors #1777

    Hi Duncan,
    I have made a small change here

    https://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
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: [Resolved] Album Delete Errors #1775

    Hi 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 ?)

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    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

    http://pastebin.com/DNYqJpjZ

    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?

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    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?

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on in reply to: BP Gallery shortcakes ? #1757

    Hi ,
    sorry about that. In the shortcodes.php, please replace the whole “bp_gallery_list_medias” function by this

    
    
    function 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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25299
    Brajesh Singh on 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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25299

    Hi Jan,
    No, It won’t do that.