Forum Replies Created
-
In reply to: “Take Photo” not working on Firefox
I’m getting the same as you, or at least on mine it works better on Chrome than it does on Firefox. I think you should raise a trac ticket for it.
In reply to: “Take Photo” not working on FirefoxYes seems so, looks like I have an issue myself, seems to be either the browser or pc settings.
In reply to: “Take Photo” not working on FirefoxHi there,
Looking around a standard BP install the option to take a photo does not exist, you can only upload a photo. Could that be a theme option?
In reply to: Customize member loopI think you are really talking about new page, one that performs a search of the members profile fields and comes up with matches. If I were you, I’d look at using BP Match Me as a basis for this, or maybe BP Profile Search and then providing my own custom code to automate the search process.
The following change will remove the What’s New area from the Activity page, it will still be visible in Groups and on the users profile activity page.
You will need to set up a childtheme (there’s plenty of plugins that will do this for you).
<?php /** * BuddyPress - Activity Post Form * * @package BuddyPress * @subpackage bp-legacy */ ?> <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form"> <?php /** * Fires before the activity post form. * * @since 1.2.0 */ do_action( 'bp_before_activity_post_form' ); if ( bp_is_my_profile() || bp_is_group() ) : ?> <div id="whats-new-avatar"> <a href="<?php echo bp_loggedin_user_domain(); ?>"> <?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?> </a> </div> <p class="activity-greeting"><?php if ( bp_is_group() ) printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ); else printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) ); ?></p> <div id="whats-new-content"> <div id="whats-new-textarea"> <label for="whats-new" class="bp-screen-reader-text"><?php /* translators: accessibility text */ _e( 'Post what\'s new', 'buddypress' ); ?></label> <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea> </div> <div id="whats-new-options"> <div id="whats-new-submit"> <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php esc_attr_e( 'Post Update', 'buddypress' ); ?>" /> </div> <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?> <div id="whats-new-post-in-box"> <?php _e( 'Post in', 'buddypress' ); ?>: <label for="whats-new-post-in" class="bp-screen-reader-text"><?php /* translators: accessibility text */ _e( 'Post in', 'buddypress' ); ?></label> <select id="whats-new-post-in" name="whats-new-post-in"> <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option> <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0&update_meta_cache=0' ) ) : while ( bp_groups() ) : bp_the_group(); ?> <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option> <?php endwhile; endif; ?> </select> </div> <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" /> <?php elseif ( bp_is_group_activity() ) : ?> <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" /> <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" /> <?php endif; ?> <?php /** * Fires at the end of the activity post form markup. * * @since 1.2.0 */ do_action( 'bp_activity_post_form_options' ); ?> </div><!-- #whats-new-options --> </div><!-- #whats-new-content --> <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?> <?php /** * Fires after the activity post form. * * @since 1.2.0 */ endif; do_action( 'bp_after_activity_post_form' ); ?> </form><!-- #whats-new-form -->Just place this file content in your themes/child-theme/buddypress/activity/post-form.php file. Activity, replacing everything that’s in the current file.
If you want an easier way to manage your template overloads you should look at BP Template Overloader, which will help you keep track. When you overload a theme page, you need to remember that you will have to take responsibility for keeping it up to date since any changes to the master file will no longer be loaded.
In reply to: Remove Profession field in Extended ProfilePresumably you added this, since it’s not part of BP by default. Go to Dashboard>>Users>>Profile Fields and you should be able to delete it there. But make sure you don’t have any plugins relying on it being there. Same place for adding new fields.
In reply to: changing default avatar – codex info not workingYep this looks like it’s broken, I’ve raised a trac ticket for it here.
In reply to: Buddypress Background ImageIs this what you are looking for: https://buddydev.com/plugins/bp-custom-background-for-user-profile/
This blog might help:
https://samelh.com/blog/2017/10/26/add-fields-buddypress-registration-form-profile/
In reply to: turn off online statusThis plugin provides what you are looking for:
In reply to: turn off online statusWhat you could do is add this to your css:
`span.activity {
visibility: hidden;
}In reply to: How to change or remove item nav Group navigationthis might be of interest:
In reply to: How to change or remove item nav Group navigationI think that could be a question for your theme provider, bp does not come with icons, so I’m assuming your theme is already overloading the bp files
In reply to: Forgotten PasswordHi there,
Regarding point 1) This could be to do with the source address that is being used for the emails WordPress is sending. it’s pretty old now but I use CB Change Mail Sender to set an appropriate mail sender address.
Regarding point 2) I suggest this must be down to a plugin conflict or some other problem, as I can’t replicate your issue. have you tried it with just BuddyPress running?
In reply to: Shortcode question [bp_profile_url]and if you put in text=”no” is will return a link with the username as the title
In reply to: Shortcode question [bp_profile_url]Actually I was wrong, if you add text=”Profile Link” into the shortcode it will return as a link.
In reply to: Shortcode question [bp_profile_url]I’ve been looking at that, it seems it’s not possible to use that shortcode and create a link with it from a wordpress post, I tried several ways and none delivered the required result.
I’m trying to contact the plugin developer at the moment as I’ve written some extensions to this, I think creating a short code that returns a link to the user name would be quite simple, I could look at this later and let you know how I get on.
In reply to: Shortcode question [bp_profile_url]Is that a shortcode from the BP Profile Shortcodes plugin?
In reply to: Restrict users seeing other users based on fieldsI think it’s doable, but with quite a bit of customisation. For example in the members loop you would need to overload this file and change it to include a field match check before displaying the members list in order to only display the right members to the user.
In reply to: Default WP Category at Buddypress Activity FilterI’m not sure this is easily possible in that the BP activity feed does not store the post categories, so it can’t by default filter on them. I think you’d have to write some custom code to gather post categories and execute a custom activity loop to search for posts in those categories that have activity.
I’d suggest that there is another plugin that is causing this behaviour, have you tried disabling all other plugins to see if that works?
Have you looked at overloading your BuddyPress pages?
This is the process of getting BuddyPress to load your costomised pages instead of the default pages. For example, the page that loads the “What’s new” section and post form is located in
plugins/buddypress/bp-templates/bp-legacy/buddypress/activity.posts-form.phpIf you copy this file to
themes/your-child-theme/buddypress/activity/posts-loop.phpyou can edit this file and remove the “What’s new” section. You would need to know php to do this.More information on overloading bp templates is located here: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/
A plugin that tries to make the management of your overloads easier is https://wordpress.org/plugins/bp-template-overloader/
In reply to: Autocomplete No Longer WorkingIt’s not definite that this is the cause of the error, but that looks like sourcexpress.js needs to change on line 26. presumably sourcexpress is a third paty add in?
In reply to: Enfold + BudyyPress= Responsive IssuesWhat I’m doing at the moment is running a mobile specific theme, my main wordpress theme just does not scale down right. By running a theme switcher I’m able to have a mobile specific setup that works a lot better overall.
Regarding mobile devices in particular the button styles used in the current BuddyPress template set is not ideal, I’m hoping this will improve with Nouveau. What I do on the mobile side is I tend to place all the main bp options in the main menu, which with my theme works pretty well.
I think you have to be very careful with what features you offer on mobile, the bbPress forums for example don’t work that well, you can get the basic members pages to work, have chat, basic groups with activity feeds but trying to do much else gets very difficult with mobile.
In reply to: Using header coverOK I’ve added the ability to display cover images to the shortcode. I’ve emailed the plugin author to see if they will accept my contribution.
However, that does not give you exactly what you need: A fully formatted copy of that individuals profile header – integrating user name, cover image, avatar etc.
For that I think a much bigger fork in the plugin would be required. However this gives you the components, you could create the layout that you need using css I reckon.