Forum Replies Created
-
In reply to: Register page password strength and hint
I assume this is what is being used? If so I can just add this password hint but what file do I need to edit?
You shouldn’t edit core files because when you update BuddyPress your changes will be lost. It’s better if you track down the root cause of the problem and try to fix it.
In reply to: Register page password strength and hintWhich theme are you using and have you customised the registration page in any way?
In reply to: how to define 3rd avatar sizeHi @jaremilus,
There’s also the original size which you could use
BP_AVATAR_ORIGINAL_MAX_WIDTHbut aside from that I know of nothing else available.In reply to: Activate bbPress?Hi @wwtuan
Do you have the exact same page (Comunity) assigned to more than one component at Settings > BuddyPress > Pages?
In reply to: Hide forum post content in activity streams?Sure!
See here for where your filter will be applied. Here is documentation on
apply_filters_ref_array()(it’s almost identical toapply_filters()). And you’ll need to use add_filter() to hook your filter function to the hook.If you’re new to filter hooks, try searching for some tutorials, there’s so much info available already. Hope this info helps!
In reply to: Hide forum post content in activity streams?Hi @andrew55
I think
bp_get_activity_content_bodyis a filter you could use for this. You’d need to find out the activity ‘type’ and conditionally filter out the content.In reply to: Calling a post authors activity streamWas my suggestion any use?
Basically, I would like to call the activity stream of an author of a page.
I understood that to mean “Output an activity loop on a WordPress page limited to activity items belonging to the page author”.
If my understanding is wrong, then please let me know.
In reply to: Calling a post authors activity streamHi @urbanfix
Here’s the standard loop taken from here.
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php locate_template( array( 'activity/entry.php' ), true, false ); ?> <?php endwhile; ?> <?php endif; ?>If you scroll down the page and take a look at filtering options, you’ll see
user_id. So your loop will look something like this:$post = get_post( get_the_ID() ); $filter = '&user_id=' . $post->post_author; if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . $filter ) ) : while ( bp_activities() ) : bp_the_activity(); locate_template( array( 'activity/entry.php' ), true, false ); endwhile; endif;Note: I haven’t tested.
Caveat: This must be used within The Loop.
In reply to: Profile PageThis is likely either a CSS or markup issue with your theme. Try sending the theme author a message notifying them of the problem.
In reply to: Can not find link to join or joinYou will need to create the register page via the WP Admin area if you haven’t already got a register page. Call it something like Register, making sure the slug is /register/. You can then access it at example.com/register/
In reply to: New plugin: BuddyPress MuteHey @djsteveb,
Would like to try this out one of my sites.. wondering though, how this comparing to buddy block or whatever it is called? Feature compare?
Check out the first two paragraphs of the README.md for how muting differs from blocking or unfriending.
Also, this would be excellent if it also could “mute” / hide / selected groups from the sidebar widgets and sitewide activity..
In v1.0.0 of the plugin, only muting users is supported. So at the moment, it works just like Twitter.
At some point in the future I might expand functionality to mute group updates, and perhaps even activity types.
also wondering if possible to hide posts from ‘muted users’ from appearing in the sidebar of sidewide posts when an annoying user has a blog with MU setup and stupid posts show up on the sitewide posts widget
Right now just activity items get muted. Muting posts is a great idea; something I’ll have to think about for a future release.
For answers to more of the plugin’s FAQs, see here:
https://wordpress.org/plugins/buddypress-mute/faq/
Hope this info helps 😀
In reply to: Delete AccountIt would be quite a big project to code this. If you’re not comfortable with PHP, have you tried searching the WordPress Plugin Directory?
In reply to: Delete AccountHi @gsupriya
What have you tried so far?
@dwsowash glad to hear you found a solution! 🙂
In reply to: New plugin: BuddyPress MuteHi @disha76,
I replied to your post over on the BuddyPress Mute support forum:
https://wordpress.org/support/topic/mute-button-toggle-not-working-in-presence-of-bp-cover@djpaul yep, it’s on GitHub here:
https://github.com/henrywright/buddypress-muteIn reply to: Notification view is borkedHi @daethian
You might want to let the theme author know and perhaps they can issue a fix that makes the theme compatible with BuddyPress?
In reply to: Help editing BP Column themeHi @daethian
Have you tried asking on the theme’s support forum?
In reply to: BuddyPress Update: Now members page not showingThanks for the report. This will be fixed in the next version. See #6369
In reply to: [Resolved] Redirecting Register linkHi @antipole
This is the kind of thing you’ll want to do. The
my_redirect()function hooks totemplate_redirectsobp_core_redirect()executes at exactly the right time you need it to.You’d put it in your theme’s functions.php file.
function my_redirect() { // Conditions go here. $location = 'http://example.com'; bp_core_redirect( $location ); } add_action( 'template_redirect', 'my_redirect' );Be careful when setting your conditions to avoid seeing the dreaded ‘redirect loop’ error.
Also, the Template Tag Reference will help you. For instance,
bp_is_register_page()will help you determine if the current page is the register page.Hope this info helps.
In reply to: Buddypress not working with my ThemeHi @stsouk
Have you tried contacting the theme author to see if the theme can be made compatible? Perhaps they can issue an official fix if one is known?
You just need to put some validation on the registration form. So, if a user decides to enter a looooooong username, then an error is displayed on screen letting the user know there’s a max length to that particular field.
In reply to: Setting User Role During Custom RegistrationYes, sorry I didn’t see your latest post.
Great to see you got it working! 😀
In reply to: Setting User Role During Custom RegistrationThe user was registered as a contributor even though it should have been an expert.
This shows that
$_POST['user_type']is either a) not set or b) set to something that isn’t ‘expert’. This shows, your problem isn’t with yourswitchstatement, or yourwp_update_user()function; instead, the problem is with your$_POSTdata. You’ll need to investigate how you’re capturing data from your form.In reply to: Performance of css StylesheetsYou can dequeue style sheets with
wp_dequeue_style(). You just need to find the handle used when the style sheet you want to remove is enqueued. Something like this:$handle = 'something-here'; wp_dequeue_style( $handle );You probably know that though but I thought I’d post in case anyone else might be wondering how it’s done.