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
    (BuddyDev Team)
    Posts: 25513

    Hi,
    My apologies for the delayed reply. I had to install OcenWp to see if the include custom js for BuddyPress or not.

    Please copy the plugins/buddypress/bp-templates/bp-legacy/buddypress/js/buddypress.js to your theme/buddyoress/js/buddypress.js and look for the code which looks like this

    
    
    		/* Load more updates at the end of the page */
    		if ( target.parent().hasClass('load-more') ) {
    			if ( bp_ajax_request ) {
    				bp_ajax_request.abort();
    			}
    
    			jq('#buddypress li.load-more').addClass('loading');
    
    			oldest_page = activity_oldestpage + 1;
    			just_posted = [];
    
    			jq('.activity-list li.just-posted').each( function(){
    				just_posted.push( jq(this).attr('id').replace( 'activity-','' ) );
    			});
    
    			load_more_args = {
    				action: 'activity_get_older_updates',
    				'cookie': bp_get_cookies(),
    				'page': oldest_page,
    				'exclude_just_posted': just_posted.join(',')
    			};
    
    			load_more_search = bp_get_querystring('s');
    
    			if ( load_more_search ) {
    				load_more_args.search_terms = load_more_search;
    			}
    
    			bp_ajax_request = jq.post( ajaxurl, load_more_args,
    			function(response)
    			{
    				jq('#buddypress li.load-more').removeClass('loading');
    				activity_oldestpage = oldest_page;
    				jq('#buddypress ul.activity-list').append(response.contents);
    
    				target.parent().hide();
    			}, 'json' );
    
    			return false;
    		}
    
    

    It is around line 431, we need to add 1 line

    
    MathJax.typeset();
    

    as shown below.

    
    		/* Load more updates at the end of the page */
    		if ( target.parent().hasClass('load-more') ) {
    			if ( bp_ajax_request ) {
    				bp_ajax_request.abort();
    			}
    
    			jq('#buddypress li.load-more').addClass('loading');
    
    			oldest_page = activity_oldestpage + 1;
    			just_posted = [];
    
    			jq('.activity-list li.just-posted').each( function(){
    				just_posted.push( jq(this).attr('id').replace( 'activity-','' ) );
    			});
    
    			load_more_args = {
    				action: 'activity_get_older_updates',
    				'cookie': bp_get_cookies(),
    				'page': oldest_page,
    				'exclude_just_posted': just_posted.join(',')
    			};
    
    			load_more_search = bp_get_querystring('s');
    
    			if ( load_more_search ) {
    				load_more_args.search_terms = load_more_search;
    			}
    
    			bp_ajax_request = jq.post( ajaxurl, load_more_args,
    			function(response)
    			{
    				jq('#buddypress li.load-more').removeClass('loading');
    				activity_oldestpage = oldest_page;
    				jq('#buddypress ul.activity-list').append(response.contents);
    
    				target.parent().hide();
                                   // New line added. 
                                   MathJax.typeset();
    			}, 'json' );
    
    			return false;
    		}
    
    

    You will need to rename the file to buddypress.min.js (or you can minify and name the new file as this) and BuddyPress will load it.

    All we are doing is folllowing the re-initialization for MatchJAX as specified here
    https://docs.mathjax.org/en/latest/web/typeset.html#resetting-automatic-equation-numbering

    That should take care of it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Issam,
    Thank you.
    I can ask my team to develop a sync plugin for syncing user to multi network table.

    Since that will be beneficial for future, we can do that. It will need 2 extra days though.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Rob,
    Thank you for bringing it. Yes, I see the issue with thi. I will add it in the next version of the plugin.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: [Resolved] Insert callback location #29783

    Hi Carsten,
    No issues.
    In that case, My suggestion will be to do the template override.

    you can copy the template from plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages to yourtheme/buddypress/members/single/messages and modify them as you please.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: [Resolved] Insert callback location #29779

    Hi Carsten,
    It will be nice if you can tell me what are you trying to achieve? removing the bulk action box?

    I can help better in that case.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    Brajesh Singh on in reply to: Community Builder Pro vs OceanWP #29777

    Hi,
    Thank you for the question.

    Community Builder is specially tailored for Social community with specific features & customizations. For OceanWP, BuddyPress support is an after thought.

    My suggestion will be to give a shot to the themes yourself and select for yourself. Also, if you are using Community Builder Pro, we have a lot more customizations.

    In my personal belief, Community Builder Pro is more flexible. I am looking forward to put it on wp.org

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Clea,
    Thank you for confirming.

    I am glad you found the reason.
    Thank you for sharing. It will help us troubleshot for other members in future.

    I will post back after adding the login redirection too.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25513
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25513

    Hi Issam,
    Thank you.

    For existing users, we don’t have a solution. It is possible to do so via a task. But, It will need someone to write a script for background processing.

    Regards
    Brajesh