-
Henry replied to the topic Remove Buddypress Admin Bar in the forum How-to & Troubleshooting 10 years, 10 months ago
add_filter(‘show_admin_bar’, ‘__return_false’);
In that code your
'
‘s look wonky.Try
add_filter( 'show_admin_bar', '__return_false', 99 );
I’ve also put a high priority on it to make sure it gets done ( a priority of 99 ).
-
Henry replied to the topic avatar width doesn't apply in the forum How-to & Troubleshooting 10 years, 10 months ago
Not saying this is the problem because I have very limited PHP knowledge but maybe that’s where echo bp_core_fetch_avatar( array(… is getting it’s Avatar from.
I can’t seem to duplicate the problem. It actually works for me.
Can you try using Twenty Thirteen? If that works then that shows something has been introduced (perhaps in your theme…[Read more]
-
Henry replied to the topic avatar width doesn't apply in the forum How-to & Troubleshooting 10 years, 10 months ago
all I can think of is are you defining a custom avatar size in bp-custom?
-
Henry replied to the topic avatar width doesn't apply in the forum How-to & Troubleshooting 10 years, 10 months ago
@macpresss could there be some CSS in your theme that is resizing the avatar image?
-
Henry replied to the topic avatar width doesn't apply in the forum How-to & Troubleshooting 10 years, 10 months ago
Also, make sure to change
'height' => 15
to'height' => 32
as well. -
Henry replied to the topic avatar width doesn't apply in the forum How-to & Troubleshooting 10 years, 10 months ago
Try changing type to full. That said, I wouldn’t advise modifying core files.
-
Henry replied to the topic Seeking a BuddyPress Developer in the forum Installing BuddyPress 10 years, 10 months ago
Try posting your requirements in the BuddyPress Jobs Forum
-
Henry replied to the topic Optimize by removing blank lines and comments? in the forum How-to & Troubleshooting 10 years, 10 months ago
@synaptic not a stupid question – always a good idea to improve performance. That said, removing comments isn’t where you should start.
1. Try minifying your scripts that haven’t already been minified.
2. Run your site through a tool such as tools.pingdom.com to identify all of the unnecessary resources your page is using – and remove them where…[Read more] -
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
@mfmsw2youth Thanks for letting me know.
I hadn’t tested the code. Please try this and let me know how you get on:
function custom_activity_text_change_avatar( $entry, $user_id ) {
$gender = bp_get_profile_field_data( 'field=Gender&user_id=' . $user_id );
$userlink = bp_core_get_userlink( $user_id );if ( $gender == 'Male' ) {…[Read more]
-
Henry replied to the topic buddy press suitability in the forum Ideas 10 years, 10 months ago
@bonaish try using Theme Check to test your chosen theme against the latest WP good practice:
https://wordpress.org/plugins/theme-check/
Then if you see lots of red flags then you can report them to the theme author. They’ll probably appreciate it as they can iron out any bugs they don’t already know about.
-
Henry replied to the topic I need to get just the content string and just the activity update string in the forum Installing BuddyPress 10 years, 10 months ago
@matt-mcfarland glad to see you got this resolved!
-
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
You will need the php tags only if your functions.php file doesn’t already have them.
-
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
Oops return $entry should end with a semi colon eg
return $entry;
-
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
Try adding this to your theme’s functions.php file:
function custom_activity_text_change_avatar( $entry, $user_id ) {
$gender = bp_get_profile_field_data( 'field=Gender&user_id=' . $user_id );if ( $gender == 'Male' ) {
$entry = sprintf( __( '%s changed his profile picture', 'buddypress' ), $userlink );
} else if ( $gender ==…[Read more] -
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
Hi @mfmsw2youth
Can you paste the exact text here that you’d like to change. Eg the text that is coming up in your activity stream.
-
Henry replied to the topic BuddyPress Like updated on wp.org in the forum Third Party Plugins 10 years, 10 months ago
Hi @darrenmeehan looks good and works very well. I like that you can change the wording easily via the back end so if you’re not happy with ‘like’ then you could use ‘star’ or ‘favourite’.
Thanks!
-
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
@sundev you would need to capture each member’s gender using a profile field. A radio button would do it.
Then once you have that information you could do a simple check when filtering the text.
e.g
[Read more]
if ( is male ) {
// this must be a male so filter the text to say 'his'
} else {
// this must be a woman so filter the text to say… -
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
Hi @mfmsw2youth,
What is the exact text you’d like to change?
-
Henry replied to the topic change 'their' to 'his' or 'her' in activity stream in the forum Installing BuddyPress 10 years, 10 months ago
Hi @sundev
No, it wouldn’t change. You would need to filter the text accordingly depending on the gender they specify in their gender profile field.
-
Henry replied to the topic Login Bar on Homepage in the forum How-to & Troubleshooting 10 years, 10 months ago
@626design the best way to pinpoint the problem is remove all customisations you’ve made. Start with a theme such as Twenty Thirteen with no plugins activated. Then activate your plugins one by one. Then introduce your custom functions one by one. Test each time you make a change. It is a long winded process but when customising your site that is…[Read more]
- Load More
@henrywright-1
Active 9 years, 9 months ago