Search Results for 'buddypress'
-
AuthorSearch Results
-
September 11, 2015 at 11:23 pm #244309
palmdoc
ParticipantI have read and checked more than three times. My original question is I want to delete a member from a group – i.e. remove them from a group not from the site.
I really hope there is better group member management for Buddypress as it is a nightmare when there are thousands of members.September 11, 2015 at 8:45 pm #244305In reply to: Suspending user accounts
danbp
ParticipantAfaik there is nothing out to do this.
As start point, this snippet which let you hide a profile by user_id. Add it to bp-custom.php
function bpfr_hide_user_profile() { global $bp; // hide user_id 35 if(bp_is_profile && $bp->displayed_user->id == 35 && $bp->loggedin_user->id != 35) : wp_redirect( home_url() ); exit; endif; } add_action( 'wp', 'bpfr_hide_user_profile', 1 );Also, from here
https://buddypress.org/support/topic/temporarily-blocking-a-user-while-keeping-their-datanetwork/
https://wordpress.org/plugins/buddypress-verified/September 11, 2015 at 8:35 pm #244304danbp
ParticipantI’m wondering what is a username for you.
WP register only a user by username (aka pseudonym), email and password. BP add a Name field in which you can add anything: username, first or lastname. In the user table, there is also display_name, wich is the combination of first and last name from a WP user profile, before BuddyPress was installed or if you allow your users to enter the dashboard, and they start to play with their profile settings. IMHO, it’s better they haven’t that access when BP is activated. 👮
When on the members directory, you (connected or not) can search a member by using his username.
If you use WP’s site search from toolbar or the search widget (same thing), it doesn’t work, as members are not post types… 👣
For now, i’m unsure what you want to fetch. Do you mean display_name ?
All search forms available in BP are contextualized, as @henrywright expected.
A BP class can be extended, a core function with a filter can be extended. You simply add your own to it.
In other cases, like forbp_core_action_search_sitefunction (in bp-core-classes.php)
there is an action and a filter. Wow. 💪You can rewrite the whole function and use the action hook or only change a part of it by using the filter.
remove_action( 'bp_init', 'bp_core_action_search_site', 7 ); function my_custom_core_action_search_site() { bla bla bla.... } add_action( 'bp_init', 'my_custom_core_action_search_site', 7 );or
add_filter( 'filter_name', function_name');Theorie here:
https://buddypress.org/support/topic/how-to-override-core-function/But before hacking to deep, read here:
Maybe you could find some interesting things about
includeorsearch_temsoptions. 👀If all this is too much for you, consider this plugin:
https://wordpress.org/plugins/buddypress-global-search/
@prabin04, @henrywright
🚧 i’m really not an expert in matter of BP search, but thank you for your consideration.September 11, 2015 at 7:32 pm #244301In reply to: Suspending user accounts
Jasper
ParticipantThanks but this doesn’t work for what we need.
If not so important that the user can’t sign in. What we need is for their BuddyPress profile to disappear when they get suspended and reappear when they get reactivated. We need to be able to put their profiles into sleep mode and not be visible by the public.
September 11, 2015 at 7:14 pm #244300In reply to: bp_notifications_add_notification
danbp
ParticipantAnything related to notifications is in /buddypress/bp-notifications/ folder.
Best place to see commented BP code in a glance is
http://hookr.io/plugins/buddypress/#index=aSeptember 11, 2015 at 7:02 pm #244297In reply to: Unable to access Groups
danbp
Participantshareit/wordpress/sample-page/groups/testthis path looks strange.In which directory are WP/BP installed ?
Each component page must stay blank and without any template models or parent page…
Permalinks must be enabled, using any option except “default”.September 11, 2015 at 6:10 pm #244292In reply to: Registration form doing nothing
Henry Wright
ModeratorCan you try on a test install? It may be the ACF plugin and we need to rule that out.
On your test install, be sure there’s no plugins running aside from BuddyPress and have the TwentyFifteen theme activated. Also, remove any custom code you may have elsewhere such as bp-custom.php
September 11, 2015 at 4:33 pm #244285In reply to: Is default post deletion possible?
Pete Hudson
ParticipantNo, I was referring to a post to the Buddypress Activity Feed. Is “Activity Entry” the proper term?
We just launched our site and are getting a good bit of activity. Just looking to figure out how many BP Activity Feed entries/posts we should have before we start deleting the older ones and if there’s a way to automate that. We currently have 950.
Thanks.
September 11, 2015 at 12:18 pm #244275In reply to: Registration form doing nothing
Henry Wright
ModeratorTry disabling all plugins aside from BuddyPress. Sometimes a rogue plugin can interfere with the registration process.
September 11, 2015 at 11:11 am #244273Tafmakura
ParticipantNever mind, found the answer a great article by Ryan Fugate
September 11, 2015 at 9:48 am #244271djsteveb
Participantas lionel pointed out in other dupe topic – there is another forum replies on similar issue in regards to this when using localhost / wamp on local server I guess – https://buddypress.org/support/topic/resolved-404-the-requested-url-not-found-on-this-server/
September 11, 2015 at 9:46 am #244270In reply to: admin cant able to create a group
djsteveb
Participantugh – just realized this is a duplicate thread from same poster.. grr.. how to merge. meh.
another answer to this – what I do when this situation arises first:
https://buddypress.org/support/topic/the-requested-url-groupscreate-was-not-found-on-this-server/#post-244269September 11, 2015 at 9:44 am #244269djsteveb
Participant@varun404 – first thing I would do is go to settings -> permalinks.. make note of what they are.
Then change them to something else.
save.
then change back to pretty permalinks.
save.then check your url – is it working then?
if not.. then make sure you have created pages that bp needs, and associated them:
if that is all set write, I would check my htaccess to make sure it is writable and wordpress is indeed adding code to make permalinks work.
September 11, 2015 at 9:38 am #244268In reply to: admin cant able to create a group
September 10, 2015 at 4:15 pm #244245danbp
ParticipantCodex is your friend:
September 10, 2015 at 11:40 am #244231In reply to: How to force Buddypress to Update Activity Stream
Tafmakura
ParticipantThank you
Activity feed is updating after every 15 seconds and the “Load Newest” link appears if new activities exist. I am no expert PHP developer but every 15 seconds admin-ajax.php is being called by buddypress, I assume this is to check for latest activities, I want to replicate what buddypress is doing every 15 sec just once so that on my form submit after the ‘bp_activity_add’ action happens I can call the same function just once, to “force” the display of my newly added activity. I dont’t need to alter the 15 sec default interval.
September 10, 2015 at 11:31 am #244230In reply to: How to force Buddypress to Update Activity Stream
danbp
Participanthi @tafmakura,
As first, did you activated Activity auto-refresh in BP settings ?
Second, as it concern a custom feature of yours, you have to check for ajax requests on your action post variable.
That said, there is a latency of 15 seconds before “load more” will show up a new activity. Not sure if this can be modified.Seach on Trac for some hints about Ajax and activity.
Perhaps those tickets #5328, #6195 can help you.September 10, 2015 at 9:36 am #244221In reply to: Hide Buddypress pages from google serch.
Henry Wright
ModeratorYou can add this to your robots.txt file:
User-agent: * Disallow: /members/Feel free to add more fields for the different areas of BuddyPress.
Note that it doesn’t guarantee Googlebot et al won’t index these pages, it just requests that they don’t.
September 10, 2015 at 12:48 am #244207danbp
Participanthi,
first snipppet removes the mention tab.
Second remove the mention item from the top right usermenu below howdy.Condition is set to site admin. If you use custom capabilities, change that to your need.
Code goes to bp-custom.phpfunction bpfr_hide_mention_nav() { //if ( bp_current_user_can( 'bp_moderate' ) ) if ( is_super_admin() ) { return; } bp_core_remove_subnav_item( 'activity', 'mentions' ); } add_action( 'bp_ready', 'bpfr_hide_mention_nav' ); function bpfr_admin_bar_remove_activity_mentions(){ global $wp_admin_bar; if ( is_super_admin() ) { return; } $wp_admin_bar->remove_node('my-account-activity-mentions'); } add_action('wp_before_admin_bar_render','bpfr_admin_bar_remove_activity_mentions');An alternate (IMO better) solution, is this premium plugin: http://www.philopress.com/products/buddynotes/
September 9, 2015 at 11:39 pm #244205In reply to: Add a Text Area Field
danbp
Participanthi,
Dashboard > Users > Profile Fields > Add new fieldName []
Description []
Type > select Multi-line Text AreaSeptember 9, 2015 at 11:30 pm #244204In reply to: Logged in home page
danbp
ParticipantTo redirect your users to their friends activities page on login, you can use this:
function bpdev_redirect_to_profile( $redirect_to_calculated, $redirect_url_specified, $user ){ if( empty( $redirect_to_calculated ) ) $redirect_to_calculated = admin_url(); //if the user is not site admin,redirect to his/her profile $url = bp_core_get_user_domain( $user->ID ) .'activity/friends/'; if( isset( $user->ID) && ! is_super_admin( $user->ID ) ) return $url; else return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/ } add_filter( 'bp_login_redirect', 'bpdev_redirect_to_profile', 11, 3 );Snippet source: http://buddydev.com/buddypress/buddypress-trick-redirect-users-to-their-profile-on-login/
To add a home button to the main menu, use WP’s menu builder. But this doesn’t let you add a dynamic button going to EACH user profile, only to yours. You will have to code this.
See from here how to do this:
https://buddypress.org/support/topic/how-to-get-notification-count-code/#post-244069
You need to introduce this:
$url = bp_core_get_user_domain( $user->ID ) .'activity/friends/';September 9, 2015 at 4:42 pm #244189In reply to: Filter Profile Fields
danbp
ParticipantThis is possible as built-in feature from within a profile. Each field value is clickable by default (in fact the 5 first words). When clicked, you get a list of all members who entered the same value.
To list the member directory by xprofile field values, you have to code it or modify the directory template. Read from here:
September 9, 2015 at 4:32 pm #244188danbp
ParticipantHow else would I override the buddypress file unless it was in my child theme with the same name?
You should NOT override core files. The only files you alter from child theme are template files.
To alter core functions, you use custom functions and add them via filter hooks, preferably added to bp-custom.php – so you won’t loose your work at next update.
member-profile.php doesn’t exist in BuddyPress.
Codex is your friend !
… and forum search too. 😉
September 9, 2015 at 3:54 pm #244185rezon8dev
ParticipantIs your child theme working correctly with Kleo ?
Is the altered member-header.php file in your child-theme ?Yes and Yes..
Do you really use a file called member-profile.php, as stated in your first topic ? Bad !
How else would I override the buddypress file unless it was in my child theme with the same name?
I’ll give this a go and report back, thank you very much!
September 9, 2015 at 2:52 pm #244180danbp
Participant -
AuthorSearch Results