Forum Replies Created
-
I had to use something similar, in my case I just need to know if a user has an avatar or not:
`
function bp_has_avatar($user_id) {global $bp;
$path = BP_AVATAR_UPLOAD_PATH . ‘/avatars/’ . $user_id . ‘/’;
return count(glob(” . $path . ‘*.jpg’));
}
`In reply to: How to disable Gravatar completely?Hi @BuddyPresser !
I have found out another way get it not editing core files. Put this filter into your functions.php file:`function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {
$default = ‘http://yoursite.net/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg’;
if( $image && strpos( $image, “gravatar.com” ) ){
return ‘
‘;
}else
return $image;}
add_filter(‘bp_core_fetch_avatar’, ‘bp_remove_gravatar’, 1, 9 );function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) {
$default = ‘http://yoursite.net/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg’;
return ““;
}add_filter(‘get_avatar’, ‘remove_gravatar’, 1, 5);
`It worked for me
In reply to: LOVINGFUTBOL.COMThanks a lot!!
@DJPaul I love your achivements plugin!In reply to: h-mag.comHi @simoncreative, just one recommendation.
Have you thought about installing a cache plugin, you don’t have one yet, do you?.
I’ve tried W3 TOTAL CACHE https://wordpress.org/extend/plugins/w3-total-cache/ and WP SUPER CACHE https://wordpress.org/extend/plugins/wp-super-cache/. Here you have some WordPress Cache Plugin Benchmarks http://cd34.com/blog/scalability/wordpress-cache-plugin-benchmarks/ to select for yourself. W3 TOTAL CACHE has a complete JS/CSS minify system and helps you to work with CDNs, but maybe its more difficult to use.
But that’s not all, you always can find out what you have to improve with Yslow, PageSpeed, Firebug firefox addons.
One of this “Improvements” will be “Add expire headers”, my friend AD7six has made up a simple .htaccess that will resolve this problem http://gist.github.com/440336 (here is the conversation on Vladimir Prelova blog http://www.prelovac.com/vladimir/improve-website-yslow-performance-grade-in-a-blink-of-an-eye ).I think this might be helpful for all.
By, and great work!!In reply to: Farmville Fun Club: Discussion + iPad SweepstakesHi @Jeff, good site!
Just one question, what plugin have you used to upload media (photo + video + audio) ??In reply to: deellas.comHola y gracias @nickmy !!,
I’ve been working hard on deellas.com, but It’s a work in progress.1. No plugins are used in this section. What do you mean ? What for ? Just ordinary posts with youtube URL custom fields.
2. It’s a bbpress external installation (out of BuddyPress, firstly we tried to integrate both, but It was a mess, eventually we decided to install them separately)In reply to: Avatar errorHi, I´m having the same problem, here on buddypress.org and on my website. I´m working on WP3.0 + BP 1.2.3
In reply to: h-mag.comI love h-mag website, congrats Simon!!! your web is the best example to show what can be done with buddypress