Search Results for 'buddypress'
-
AuthorSearch Results
-
June 14, 2014 at 12:33 am #184023
In reply to: Override a BP class function
r-a-y
KeymasterIf you’re not using the Friends component, why not disable it under the BuddyPress components menu?
Uncheck “Friend Connections” and save.
If you’re using the
wp_bp_friendstable in weird ways. Disable the friends component and create your own custom component plugin referencing this table. You should really have created a new table and namespaced it differently to avoid these issues you’re running into.You could also try removing the button:
remove_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );This would need to be called before the page loads.
June 14, 2014 at 12:31 am #184022In reply to: Ning Import
@mercime
Participant@doodledogcody as of now, there’s only a premium plugin https://premium.wpmudev.org/project/ning-to-buddypress-user-importer/ that does Ning to BP import.
June 13, 2014 at 6:32 pm #184007In reply to: Adding New Profile Tab Content
saturdaysound
ParticipantThanks for that! It’s doing something different now, but not what I need unfortunately.
What is happening now is that the Title and Content are the only thing on the page, there is no other content… not my page header, not the Buddypress profile page, nothing at all.
Here’s the new code.
function profile_tab_favourites() { global $bp; bp_core_new_nav_item( array( 'name' => 'Favourites', 'slug' => 'favourites', 'screen_function' => 'favourites_screen', 'position' => 40, ) ); } add_action( 'bp_setup_nav', 'profile_tab_favourites' ); function favourites_screen() { //add title and content here - last is to call the members plugin.php template add_action( 'bp_template_title', 'favourites_title' ); add_action( 'bp_template_content', 'favourites_content' ); bp_core_load_template( 'buddypress/members/single/plugins' ); } function favourites_title() { echo 'Title'; } function favourites_content() { echo 'Content'; }-NOTE: my buddypress templates are all inside a directory called “buddypress” on root, hence the “buddypress/members/single/plugins” not “members/single/plugins”.
Any known reason for this behaviour?
June 13, 2014 at 6:13 pm #184006In reply to: Adding New Profile Tab Content
danbp
ParticipantJune 13, 2014 at 6:10 pm #184005In reply to: Adding New Profile Tab Content
shanebp
ModeratorTry changing this:
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘buddypress/members/single/plugins’ ) );To this:
bp_core_load_template( 'members/single/plugins' );June 13, 2014 at 5:40 pm #184003In reply to: [Resolved] Hide BP Search Bar
danbp
ParticipantThis filter will remove any members count everywhere. Goes into bp-custom.php or theme’s functions.php
add_filter ('bp_get_total_member_count', '__return_false');Now you see a count with zero. But this count is hardcoded in a span. So you can hide this with css:
#activity-all span, #members-all span{ display:none; }See html/css details in index.php of each folder in bp-templates/bp-legacy/buddypress/
June 13, 2014 at 12:15 pm #183994In reply to: white screen after deactivating Buddypress
ariane1001
ParticipantHi, it was the theme. after updating it everything worked again.
If you look for information about updating you find an old post that says you have to deactivate buddypress before updating. But when you do that, and your theme is using parts of buddypress this will nog work and give the white screen.
It would be nice if the info would be more up to date.June 13, 2014 at 7:22 am #183987Mathieu Viet
ModeratorHi,
Depending on the theme you use (regular WordPress theme, BP Default or a child of it, or a standalone BuddyPress theme), you can override some templates to achieve your goal.
Have a look at the codex starting with this page : https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
If it’s a regular WordPress theme, then you can can add a
buddypressfolder in it and copy these templates into it respecting the ‘tree’ :
–bp-templates/bp-legacy/buddypress/activity/index.php
–bp-templates/bp-legacy/buddypress/members/single/activity.phpOnce done, you should have :
–yourthemefolder/buddypress/activity/index.php
–yourthemefolder/buddypress/members/single/activity.phpThen into these two files search for
bp_get_template_part( 'activity/post-form' );and you should see a line above an if statement containingis_user_logged_in().... Replaceis_user_logged_in()bybp_current_user_can( 'theminimumcapability' )where theminimumcapability is the the role capability you’re targeting. See the WordPress codex to define it : https://codex.wordpress.org/Roles_and_Capabilities
June 13, 2014 at 7:06 am #183986Mathieu Viet
ModeratorHi,
You can use the Group Extension API to build your own group area : https://codex.buddypress.org/developer/group-extension-api/
June 12, 2014 at 7:54 pm #183977In reply to: [Resolved] Notify by Email when xProfile Updated
Chris Perryman
ParticipantJust wanted to follow up…we did come up with a solution for this in case any one else is looking for it.
Full details are now on my blog at Revelation Concept.
function rc_buddypress_profile_update( $user_id ) { $admin_email = "YOUR-EMAIL@DOMAIN.COM"; $message = sprintf( __( 'Member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n"; $message .= sprintf( __( 'Color: %s' ), bp_get_profile_field_data('field=Color') ). "\r\n\r\n"; wp_mail( $admin_email, sprintf( __( '[YOUR SITE] Member Profile Update' ), get_option('blogname') ), $message ); } add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );June 12, 2014 at 5:27 pm #183974paton400
ParticipantNow we are talking very basic WordPressing here.
Go to the appearance/menus screen and from there it’s pretty self explanatory.
click on ‘Create a new menu’, call it whatever you want, then select what pages you would like to appear in the menu.
Underneath the list of WordPress pages you see a tab full of Buddypress options that can also appear in the menu, one of which is the log-in/log-out button.
Regards
June 12, 2014 at 3:53 pm #183970paton400
ParticipantYou need to add it to one of your menus or as a widget.
Go to appearance/menus – then you can select a range of Buddypress options to add to your nav bar for both logged in or logged out users. Click the Buddypress tab (below the pages tab). If you don’t have a nav bar then create a new one.
Otherwise appearance/widgets – and place the login widget somewhere!
Regards
June 12, 2014 at 12:28 pm #183953In reply to: Hot can I display the profile fields groups in tabs?
danbp
ParticipantAnyway an image says more as words (in our case).
Check if this plugin can help you:
https://wordpress.org/plugins/buddypress-profile-tabs/June 12, 2014 at 8:25 am #183942In reply to: Hot can I display the profile fields groups in tabs?
dromy
ParticipantThank you for the quick response.
when adding groups and more fields the groups and fields are displayed on the member page as a table.
I would like to create a tabs display to the member information (my created fields and group) when each group of (ex.wp-widget base) div\table is displayed on a different tab.hope I am clear.
on the admin or edit cases I do not want to touch for now. This relate only for the view buddypress member profile as a member or as anonymous.(and sorry, I meant how on topic and not hot)
June 12, 2014 at 8:18 am #183939In reply to: Hot can I display the profile fields groups in tabs?
danbp
ParticipantOn xprofile component, the default field group is called Name and contains only one field who will contain the username. This group is already tabed on a profile page and is the only group field who appears on the register page.
Now, on the xprofile admin you can add as many fields and group fields you want, and you can set each field to different visibility.
These new field can be grouped and each group you create will automatically be tabed on a profile page.https://codex.buddypress.org/buddypress-components-and-features/extended-profiles/
If you mean showing groups on the profile, this also made automatically by BP. On each profile, you have (if exist) the groups the member belongs to.
If all this is not what you mean, be more explicit 😉
June 12, 2014 at 8:07 am #183937danbp
ParticipantIn your first topic you asked: It is possible to turn off this notification?
Yes it is, and the solution is in the first link. The other link is given as reference to the code, who is in a core file. Such core files should never been modified directly.
You need to study a bit WP and BP codex to understand how to achieve this, and learn a bit more about buddypress customization. You are also free to hire a developer by posting at http://jobs.wordpress.net/ or somewhere else.
One easy way to begin is to search and read this forum first i guess.
June 12, 2014 at 7:55 am #183936In reply to: I want to use BP BUT is there a plugin for this use?
danbp
Participanthi @jjjaay9,
BuddyPress (BP) is a community plugin (a bundle of 8 distinct components and many other features) for WordPress. These components are all optionnal, but in any case, publishing is the territory of WordPress.
If you want to allow front-end publishing for your users, to avoid them going directly into the admin, search some plugin on the WP plugin repo or use a theme who provide such facility.For example consider the theme P2, it probably contains anything you listed. (so far i remember)
User guide is here.
June 12, 2014 at 7:44 am #183934In reply to: I want to use BP BUT is there a plugin for this use?
jjjaay9
Participanti found some plugins that MAY do this: answer/questions
However, if I used these plugins, how easy do they integrate with buddypress?
Can I customize to show these pages, and for users to have a default link to ‘create a question’ ?I mean, if they have ‘create post’ like a normal wordpress blog, then buying/using a question/answer plugin is kinda useless as most wont be able to find the link to it – and will automatically create a post instead.
Also, how would i know if it looks good or this plugin will integrate with BP?For example, would it show up as a sidebar saying recent questions like recent posts etc?
Otherwise if it doesn’t integrate with BP then there’s no point using BP if it has a question and answer section that acts normally as wordpress anyway.
If so, what are teh benefits of using BP AND a question/answer plugin?
one eg i think of is, users can private message eachotehr when someone posts a questionThanks
June 12, 2014 at 4:06 am #183925In reply to: Who's Online Widget and Members Widget Not Working
Kaisar Andreti
Participanthi mercime,
I Activated Buddypress network-wideJune 12, 2014 at 1:03 am #183923In reply to: [Resolved] Set default forum category for groups?
echiomega
ParticipantAlready available… Didn’t see it…
June 12, 2014 at 1:03 am #183924In reply to: [Resolved] Set default forum category for groups?
echiomega
ParticipantAlready available… Didn’t see it…
June 11, 2014 at 10:33 pm #183921fortunebuildersnb
ParticipantNevermind, the documentation was referring to the wrong function on this page,
So I just changed it…
June 11, 2014 at 1:18 pm #183914In reply to: [Resolved] How to hide more than one profile field?
danbp
ParticipantGroup exclusion doesn’t work on a single install for the moment (only on MS).
More advice on this here:
https://buddypress.trac.wordpress.org/ticket/5650June 11, 2014 at 12:14 pm #183911In reply to: [Resolved] Hide BP Search Bar
danbp
ParticipantHi @paton400,
give this a try. You can the function to your child-theme’s functions.php or into bp-custom.php
//Remove Buddypress members search function bpfr_remove_member_search_form( $search_form_html){ return ''; } add_filter('bp_directory_members_search_form', 'bpfr_remove_member_search_form' );June 11, 2014 at 10:41 am #183908Hope
ParticipantGot the solution from this link:
http://wordpress.stackexchange.com/questions/60793/customize-activity-stream-buddypressThanks
-
AuthorSearch Results