-
Henry Wright replied to the topic Sorry, you are not allowed to access this page. in the forum How-to & Troubleshooting 7 years, 7 months ago
Are you logged in as a network admin or just a plain admin?
-
Henry Wright replied to the topic User comments moderation in the forum Installing BuddyPress 7 years, 7 months ago
I think you will need to build this because I haven’t seen a plugin that can do it and this kind of functionality isn’t in core.
-
Henry Wright replied to the topic Solved – Customize the login page of wordpress in the forum Installing BuddyPress 7 years, 7 months ago
The Theme My Login plugin will let you do this. I’ve used it successfully with BP many times.
-
Henry Wright replied to the topic Sorry, you are not allowed to access this page. in the forum How-to & Troubleshooting 7 years, 7 months ago
It could be an authentication issue. Try clearing your cookies.
-
Henry Wright replied to the topic How to prevent using full name when register via facebook in the forum How-to & Troubleshooting 7 years, 7 months ago
Are you using a plugin? Registering via Facebook isn’t possible with BuddyPress by default.
-
Henry Wright replied to the topic Modify activity output in entry.php in the forum How-to & Troubleshooting 7 years, 7 months ago
You can use the get_post_type() function. For example:
if ( get_post_type( $post_id ) === 'post' ) {
// This is a "post" post
} else {
// This isn't a "post" post
}It’s also helpful to know the default post type names:
post
page
attachment
revision
nav_menu_item -
Henry Wright replied to the topic Show Recipient's Avatar during Private Message in the forum Creating & Extending 7 years, 7 months ago
I believe bp_the_thread_message_sender_avatar() is what you are looking for in https://github.com/buddypress/BuddyPress/blob/master/src/bp-templates/bp-legacy/buddypress/members/single/messages/message.php
-
Henry Wright replied to the topic Get all values of a XProfile field in the forum How-to & Troubleshooting 7 years, 7 months ago
Take a look through the bp-xprofile-functions.php file.
Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-xprofile/bp-xprofile-functions.php
-
Henry Wright replied to the topic how to change the count display to the left? in the forum How-to & Troubleshooting 7 years, 7 months ago
The count is likely added via a number of files because there’s n number of navigation items.
You should find all instances of
bp_core_new_subnav_item()
. The function will be passed an array as the first argument. The count is usually appended to thename
element of that array. -
Henry Wright replied to the topic Issues with dots in the forum How-to & Troubleshooting 7 years, 7 months ago
Your theme’s CSS is displaying list items with bullets. Try making use of
list-style-type: none;
.Ref https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type
-
Henry Wright replied to the topic Problems with special characters: é è ç ü etc in the forum Installing BuddyPress 7 years, 7 months ago
I believe
remove_accents()
, viasanitize_user()
, is converting those characters to ASCII. You could open a ticket for this on Trac? -
Henry Wright replied to the topic Is it possible to truncate long xprofile fields in member directory? in the forum Creating & Extending 7 years, 7 months ago
wp_trim_words() can do that. See this article
https://codex.wordpress.org/Function_Reference/wp_trim_words
-
Henry Wright replied to the topic BP CSS not loaded in header in the forum How-to & Troubleshooting 7 years, 7 months ago
wp_add_inline_style()
is likely used to add the inline styling. Try searching for instances of that in Twenty Fifteen.Ref https://codex.wordpress.org/Function_Reference/wp_add_inline_style
-
Henry Wright replied to the topic Display code from xprofile field in the forum How-to & Troubleshooting 7 years, 7 months ago
What is the script language? If JavaScript then you will need to surround it with <script> tags.
-
Henry Wright replied to the topic Display code from xprofile field in the forum How-to & Troubleshooting 7 years, 7 months ago
get_the_author_ID() has been deprecated. Try this instead:
echo xprofile_get_field_data( 'AD', get_the_author_meta( 'ID' ) );
-
Henry Wright replied to the topic new post notification count in the forum How-to & Troubleshooting 7 years, 7 months ago
bp_notifications_get_unread_notification_count( $user_id ) should help. Let us know if you need anything specific.
-
Henry Wright replied to the topic BuddyPress restrict User Activity in the forum How-to & Troubleshooting 7 years, 7 months ago
1. You could use user meta to store a post count
2. You could use user meta to store a message count
3. This could use post meta
4. User meta
5. Are you using an album plugin?You could run a scheduled task to remove the daily meta after 24h. I’m not aware of a plugin which will do all of this so I think custom code would be needed.
-
Henry Wright replied to the topic Remove Last Activity in the forum How-to & Troubleshooting 7 years, 7 months ago
You will need to modify the template file. See the Template Hierarchy article for more info.
-
Henry Wright replied to the topic Buudypress not writing cookies in the forum How-to & Troubleshooting 7 years, 8 months ago
The site is on https, would that make a difference?
It shouldn’t because setcookie() is passed is_ssl() as the 6th argument.
-
Henry Wright replied to the topic How to sort by xprofile fields on membership list page in the forum How-to & Troubleshooting 7 years, 8 months ago
Check out this article
bp_before_has_members_parse_args
is the filter hook you’ll need.meta_key
andmeta_value
will need to be used.Hope this helps!
- Load More
@henrywright
Active 8 months, 1 week ago