Search Results for 'buddypress'
-
AuthorSearch Results
-
January 17, 2018 at 10:24 am #270149
HDcms
ParticipantHI,
I’m trying to filter the buddypress members in the list of members and display them in descending order of precedence on a numeric xprofile field (0 to 10).
Example of filter xprofile field “I search” = xprofile field “I am”I found the function that should work, but I can not do the query:
function my_bp_loop_querystring( $query_string, $object ) { if ( ! empty( $query_string ) ) { $query_string .= ‘&’; } // $query_string .= ‘per_page=2’; //works $jerecherche = xprofile_get_field_data(‘Je recherche’, $user_id, $multi_format = ‘comma’ ); $query_string .= ‘search_terms=true&per_page=2’; // <del datetime="2018-01-17T10:23:06+00:00">works</del> return $query_string; } add_action( ‘bp_legacy_theme_ajax_querystring’, ‘my_bp_loop_querystring’, 20, 2 );January 17, 2018 at 2:29 am #270147stoi2m1
ParticipantSuper weird. I disabled all of my plugins except Buddypress, Activated the Parent Theme and still had issues. Copied over the BP Default theme and things work.
I have not changed anything in the parent theme, very odd that it seems to be the issue. Maybe some of this happened when I upgraded to the most recent WP and BP.
January 16, 2018 at 9:51 am #270130In reply to: Can’t import user’s birthday from CSV
vinkgg
ParticipantI’ve managed to export the contacts list from the old intranet (made in .net) in an excel workbook, with that, i created each column matching the fields from wordpress and also my custom fields for buddypress as well.
So far i can import the users with no problem, the issue is, is that in the old intranet they had a “birthday widget” showing the co-workers who are celebrating in the current month. I also added a “Birthday Date” column, but when i type the date, the Import Plugin does not take the data in.
One thing i tried is to create the user in wordpress dashboard, type in all the fields from the user, including the birthday date and export it to a csv file, it did show the date in the column, so i copied the same format as it came from the file, and import it, but it does not import. I’ve tried different date formats but none of those worked out
YYYY-D-M
YYYY-D-M HH:MM:SS
M-D-YYYY HH:MM:SSAny ideas?
Thanks for the reply leog371January 16, 2018 at 1:40 am #270119In reply to: Can’t import user’s birthday from CSV
leog371
ParticipantWhat are you exporting this csv out of? Is it from another WordPress or BuddyPress Site? If so, do you have all fields in your new intrasite setup like you did in the last one? If this is from some other social networking script, do all your data columns and things match up?
January 16, 2018 at 12:46 am #270115In reply to: How to add buddypress favorite button on a blog post
cding
Participant@leog371 It seems you use the wp delete comment function. I want the comment author can delete their own comment and this is why I want to use buddypress delete activity function. Does your function allow the comment author to delete their own function?
And it is difficult for me find where to put the second codes.
I try to put it after-
<?php
wp_list_comments( array(
'avatar_size' => 100,
'style' => 'ol',
'short_ping' => true,
'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
) );
?>but it is not the right place. I want show the button after each comment.
January 15, 2018 at 11:38 pm #270114In reply to: Can’t import user’s birthday from CSV
vinkgg
ParticipantAnyone?
I really don’t know what to do, the support from the plugin http://www.youngtechleads.com/buddypress-members-import-support/ doesn’t reply has been a week… and it was kind expensive as well.
Thanks
January 15, 2018 at 1:42 pm #270104In reply to: [access request]Documentation contribution
@mercime
Participant@deimz Thank you for submitting the documentation which were attached in this codex page. As @hnla mentioned, your gravatar was included in the BP Codex props/gallery for 2017 at https://bpdevel.wordpress.com/2018/01/09/bp-codex-summary-for-2017/
Cheers.January 15, 2018 at 1:13 pm #270102HDcms
ParticipantHI,
I got a message from the theme author, but if you could help me or give me an example?- “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/
So there should be made a custom function/s that check it’s there it’s member directory and only then to run that function and also should be builded the logic of your flow.”
January 14, 2018 at 8:23 am #270089In reply to: Change menu items below user header
Varun Dubey
Participant@keshabee You can use following codes
function vap_remove_buddypress_sites_tabs() { global $bp; // to remove main menu for sites. bp_core_remove_nav_item('blogs' ); } add_action( 'bp_setup_nav', 'vap_remove_buddypress_sites_tabs', 999 );January 14, 2018 at 8:08 am #270087In reply to: Remove Profile Nav Items
Varun Dubey
ParticipantHi @shayne-thiessen
You can use code suggest in following thread.January 14, 2018 at 8:04 am #270086In reply to: Accounts Automatically Marked As Spammer When Not
Varun Dubey
Participant@phiggins25 inside BuddyPress setting, you have options to set activities marked as spam via Akismet. It might be possible those users have suspicious IP, or their email id is already marked as spammers. Try to disable it.
January 14, 2018 at 8:01 am #270085In reply to: Translation issues in certain places
Varun Dubey
Participant@lpedley It’s theme specific issue, contact theme support for a solution.
When theme and other related BuddyPress plugin override template files, you have to translate theme and additional plugin strings with correct text domain.January 14, 2018 at 4:01 am #270084In reply to: Get XProfile Field outside of BuddyPress!
leog371
ParticipantWrap that in a BuddyPress Loop on whatever template your using it on.
January 11, 2018 at 5:24 pm #270059In reply to: Allow HTML in Custom Post Type “excerpt”
Varun Dubey
ParticipantHi @hopetommola you can check https://codex.buddypress.org/plugindev/post-types-activities/#customizing-post-type-activity-content
You can use the same approach to define activity post content for CPT.For allowed tags you can try bp_activity_allowed_tags filter
January 11, 2018 at 5:03 pm #270058In reply to: activity meta
Varun Dubey
ParticipantJanuary 11, 2018 at 4:58 pm #270057In reply to: Change menu items below user header
Varun Dubey
Participant@brunothomas You can try following codes to remove any specific tabs and subtabs
function vap_remove_buddypress_profile_tabs() { global $bp; // to remove main menu like friends. bp_core_remove_nav_item('friends' ); // to remove sub nav favorites under activity. bp_core_remove_subnav_item('activity', 'favorites'); } add_action( 'bp_setup_nav', 'vap_remove_buddypress_profile_tabs', 999 );To create new tabs, you will have to create dedicated functions
January 11, 2018 at 12:42 pm #270052In reply to: Problems with user registration
kariellen35
ParticipantI am still having problems with my user registration and it resides solely with buddypress. I currently have all plugins disabled besides buddypress. I can’t help but wonder if this was caused by the update. Is anyone else having this issue?
January 10, 2018 at 9:36 pm #270047Topic: Change menu items below user header
in forum How-to & Troubleshootingbrunothomas
ParticipantHello guys,
I’m new to wordpress themes customization so I’d like some help with a few questions.
I’ve been running a buddypress community for some months now but I couldn’t find out these things:
1) How do I remove items from the menu bar that’s below the user profile header? I tried via the usual Menu customization option in WP dashboard but couldn’t find it.
2) How do I add a link to a custom page to that same menu and make it open within the same template, that is, showing the header and menu bar on the top of the content I created?
Reference: https://i.imgur.com/IR5Ptbq.png
Thanks!
Bruno
January 10, 2018 at 6:52 am #270043In reply to: How to add buddypress favorite button on a blog post
cding
Participant@leog371 The codes work very well! And I also want add buddypress delete comment button after each comment on a blog, so the comment user could delete their own comment. I tried hours but failed to modify the add favorite codes. I konw little about php, would you like to give a hand?
January 9, 2018 at 7:25 am #270027In reply to: How to hide CPT Links from profile view
leog371
ParticipantJust to be sure of what your asking, Are you trying to hide these from everyone including the person who owns the profile?
Just in case you dont want to hide them from the profile owner, you should know that any links that are edit, upload rtmedia links only display for the profile owner and no one else and most other things like this are hidden by default from users and friends anyways. Only a profile owner can upload and make changes to his profile or post activity on their profiles.
Also, each member has privacy options in their profile settings. You can set defaults in the dashboard for this as well.
If this is not the case, could you clarify what you hope to achieve?
If you simply wish to remove links for everyone in your site including the profile owner, just use something like this in bp-custom.php file
/* Example to Remove subnav tabs from Group Settings https://codex.buddypress.org/developer/navigation-api/#examples*/ function remove_group_manager_subnav_tabs() { // site admin will see all tabs if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) { return; } // all subnav items are listed here. // comment those you want to show $hide_tabs = array( // 'group-settings' => 1, // 'delete-group' => 1, // 'group-avatar' => 1, // 'group-invites' => 1, // 'manage-members' => 1, // 'forum' => 1, // 'group-cover-image' => 1 ); $parent_nav_slug = bp_get_current_group_slug() . '_manage'; //Remove the nav items foreach ( array_keys( $hide_tabs ) as $tab ) { bp_core_remove_subnav_item( $parent_nav_slug, $tab, 'groups' ); } } add_action( 'bp_actions', 'remove_group_manager_subnav_tabs' );January 8, 2018 at 8:01 pm #270022nicecap
ParticipantWow – thank you leo – you came up with the right track. When I add Activity from the BuddyPress items to my menu it will be the “…/members/username/activity” version and when I add Activity from the pages items it will be “…/activity”, so I changed that.
But it’s true then the header is missing. I will fix this.
Thank you very much for your effort helping me!
January 8, 2018 at 6:11 pm #270016In reply to: How to add buddypress favorite button on a blog post
leog371
ParticipantHiya CDing, check this out. Its pretty self explanitory. Add BuddyPress Favorite Button On posts
January 8, 2018 at 2:32 pm #270014Varun Dubey
ParticipantHi @eeker, You can try rtMedia plugin or BuddyPress Activity Plus By WPMU DEV.
January 8, 2018 at 12:56 pm #270012Topic: BuddyPress Groups Wizard |Cancel button?
in forum How-to & Troubleshootingangrywarrior
ParticipantWelp pretty much as it says;
Is there a way to add a “cancel” button to the group creation wizard. If a end-user regrets his/her decision to create group then the group has been created anyway. So a potential bloat of the system which loads of unfinished grops can be prevented if there only was a “cancel” button in each step of the wizard.Thanks a lot in advance! 😉
January 8, 2018 at 6:15 am #269999leog371
ParticipantOk, So hello again NiceCap. So what I see is that your activity link in the “Community” drop down menu link in the header there is actually being sent to the current /logged-inMmembers (Current User’s)/profile /activity page. Not the “Community Sites” activity page.
What your getting is this
https://www.cb-riding.com/members/leog371/what you want is this
https://www.cb-riding.com/activityThis is probably due to either having your menu setup wrong or your pages in settings/buddypress set up with the wrong pages. I would start by going into your menus. Its under appearance in your wp dashboard and make sure that link gores to https://www.cb-riding.com/activity.
Then go to Settings/buddypress and make sure that the pages are set up correctly. Meaning “Activity Page” should be set to “Activity Page”.
It appears that the activity stream is not taking on your header and your theme stuff. Not sure whats going on there, you should check that out. Anyways, your activities page is here
- “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/
-
AuthorSearch Results