Reply To: Transition Effects on Activity/Member/Home
Sorry Modemlooper if I wasn’t clear on what I mean by “home page.” I’m new at this game. What I mean is the page with the URI that starts with root/members/username/… . This is the page that shows the user’s activity, profile, messages, friends, groups, forums, and settings. This is the page that appears to lack the transition effects of the other pages (root/activity) and (root/members).
Thank you Henry for your confirmation of my observations. Common sense tells me to wait for BP 2.0. But curiosity drives me to try to figure this out. I found the following script in buddypress.js (my own application uses the legacy theme):
/**** Tabs and Filters ****************************************************/
/* When a navigation tab is clicked - e.g. | All Groups | My Groups | */
jq('div.item-list-tabs').on( 'click', function(event) {
if ( jq(this).hasClass('no-ajax') )
return;
var targetElem = ( event.target.nodeName == 'SPAN' ) ? event.target.parentNode : event.target;
var target = jq( targetElem ).parent();
if ( 'LI' == target[0].nodeName && !target.hasClass( 'last' ) ) {
var css_id = target.attr('id').split( '-' );
var object = css_id[0];
if ( 'activity' == object )
return false;
var scope = css_id[1];
var filter = jq("#" + object + "-order-select select").val();
var search_terms = jq("#" + object + "_search").val();
bp_filter_request( object, filter, scope, 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras') );
return false;
}
});
The conditional statement that checks whether the division has the “no-ajax” class is apparently meant to catch the nav for what I am calling the home page, which has this class attached to it. Merely commenting out those lines results in a non-functional nav (clicking does nothing), so the decision to treat that page differently in the code is surely not arbitrary. There must be some reason for it. What would it be? That there is no ajax on this page?