Search Results for 'buddypress'
-
AuthorSearch Results
-
November 10, 2016 at 3:47 pm #260905
Venutius
ModeratorThis has got to be plugin conflict or theme related issue since avatar and cover image uploads work when BuddyPress is running standalone. I’d try deactivating all other plugins and if that does not work then switching to the 2016 theme to check
November 10, 2016 at 6:14 am #260892Topic: help with default activity stream tab
in forum How-to & TroubleshootingMasoud
Participanthi.
i am using latest versions of both wordpress and buddypress.and working on a food website.
in this website , i wanted to allow only authors to post activity updates .
(because it will be much easier for users to track their favorite chef recipes in the activity page.)
so i’ve hide the ” personal ” submenu of activity tab : Activity > Personal (where people can post updates)
with the help of following code in bp-custom.php :function bpfr_hide_tabs() { global $bp; if ( bp_is_user() && ( !current_user_can(author) || !current_user_can(administrator) ) ) { bp_core_remove_subnav_item($bp->activity->slug, 'just-me'); } } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );but now when i go to my profile (as a subscriber)
i will see a 404 page.
i’ve searched a lot and i noticed that , now that i’ve removed the default activity stream tab , i have to point it to another tab. so when a user profile is loading (or if a user clicks on activity tab),
instead of default activity> personal . it load activity > mentions / OR / favorites / OR / … (some other submenu than personal )so my question is:
how can i change the default activity stream tab
from
Activity > Personal
To
Activity > Mentions – Or to – Activity > Favorites – …thanks a lot for any help.
November 10, 2016 at 12:45 am #260888In reply to: default page for logged in users
Venutius
ModeratorYou could try something like this, only it’s not been updated in a while, not tried it myself https://wordpress.org/plugins/buddypress-login-redirect/
November 9, 2016 at 9:46 pm #260884In reply to: Group header file problems
danbp
ParticipantNovember 9, 2016 at 12:18 am #260862In reply to: Deleted members are getting added to group
worsin
ParticipantOh and its important to note that none of the tools for buddypress work to fix this issue.
November 8, 2016 at 9:01 pm #260856In reply to: “Create Group” button not showing
claudiosinopoli
ParticipantDear danbp,
first of all tank you for killing the discussion with your silence.
Almost two months ago I asked you for help, without success.After a while I realized that I can perform a supposedly so simple task myself.
I’m writing now to inform other people that want the “create a group” button in the single member’s “groups” page or somewhere else in a buddypress template page.After reading some buddypress documentation I replicated in my child theme the buddypress templates and css folders structure.
Looking into the group-related php files I noticed that the function for the button “create a group” is called bp_groups_directory_group_filter.
The “groups” page for the single member is generate by the file located in the following folder in my child theme: my_child_theme/buddypress/members/single/groups.php
It is starting with the following code
<?php /** * BuddyPress - Users Groups * * @package BuddyPress * @subpackage bp-legacy */ ?> <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> <ul> <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?> <?php if ( !bp_is_current_action( 'invites' ) ) : ?> <li id="groups-order-select" class="last filter"> <label for="groups-order-by"><?php _e( 'Order by:', 'buddypress' ); ?></label> <select id="groups-order-by"> <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>It’s enough to add the line
<?php do_action( 'bp_groups_directory_group_filter' ); ?>
after line 12
<?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
and you do the trick.Now in the single member’s “groups” page there will be the following buttons:
Memberships | Invitations | Create a groupIn the same way you can add this button to any other template page, taking care that the function it’s placed in the right position in the code.
Thank you again danbp: your silence was not very professional but perhaps stimulating in order to take initiative, learn something and solve a problem by myself.
November 8, 2016 at 8:36 pm #260855In reply to: How to re-order Messages subnav items (tabs)
maccast
ParticipantJust so this is complete. Here’s the code updated for BuddyPress 2.6 or later.
function add_settings_subnav_tab() { //reorder messages tabs buddypress()->members->nav->edit_nav( array( 'position' => 10, ), 'compose', 'messages' ); buddypress()->members->nav->edit_nav( array( 'position' => 11, ), 'inbox', 'messages' ); buddypress()->members->nav->edit_nav( array( 'position' => 12, ), 'sentbox', 'messages' ); buddypress()->members->nav->edit_nav( array( 'position' => 20, ), 'starred', 'messages' ); } add_action( 'bp_setup_nav', 'add_settings_subnav_tab', 100 );November 8, 2016 at 8:43 am #260832In reply to: How to re-order Messages subnav items (tabs)
danbp
ParticipantNovember 8, 2016 at 7:34 am #260830In reply to: Emailing all users
Venutius
ModeratorYou have two options that I’m aware of – http://buddyuser.com/plugin-review-mass-messaging-in-buddypress and http://buddyuser.com/plugin-review-mass-messaging-for-buddypress-by-alkaweb
November 8, 2016 at 2:31 am #260824In reply to: How to Turn Off Email Notifications for All Users
Red Sand Media Group
ParticipantHey @danbp
I just thought I’d jump in here real quick, as I think this will be beneficial to everyone in the thread including @Tranny.
And even if you would be a genius coder creator of an extra super original spam shield, you could be sure to became target #1 of all spammers, because in this case, you would represent the absolute challenger of all code breakers !
We are that “genius coder creator of an extra super original spam shield” that you speak of. 🙂
There is no miraculous plugin or trick to stop them.
Ahh, but there is.
It’s real, and it’s even called WP-SpamShield. LOL…you can’t make this stuff up. 🙂
Check it out on WPorg. It’s been out for about two and a half years, and is forked from another plugin we developed almost a decade ago. It works perfectly and automatically on BuddyPress, bbPress, and pretty much everything else. You can also feel free to check out the plugin documentation here.
…And for the record, we definitely are a huge target of spammers. 🙂
dealing with spammers is a long run work, to not say a never ending work.
True story!
– Scott
November 7, 2016 at 2:56 pm #260816MatrixMedia
Participantto exclude some categories I have tried this:
function exclude_category_slugs_from_activity_stream( $new_status, $old_status, $post ) { // Only record published posts if ( 'publish' !== $new_status ) { return; } // Don't record edits (publish -> publish) if ( 'publish' === $old_status ) { return; } // add in any categories to exclue from activity stream, separated by commas, no spaces $category_slugs_to_exclude = "news,new,News,service,Service"; // create the array that contains the category ids to exclude $ids_to_exclude = array(); // create new array by splitting category slugs by comma $category_slug_array = split( ",", $category_slugs_to_exclude ); // iterate over category_slug_array foreach ( $category_slug_array as $category ) { // get the category id based on the slug $idObj = get_category_by_slug( $category ); $id = $idObj->term_id; // push the category id onto the exclude array array_push ( $ids_to_exclude, $id ); } // get the post's categories $categories = get_the_category( $post->ID ); $in = false; // check if the post has any categories, do nothing if not if( count($categories) > 0 ) { // iterate over categories foreach ( $categories as $category ) { // check if any excluded category exists within post's categories if( in_array( $category->cat_ID, $ids_to_exclude) ) $in = true; } } // Don't record posts from filtered categories if( $in ) return; return bp_activity_post_type_publish( $post->ID, $post ); } add_action( 'bp_init', 'bp_blogs_catch_filtered_published_post' ); function bp_blogs_catch_filtered_published_post() { if ( bp_is_active( 'blogs' ) ) { remove_action( 'transition_post_status', 'bp_activity_catch_transition_post_type_status', 10 ); add_action( 'transition_post_status', 'exclude_category_slugs_from_activity_stream', 10, 3 ); } }I found here: https://premium.wpmudev.org/forums/topic/exclude-auto-blog-posts-from-buddypress-activity-stream
of course I changed the deprecated functions:
bp_blogs_record_post -> bp_activity_post_type_publish
bp_blogs_catch_transition_post_status -> bp_activity_catch_transition_post_type_statusbut nothing … not working … HELP!!!
November 7, 2016 at 8:36 am #260809In reply to: Mutual Friends Online status Display
Henry Wright
ModeratorGreat plugin; but the online status only display on the blog site
Thanks! As I mentioned it’s a WordPress plugin so you will need to adapt it for use with BuddyPress. It shouldn’t be too difficult to do because BuddyPress members and WordPress users are the same.
November 7, 2016 at 8:31 am #260808danbp
ParticipantHI,
BP use the same pagination system as WordPress. Here a tutorial to get this to work for WP
And here a list of “pagination” related functions:
http://hookr.io/plugins/buddypress/#index=a&search=paginationNovember 7, 2016 at 8:03 am #260806In reply to: MyCred not working with buddypress
danbp
ParticipantHi,
you have to try with a twenty theme, to ensure that it is not the theme who generate an issue.
And if it still occurs, you have to ask for help on mycred support. We can’t help you much with third party plugin or themes “who need BuddyPress”.In this particular case, is your theme updated for BP 2.7 ?
Check first yourself and ask evtl. on the theme supportNovember 7, 2016 at 7:11 am #260805In reply to: Mutual Friends Online status Display
swiftblack
ParticipantGreat plugin; but the online status only display on the blog site… but what i want, is to have have it displayed on both blog and buddypress or better still buddypress only….
Thanks for your help …really appreciated …
Hope you can share more ideas @henrywright
November 7, 2016 at 5:41 am #260802In reply to: Localized time stamp broken with 2.7 update
r-a-y
Keymaster@adjunkten – The
defer%20onloadis a sign that you might be using a plugin to do something to all WordPress javascript enqueued files.Because if you remove the
deferline, the JS file is valid:
http://historielaerer.dk/wp-content/plugins/buddypress/bp-core/js/vendor/moment-js/locale/da.min.jsAre you using such a plugin? If so, disable it and see if that fixes your problem.
November 6, 2016 at 11:52 pm #260797In reply to: Mutual Friends Online status Display
Henry Wright
ModeratorHi @swiftblack
Take a look at my plugin Here: https://github.com/henrywright/here
I use the WordPress Transients API to output a user’s online status. You could easily adapt it for use with BuddyPress.
November 6, 2016 at 4:28 pm #260777In reply to: Admin approval for profile changes
jowaltham
ParticipantThanks for the tips @danbp this is what I produced:
https://github.com/calliaweb/Moderate-Buddypress-xProfile-Changes/
November 6, 2016 at 4:25 pm #260776In reply to: Enforce field visibility except for admin
jowaltham
ParticipantThank you Henry, I’ve changed that.
I’ve put my full code on github
https://github.com/calliaweb/Moderate-Buddypress-xProfile-Changes/
but I’ll start another thread here asking for feedback on that.November 6, 2016 at 9:32 am #260771In reply to: Localized time stamp broken with 2.7 update
Lars Henriksen
ParticipantI noticed this message when inspecting css :
http://historielaerer.dk/wp-content/plugins/buddypress/bp-core/js/vendor/moment-js/locale/da.min.js’%20defer%20onload=’?ver=2.7.2
Failed to load resource: the server responded with a status of 404 (Not Found)November 5, 2016 at 4:20 pm #260763In reply to: wordpress.org plugin page link to 404
@mercime
Participant@wasanajones Thank you for the report 🙂 We will be removing that information from our readme.txt https://buddypress.trac.wordpress.org/ticket/7328
November 5, 2016 at 12:59 pm #260758In reply to: Profile Page
Earl_D
ParticipantThe look of your pages including the profile will be determined in large part by the theme you are using. Not sure if the image you referenced is the default buddypress theme with modifications or another WordPress theme. Pretty much any well designed WordPress theme should work but those made compatible with BP work best. You may want to try searching the WP theme directory with Buddypress as a keyword. There are also premium themes designed for BP which create their own look and feel for your site.
Hope that helpsNovember 4, 2016 at 9:51 pm #260742In reply to: Can’t upload media from sitewide activity stream
d6collab
ParticipantOkay, I deactivated every plugin I have, except for BuddyPress and rtMedia. It did not resolve the problem. I can still only upload media from my own activity stream but not from the sitewide activity stream.
I’m at a loss here. I really need to be able to resolve this. I even activated the Twenty Sixteen default theme to make sure it wasn’t a conflict with my theme and no dice.
Why can’t media be uploaded from the sitewide activity stream? Anybody have any ideas?
Please, I’m getting a little desperate here, as I don’t know what else I can do other than deactivate all the other plugins and activate one of the default WordPress themes, which I’ve already done with no resolution. Thanks for any insight you can give!
November 4, 2016 at 6:57 pm #260738In reply to: Can’t upload media from sitewide activity stream
livingflame
ParticipantDisable all plugins except BuddyPress and rtMedia, and try Again.
And, remember update.I try right now from Activity Stream and work nice! So, check very well your Config., etc.
November 4, 2016 at 6:25 pm #260734In reply to: Can’t upload media from sitewide activity stream
livingflame
ParticipantFor upload Media install: rtMedia plugin.
-
AuthorSearch Results