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: 25357
    Brajesh Singh on in reply to: Buddyblog fork questions : custom post type #29815

    Hi Bruno,
    Thank you for checking . It is coming out in next 4-5 working days. We have been getting into shape and things are almost ready.

    I will be posting back after the update.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25357

    Hi Carsten,
    I am sorry, I have no idea about the source of your custom code.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25357
  • Keymaster
    (BuddyDev Team)
    Posts: 25357
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25357
    Brajesh Singh on in reply to: BuddyPress Moderation Tools #29792

    Hi Arnobio,
    Just updating. I do not think I will be able to do it today now. Will be releasing tomorrow.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25357

    Hi Linda,
    Thank you.

    I have received them.
    It seems to me that sizer are related to configuration.

    I will reply tomorrow with more details and solution.

    Regards
    Brajesh

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

    Hi Carsten,
    You can override templates but not the core files of a plugin.

    For BuddyPress, things inside the bp-templates are part of template and can be overridden(with the template pack acting as root).

    For your case, the dropdown is in messages-loop.php

    
    	<div class="messages-options-nav">
    			<?php bp_messages_bulk_management_dropdown(); ?>
    		</div><!-- .messages-options-nav -->
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25357
    Brajesh Singh on in reply to: Buddyblog error #29789
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25357

    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: 25357

    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