Forum Replies Created
-
In reply to: [Resolved] Change the default avatar
Yes, it worked. Everyone has an actual avatar now instead of a box with the text that says, “picture of username”
Thanks for the help.
In reply to: [Resolved] Change the default avatarDude, that is weird. I figured it out. When BuddyPress forums emailed me your response, it added extra characters in the Email. Then, when I cut and paste it back into BuddyPress forums, the extra characters were removed. I changed the code to remove the extra characters the Email added and the error went away.
In reply to: [Resolved] Change the default avatarOK, for some reason that did not cut and paste correctly. The add_filter line looks like this.
add_filter( 'bp_core_fetch_avatar_no_grav','__return_true' );
In reply to: [Resolved] Change the default avatarThe following code…
<?php
// Use this file to customize Buddy Press
// This section changes the default avatar to the picture of a box
// the picture is uploaded into WordPress
add_filter( 'bp_core_fetch_avatar_no_grav','__return_true' );
define ( ‘BP_AVATAR_DEFAULT’, ‘http://www.truesouthernmen.com/wp-content/uploads/2015/10/0307152159-02-300×225.jpg’ );
define ( ‘BP_AVATAR_DEFAULT_THUMB’, ‘http://www.truesouthernmen.com/wp-content/uploads/2015/10/0307152159-02-300×225.jpg’ );?>
Returns this error when loading the page…..
Fatal error: Can’t use function return value in write context in /home/cody7670/public_html/wp-content/plugins/bp-custom.php on line 8
In reply to: [Resolved] Change the default avatarThat shut my site down completely with a syntax error – it could not process the line.