New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Restrict Site Access #4161

    Hi Javier,

    Brajesh Sir is away so I am posting here. I have tried your code in bp-custom.php as well as current theme functions.php file and it is working for me. I have checked for SiteWide Activity case also. Try with some high priority

    replace the line

    
    
    add_action( ‘template_redirect’, ‘restrict_site’ );
    
    

    with

    
    
    add_action( ‘template_redirect’, ‘restrict_site’, 0 );
    
    

    and let me know if it works or not.

    Thank You
    Ravi

    • This reply was modified 10 years, 4 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: (MediaPress) Media List #4159

    Hi Christian,

    The purpose of this widget is to display the content based on the settings. It doesn’t care what type of media it is . If You select private media to be displayed. It just list the private media in the section whether the user logged in or not. But we have kept this suggestion in our todos and maybe will be fix this in our new version of MediaPress.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: (MediaPress) Media List #4136

    Hi Christian,

    Please send me ScreenShot of your Media list widget setting in backend.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Chris,

    Welcome to the BuddyDev. Please paste the following code in your bp-custom.php and use shortcode [activity-custom-loop] in your page or post.

    
    
    function buddydev_activity_custom_loop() {
    
    	if( ! function_exists( 'buddypress' ) || ! bp_is_active( 'activity' ) ) {
    		return '';
    	}
    
    ?>
    
    	<?php if ( bp_has_activities( array( 'per_page' => false ) )  ) : ?>
    
    		<ul id="activity-stream" class="activity-list item-list">
    
    			<?php while ( bp_activities() ) : bp_the_activity(); ?>
    
    				<li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>">
    
    					<div class="activity-content">
    
    						<div class="activity-header">
    
    							<?php bp_activity_action(); ?>
    
    						</div>
    
    					</div>
    
    				</li>
    
    			<?php endwhile; ?>
    
    		</ul>
    	<?php else : ?>
    
    		<div id="message" class="info">
    			<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    		</div>
    
    	<?php endif; ?>
    
    	<?php
    }
    add_shortcode('activity-custom-loop','buddydev_activity_custom_loop');
    
    

    Let me know if it works for you or not.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: (MediaPress) Media List #4118

    Hi Christian,

    Are you referring media list widget of MediaPress?

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Javier,

    Thank you for appreciation. I am glad that I could help.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Javier,

    I have uploaded the code on github for Group’s admin to add users. Please clone it or download archive file from the following URL.

    https://github.com/buddydev/group-admin-add-users

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide Upper Right Menu at top bar #4098

    Hi Dandy,

    Thank You for the acknowledgement. Sure, We will look forward on your plugin suggestion and will let you know.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Display user Media #4097

    Hi Tomasz,

    I am glad that problem is resolved. But if I were you the code will be something like this

    
    $the_media_query = new MPP_Media_Query( array('user_id' => bp_displayed_user_id() ) );
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Mediapress video height #4092

    Hi Chirstian,

    I have set the video resolution as per YouTube. Please check and let me know if it is working on not.

    Thank You
    Ravi