Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 32 total)

  • m1000
    Participant

    @m1000

    It looks like it happens to all cache plugins, usually after 18 hours of cached page existence. It’s weird because within these 18 hours nothing is changing in the cached page.


    m1000
    Participant

    @m1000

    I just see such type message and nothing is loading

    Loading the members of your community. Please wait.

    Loading the community updates. Please wait.

    Loading the groups of the community. Please wait.


    m1000
    Participant

    @m1000

    Fixed. There was one extra bracket.


    m1000
    Participant

    @m1000

    I have the same question. Any documentation would be nice.


    m1000
    Participant

    @m1000

    Yes, I know. I have enabled buddypress legacy and when I go to group manage -> forum and I try to enable forum it stays inactive – https://imgur.com/Bc5DTL4 I also selected child forum for the group.
    I have enabled group forums – https://imgur.com/jakMcKg


    m1000
    Participant

    @m1000

    Looks like there was removed groups forum activation from create.php

    				<?php if ( bp_is_active( 'forums' ) ) : ?>
    
    					<h4><?php _e( 'Group Forums', 'buddypress' ); ?></h4>
    
    					<?php if ( bp_forums_is_installed_correctly() ) : ?>
    
    						<p><?php _e( 'Should this group have a forum?', 'buddypress' ); ?></p>
    
    						<div class="checkbox">
    							<label for="group-show-forum"><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php checked( bp_get_new_group_enable_forum(), true, true ); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    						</div>
    					<?php elseif ( is_super_admin() ) : ?>
    
    						<p><?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_core_do_network_admin() ? network_admin_url( 'settings.php?page=bb-forums-setup' ) :  admin_url( 'admin.php?page=bb-forums-setup' ) ); ?></p>
    
    					<?php endif; ?>
    
    				<?php endif; ?>

    m1000
    Participant

    @m1000

    But I have bbpress 2.5.14 on the website, tested it under default WP themes.


    m1000
    Participant

    @m1000

    Bump


    m1000
    Participant

    @m1000

    Thanks again


    m1000
    Participant

    @m1000

    I just what to use it inside img tag.

    BTW, why this code doesn’t work for groups?

    function bp_cover_group_img_path() {
    	// Is the current page a user page?
    	if ( bp_is_group() ) {
    
    	$group_id = bp_get_group_id();
    
    	$attachment = bp_attachments_get_attachment( 'url', array( 'item_id' => $group_id ) );
    
    	$image_path = $attachment;
    	// output only if an attachment exist
    	if( !empty( $attachment ) ):
    		echo $image_path;
    	endif;
    
    	}
    }
    add_action( 'bp_group_cover_path', 'bp_cover_group_img_path' );

    m1000
    Participant

    @m1000

    Thanks!


    m1000
    Participant

    @m1000

    Thanks, but how to fix it not touching buddypress files, I tried use remove_filter in functions.php of theme but it doesn’t work – http://pastebin.com/mgRe4e2Q


    m1000
    Participant

    @m1000

    After upgrade the custom loop with notifications doesn’t work anymore:

    if ( is_user_logged_in() ) {
       if ( function_exists( 'bp_is_active' ) ) {
    	if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id(), $format = 'string' ) ) { ?>
    	<div class="notif-container">
    	<?php
    	}
    
    	if ( $notifications ) {
    		$counter = 0;
    		for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) {
    			$alt = ( 0 == $counter % 2 ) ? ' alt' : ''; ?>
    			<div class="my-notification<?php echo $alt ?>"><?php echo $notifications[$i] ?></div>
    
    			<?php
    			 $counter++;
    			} ?>
    	</div><!-- notif-container -->
    	<?php
    	} else {}
       }
    }

    It returns ‘Array’


    m1000
    Participant

    @m1000

    I just resolved it.


    m1000
    Participant

    @m1000

    I see the same errors on my all websites.


    m1000
    Participant

    @m1000

    All other notifications are displaying fine.


    m1000
    Participant

    @m1000

    I’m using Buddypress and bbpress for group forums. You have 1 new reply to … is working fine on the admin bar but somehow my code can’t display this kind of notification.


    m1000
    Participant

    @m1000

    The same thing happens when wp-content/themes/bp-default/ theme is active.


    m1000
    Participant

    @m1000

    Ooops, that was my mistage, database user didn’t have the right to delete tables.


    m1000
    Participant

    @m1000

    Is it possible to disable it – display everything after return.


    m1000
    Participant

    @m1000

    bp_loggedin_user_avatar( ‘type=thumb&width=100&height=100’ )


    m1000
    Participant

    @m1000

    you can try hooking into an earlier point

    Unfortunately it doesn’t work.

    if you are writing a function to be called on a page ensure your checks are carried out in the function not outside it.

    I want to remove bp_core_set_avatar_constants action and use my own but following code doesn’t work outside the functions.php of theme:

    remove_action( ‘bp_init’, ‘bp_core_set_avatar_constants’, 3 );

    I think it’s a big limitation of BP if I can’t use conditional tags in the functions.php


    m1000
    Participant

    @m1000

    Weird, I posted yesterday but forum says this topic is 4 days old.


    m1000
    Participant

    @m1000

    That’s right, it’s not working when used in the functions.php

    `if ( bp_is_my_profile() == 1 )
    {

    EXECUTE CODE

    } else {

    DO NOT EXECUTE CODE

    }`

    It always EXECUTE CODE, please check full code – http://pastebin.com/Ku2LgwTz


    m1000
    Participant

    @m1000

    OK, I see it here:
    #: bp-groups/bp-groups-loader.php:436
    msgid “Members %s”
    msgstr “”

    But it’s not that I cannot modify it via theme’s functions.php

Viewing 25 replies - 1 through 25 (of 32 total)
Skip to toolbar