Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

  • ct25
    Participant

    @ct25

    @shanebp I added that code where it was suggested. The entire directory of members disappeared. It did cue an action when the ‘order by’ was changed but there are no members for it to filter now.

    The code looks like this

    
    	$version = bp_get_version();
    	foreach ( $scripts as $id => $script ) {
    		wp_register_script( $id, $script['file'], $script['dependencies'], $version, $script['footer'] );
    		wp_enqueue_script( $id );
    	}
    }

    ct25
    Participant

    @ct25

    Can someone please walk me through this.


    ct25
    Participant

    @ct25

    Update:

    I deactivated Akismet and the ‘order by’ function began to order by last activity which is more than it was doing before. I still does nothing when I change to alphabetical and newly added.

    I copied the _inc/ folder to the theme and it did not resolve anything. Any other suggestions?


    ct25
    Participant

    @ct25

    Anybody?


    ct25
    Participant

    @ct25

    @shanebp I deactivated all 40+ plugins and it did not change anything. I also tried a different theme and it did not work.

    Could it be that the plugin is not reaching the ajax directory? Is there a particular code that should be found in some of the template files to link to the _inc/ folder that is not there?


    ct25
    Participant

    @ct25

    At this point the order by function does not trigger a new sort when changed. It does nothing when you change the ‘order by’ from alphabetical to last active and newly registered. It used to load and return nothing before updating to BuddyPress plugin to the latest version. I really need some help getting this fixed.


    ct25
    Participant

    @ct25

    Today I found there was a member-loop.php added to my theme files. Could this be part of the problem? Should I add the member template file to the theme as well?

    <?php
    
    /**
     * BuddyPress - Members Loop
     *
     * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
    
    	<div id="pag-top" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-top">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-top">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    	<?php do_action( 'bp_before_directory_members_list' ); ?>
    
    	<ul id="members-list" class="item-list" role="main">
    
    	<?php while ( bp_members() ) : bp_the_member(); ?>
    
    		<li>
    			<div class="item-avatar">
    				<a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    			</div>
    
    			<div class="item">
    				<div class="item-title">
    					<a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    
    					<?php if ( bp_get_member_latest_update() ) : ?>
    
    						<span class="update"> <?php bp_member_latest_update(); ?></span>
    
    					<?php endif; ?>
    
    				</div>
    
    				<div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    
    				<?php do_action( 'bp_directory_members_item' ); ?>
    
    				<?php
    				 /***
    				  * If you want to show specific profile fields here you can,
    				  * but it'll add an extra query for each member in the loop
    				  * (only one regardless of the number of fields you show):
    				  *
    				  * bp_member_profile_data( 'field=the field name' );
    				  */
    				?>
    			</div>
    
    			<div class="action">
    
    				<?php do_action( 'bp_directory_members_actions' ); ?>
    
    			</div>
    
    			<div class="clear"></div>
    		</li>
    
    	<?php endwhile; ?>
    
    	</ul>
    
    	<?php do_action( 'bp_after_directory_members_list' ); ?>
    
    	<?php bp_member_hidden_fields(); ?>
    
    	<div id="pag-bottom" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-bottom">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-bottom">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    
    <?php else: ?>
    
    	<div id="message" class="info">
    		<p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_members_loop' ); ?>
    

    ct25
    Participant

    @ct25

    I’ll try to explain it differently:

    I had a problem on my WordPress members page, it was not automatically refreshing when you change the sort terms (alphabetical, last activity). Also, when you manually refreshed the page it did not change the order. I added select and when statements to the member-template.php and it sorted correctly but it did not automatically refresh. When you change the sort it would bring up no member but the manual refresh brought the members back according to the sort mode selected. This issue also happened with the other themes.

    I believed it was the Ajax issue that many users were having (there are many forums about this same issue) and none of the fixes worked. So then, one user suggested to deactivate the plug-in, delete it, and reinstall. That also did not work.

    I did notice the Ajax bypass code is located in a core file however, none of the files are active at this point (the all say inactive in the editor).

    After the plug-in was reinstalled it caused the function not to work at all.


    ct25
    Participant

    @ct25

    All of the configuration is done. When the member filter used to work it had a loading symbol on the word, now it does nothing.


    ct25
    Participant

    @ct25

    All of the BuddyPress plugin files including the buddypress/bp-core/bp-core-component.php buddypress/bp-core/bp-core-template.php buddypress/bp-members/bp-members-template.php .

    Also, the member functions to filter by alphabetical, last active, and newly registered. The BuddyPress plugin is active but the files are no longer active so it is not working.

    I reinstalled it, same problem.

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