Forum Replies Created

You are a BuddyPress God!
Thanks so much for your solution – this has been bugging me for a long time now.
For anyone else who wants to know, the function is bp_activity_at_name_filter, and the location is wpcontent/plugins/buddypress/bpactivity/bpactivityfilters.php
Hello Paul Gibbs,
Unfortunately, I haven’t been able to make it stop working reliably, so I want to put logging to track the behaviour.
Can you please point me to where I would need to go to put logging?
@Bikramglobal, can you do the following:
1. Set these options as follows in your wp_config.php file:
ini_set(‘display_errors’,1);
ini_set(“error_reporting”, E_ALL);
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_DISPLAY’, true);2. Switch to the buddypress default theme
3. Paste any warnings/errors that are displayed on your page when you attempt to send a message, friend someone, etc.
I’ve moved the ‘easing’ plugin code to the document.ready statement block, and that seems to have solved the problem for now. I’m pretty sure that there must be a better fix for this – the jQuery.easing object is properly set up when the page is loaded, but the moment I click on the new topic button or pagination links, it looks like the work to set it up is undone.
Anyhow, this works for me for now, so unless someone else comes up with something better, I’ll stick with it.
Looking at this further, it looks like the problem is not with the global.js file after all.
It seems that the jQuery.easing object needs to be set up so that it has various ‘easing’ functions (like easeInQuad, easeOutQuad) as member functions. Unfortunately, at the time I click the ‘New Topic’ button, these functions are not assigned to the jQuery easing object and it looks like this causes the click to fail.
I wish I knew why the jQuery object was not properly set up; I may have to ask elsewhere to find out, but I’ll post back with what I find out (so others can benefit).
Hi Paul,
Here is the code that I got after minifying from the gsgd.co.uk site:
jQuery.easing=jQuery.easing;jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){returnjQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){returnc*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){returnc*(t/=d)*(t2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)returnc/2*t*t+b;returnc/2*((t)*(t2)1)+b;},easeInCubic:function(x,t,b,c,d){returnc*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){returnc*((t=t/d1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)returnc/2*t*t*t+b;returnc/2*((t=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){returnc*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){returnc*((t=t/d1)*t*t*t1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)returnc/2*t*t*t*t+b;returnc/2*((t=2)*t*t*t2)+b;},easeInQuint:function(x,t,b,c,d){returnc*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){returnc*((t=t/d1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)returnc/2*t*t*t*t*t+b;returnc/2*((t=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){returnc*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){returnc*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){returnc/2*(Math.cos(Math.PI*t/d)1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(Math.pow(2,10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)returnb;if(t==d)returnb+c;if((t/=d/2)<1)returnc/2*Math.pow(2,10*(t1))+b;returnc/2*(Math.pow(2,10*t)+2)+b;},easeInCirc:function(x,t,b,c,d){returnc*(Math.sqrt(1(t/=d)*t)1)+b;},easeOutCirc:function(x,t,b,c,d){returnc*Math.sqrt(1(t=t/d1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)returnc/2*(Math.sqrt(1t*t)1)+b;returnc/2*(Math.sqrt(1(t=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){vars=1.70158;varp=0;vara=c;if(t==0)returnb;if((t/=d)==1)returnb+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;vars=p/4;}elsevars=p/(2*Math.PI)*Math.asin(c/a);return(a*Math.pow(2,10*(t=1))*Math.sin((t*ds)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){vars=1.70158;varp=0;vara=c;if(t==0)returnb;if((t/=d)==1)returnb+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;vars=p/4;}elsevars=p/(2*Math.PI)*Math.asin(c/a);returna*Math.pow(2,10*t)*Math.sin((t*ds)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){vars=1.70158;varp=0;vara=c;if(t==0)returnb;if((t/=d/2)==2)returnb+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;vars=p/4;}elsevars=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return.5*(a*Math.pow(2,10*(t=1))*Math.sin((t*ds)*(2*Math.PI)/p))+b;returna*Math.pow(2,10*(t=1))*Math.sin((t*ds)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;returnc*(t/=d)*t*((s+1)*ts)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;returnc*((t=t/d1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)returnc/2*(t*t*(((s*=(1.525))+1)*ts))+b;returnc/2*((t=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){returncjQuery.easing.easeOutBounce(x,dt,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){returnc*(7.5625*t*t)+b;}elseif(t<(2/2.75)){returnc*(7.5625*(t=(1.5/2.75))*t+.75)+b;}elseif(t<(2.5/2.75)){returnc*(7.5625*(t=(2.25/2.75))*t+.9375)+b;}else{returnc*(7.5625*(t=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)returnjQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;returnjQuery.easing.easeOutBounce(x,t*2d,0,c,d)*.5+c*.5+b;}});
Before I replaced the code in global.js with this minified code above, I was getting a script error on this specific line:
return jQuery.easing[jQuery.easing.def](e,f,a,h,g)
The script error is:
Object doesn't support property or method 'undefined' global.js, line 1263 character 115
I also had an issue with my pagination links, and I fixed it as described in my post here:
Any word on this?
Any ideas?