Search Results for 'wordpress'
-
AuthorSearch Results
-
March 2, 2019 at 3:22 pm #303200
In reply to: profile field
shanebp
ModeratorDelete your use of the
add_action.Research how to use a filter in WordPress.
Try :
function cami_field_value( $value, $type, $field_id ) { if ( $field_id == 123 ) { // change 123 to the id of the field you want to change // adjust $value } return $value; } add_filter( 'bp_get_the_profile_field_value', 'cami_field_value', 1, 3 );March 2, 2019 at 1:50 pm #303192In reply to: Buddypress Docs
Venutius
ModeratorThere’s two you could try, BuddyPress Docs which is a bit old but still works. Or my own plugin BP Post Status which is the new kid on the block.
BuddyPress Docs sets up it’s own post type and adds collaborative editing to it. This means that the editing experience is somewhat limited.
BP Post status uses standard posts and add group based statuses to it so that posts can be assigned as Group posts, members only friends only etc and since it uses posts (or any other post type) you can exxjoy the full classic editor or my own front end publisher – BP Site Post Note that Gutenberg does not support custom post statuses so it can only really be used in classic editor mode.
There’s a couple of other options, such as BuddyDev’s Blog Categories for Groups or if you are looking for a document library there BP Documents.
February 28, 2019 at 7:28 pm #303168In reply to: reset() expects parameter 1 to be array
Venutius
Moderatorhttps://buddypress.trac.wordpress.org/ticket/8005 supposed to be fixed.
February 28, 2019 at 11:43 am #303157In reply to: Members Page Link Listed on Menu for Logged In Users
Venutius
ModeratorYou can use https://wordpress.org/plugins/nav-menu-roles/
February 28, 2019 at 7:55 am #303152In reply to: Admin / Rankings / Rights
Venutius
ModeratorYep but it would require custom code I would have said. There’s a BuddyPress filter called bp_current_user_can and a WordPress filter map_meta_cap you could hook into these, determine the user and situation and choose to allow the action accordingly.
Venutius
ModeratorHi there, I can confirm this as an issue, would you like to raise this on trac to get it fixed?
February 27, 2019 at 1:47 pm #303140In reply to: Customized Login Page
Venutius
ModeratorBuddyPress uses the WordPress login page so any WordPress login page customiser will do that for you. Most have much the same features so just find one that’s still being maintained.
February 27, 2019 at 1:46 pm #303139In reply to: Buddy Avatar – OOOPS, SORRY! WE COULDN’T FIND IT
frolickingmini
ParticipantIf I go to the new Profile page that I created through my site after installing BuddyPress, and then I hit the camera icon on my avatar, it opens this page: https://www.celebritywotnot.com/members/c-claire/profile/change-avatar/ which displays the message: “OOOPS, SORRY! WE COULDN’T FIND IT! You have requested a page or file which doesn’t exist”
Many apologies if there is something I’m missing here. I assumed this was part of the extended profile option in Buddypress but perhaps its through WordPress’ own Users or Discussion section in which case, I’m still not sure what I’m doing…
February 27, 2019 at 12:37 pm #303133In reply to: How to hide view in profile tab
Thilina Wickramasinghe
ParticipantHi,
Thank you for reply.
I tried as you mentioned but I’m not understand about how to use the ‘UserName’ in WordPress menu.BuddyPress allowed (Profile > Edit screen ) only below links to add into the WP menu directly.
https://prnt.sc/mqtrvsThank you!
February 26, 2019 at 2:16 pm #303119Topic: How to hide view in profile tab
in forum How-to & TroubleshootingThilina Wickramasinghe
ParticipantHi,
I’m trying to hide ‘View’ tab under the ‘Profile’ menu and make ‘Edit’ tab as default view. I tried several ways and referred few articles. But still I couldn’t find a solution.
Please refer this snapshot: https://prnt.sc/mqdizd
If this is not possible, can we insert direct menu link to ‘Edit’ tab in WordPress Menus section? So, I can hide ‘View’ tab using css.
Ex: https://example.com/profile/%5BUSERNAME%5D/profile/edit/
Thank you!
February 26, 2019 at 9:59 am #303117MorgunovVit
ParticipantHi!
There’s an error on BuddyPress profile page:
content.js:3 E_NOTICE Undefined index: Полное имя – /wp-content/plugins/buddypress/bp-core/classes/class-bp-core-user.php:159
#44 /wp-content/plugins/buddypress/bp-core/classes/class-bp-core-user.php:139 – BP_Core_User->populate()As I can gues – it related to xprofile fields. It seems that I removed the field ‘Полное имя’ that was created before on the Users Profile Fields page.
And now php string:
$this->fullname = esc_attr( $this->profile_data[$full_name_field_name][‘field_data’] );
in plugins/buddypress/bp-core/classes/class-bp-core-user.php
causes an error.Could you help me?
WordPress version 5.1
BuddyPress Version: 4.2.0
Site URL: https://test.mc21academy.ru/February 25, 2019 at 4:41 pm #303091In reply to: bp_the_member() in admin-ajax
Darren Cooney
ParticipantThanks for the reply.
They are not in the loop because I’m using a plugin, Ajax Load More to render users and it creates it’s own loop using theWP_User_Querynot buddypress methods.Appreciate the direction to the
BP_XProfile_ProfileDatamethod. I’ll check this out.February 22, 2019 at 8:01 am #303042In reply to: How restrict the create group for one user
Venutius
ModeratorIn WordPress each user role has a number of assigned capabilities, I’m looking for you to tell me a capability that the Member has that the visitor does not.
February 20, 2019 at 10:44 pm #303022In reply to: Create a new Extended Profile (xProfile) field type
Venutius
ModeratorPossibly a good template plugin would be https://wordpress.org/plugins/bp-xprofile-rich-text-field/ it’s got the filters and actions you’d need. It’s not straightforward, you’d need to extend the BP xProfile Field Type class in order to have it as part of the xProfile field type collection by the looks of things. I agree it would be nice to have it documented but we have what we have. Maybe one of you can strip down one of these plugins and write it up for the rest of us?
The other option is to ask either of the collection plugins to add your type to their collection?
February 20, 2019 at 7:45 pm #303017In reply to: How restrict the create group for one user
Venutius
ModeratorMember is not part of WordPress’s default roles, so you must have created this using the user role editor you posted the link to. When you did that, you must have added some extra capabilities above the default subscriber, it’s one of those extra capabilities that we need.
February 20, 2019 at 6:55 pm #303010In reply to: How restrict the create group for one user
Venutius
ModeratorI’ve a plugin for that: https://wordpress.org/plugins/buddypress-restrict-group-creation/
February 20, 2019 at 5:26 pm #303003In reply to: Populate wp_usermeta.last_name
Varun Dubey
ParticipantFebruary 20, 2019 at 4:41 pm #302995Venutius
ModeratorFebruary 18, 2019 at 3:25 pm #302937In reply to: Custom notification text don’t show on front page
shanebp
ModeratorUntested, but try:
function custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { // New custom notifications if ( 'custom_action' === $action ) { $custom_title = "You have new custom notification"; $custom_link = get_permalink( $item_id ); $custom_text = "You have a new custom notification"; // WordPress Toolbar if ( 'string' === $format ) { $return = apply_filters( 'custom_filter', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'custom_filter', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $item_id, $secondary_item_id ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'custom_format_buddypress_notifications', 20, 5 );February 18, 2019 at 9:41 am #302935In reply to: Fan Page or group rvert to fan page ?!
Venutius
ModeratorOK it’s live now: https://wordpress.org/plugins/bp-fan-page/
February 17, 2019 at 1:33 pm #302922In reply to: Fan Page or group rvert to fan page ?!
Venutius
ModeratorWe’ve had a few requests for Fan Page functionality recently so I took a look at the announce group code to see what changes could be made to turn it into a fan page plugin. Other than changing the name to fan page I also noted that it did not prevent group members from creating new topics in the forum so I’ve forked the plugin and added those changes. Hopefully that will deliver something like what you are looking for. I’ll submit it to WordPress.org and let you know once it’s live.
February 17, 2019 at 10:19 am #302918In reply to: Fan Page or group rvert to fan page ?!
Venutius
ModeratorThere’s a plugin the converts a group to announce only, maybe that could be the basis of a fan page?
February 17, 2019 at 12:06 am #302914In reply to: Posts not syncing
hrithik951
ParticipantWordPress did it part by successfully assigning the posts to the author. It is indeed visible from the backend that posts were assigned.
From the frontend, the main profile of the author which is visible to the public, that isn’t showing any posts. It’s like they are not syncing.
February 16, 2019 at 11:26 pm #302913In reply to: Posts not syncing
Venutius
ModeratorBuddyPress does not manage what happens to posts when a user is deleted, I think that’s a WordPress function.
February 16, 2019 at 11:03 pm #302912Alex
ParticipantTry something like this in the Additional CSS tab of the WordPress Customize area:
#forums-personal-li {
display:none;
} -
AuthorSearch Results