Forum Replies Created
-
In reply to: Live Notifications
Hi @style960
Email notifications are fired off instantly (unless queued by your mail server). Web notifications (as you’ve noticed) need a page refresh by default. Ajax would need to be put into place in order for them to become ‘live’. You can request this feature over at Trac but there’s no guarantee the functionality will make it into core.
Hope that helps!
In reply to: Where is the option to register?The bar you speak of is created by the theme used here on buddypress.org. If you’re using your own theme, then a bar such as that may or may not appear (depending on your theme). The good news is buddypress.org is now open sourced, so feel free to look at the code to see how it has been done.
Ref: https://buddypress.org/2014/03/open-sourcing-buddypress-org/
In reply to: Change Favorites TextBuddyPress Like might not be what you want but I thought I’d point it out. You can customise the ‘like’ text via the WordPress admin area.
In reply to: Where is the option to register?1. The registration form is usually at somewhere like example.com/register/
2. You can add the following to your theme’s functions.php file should you wish to remove the admin bar:
add_filter( 'show_admin_bar', '__return_false' );In reply to: Show charts and tables about usage of BuddyPress.Check out these:
- https://wordpress.org/plugins/buddypress-component-stats/
- https://wordpress.org/plugins/buddypress-member-profile-stats/
Note: I haven’t used them myself, but they look popular.
In reply to: premium theme – font colorDo you have a link to your site?
In reply to: premium theme – font colorHi @matt4444
This is likely due to the theme’s stylesheet. As it’s a premium theme, you should be able to contact the theme author to make them aware of the issue (and hopefully they’ll fix it).
Which plugins are you using? and which theme? This is likely due to some rogue code hooking to a hook which fires on each page load.
In reply to: Starting with a clean install, should i…?Hi @ddt
This isn’t a problem I’ve come across myself. Can you provide some links to where you’ve read about BuddyPress not liking WordPress in its own directory (as opposed to the root dir)?
In reply to: Avatar link broken on woocommerce product pageWhich theme and plugins are you using?
Hi @tolisp
bp_after_has_members_parse_args isn’t a hook I’m aware of. Are you sure it’s a hook?
Edit: I see the hook was added in BP 2.0.
In reply to: Separate Business User- Have you searched the plugin directory?
- This can be done via hooks. It will need some custom code (not much, just a few lines).
- You could hide or show xProfile fields according to role. How exactly roles are created and managed will be dependent on point 1
- Again, to distinguish business users from ‘normal’ users, you’d use the roles created via the plugin you’re using from point 1. The jobs and adverts could each have their own custom post type
- This will need to be custom coded
Hope that helps?
Hi @iburnthings
You can change this:
if ( ! is_super_admin() ) { if ( is_super_admin( bp_displayed_user_id() ) ) { wp_redirect( home_url() ); exit; } }to:
if ( ! is_super_admin() ) { if ( ! user_can( bp_displayed_user_id(), 'edit_posts' ) ) { wp_redirect( home_url() ); exit; } }In reply to: Hide profile page of admin from other users@iburnthings it sure can but how exactly do you mean?
In reply to: Hide profile page of admin from other usersNice @shanebp 🙂
In reply to: Hide profile page of admin from other usersHi @dreamh11,
Try adding this to your theme’s functions.php file:
function hide_admin_profile() { // Bail if this is not a profile. if ( ! bp_is_user_profile() ) return; // This assumes the member ID of the admin user is 1. if ( 1 == bp_displayed_user_id() ) { // We're trying to view the admin's profile so redirect to the homepage. wp_redirect( home_url() ); exit; } } add_action( 'init', 'hide_admin_profile' );In reply to: make only part of the date requiredHi @redknite
Assuming the date is an xProfile field, you could remove that and insert 2 option lists? For example
Option list 1: Month
1
2
3
4
5
…
12Option list 2: Year
1990
1991
1992
..
2014In your case, there’d be no need for a 3rd option list (day of the month) but you could always add that in at a later date?
I’m sure there is a more civilised way of approaching this but that idea came into my head so I thought I’d share.
In reply to: FYI: iOS 8 and changing avatarsRelated, I’m now having trouble with large-file Plupload uploads on Android. Same file uploads fine on desktop
In reply to: Attach files Safari BIG PROBLEM!See this post. There’s a bug in iOS 8 file uploads. I’m not sure if it has been resolved yet.
In reply to: redirect buddypress groups page to forum pageHi @sherry22
You can redirect pages using the
wp_redirect()function. For example:function my_redirect() { if ( bp_is_groups() && ! bp_is_group_forum() ) { wp_redirect( home_url() . '/whichever-page-you-want/' ); exit; } } add_action( 'init', 'my_redirect' );Ref: https://codex.wordpress.org/Function_Reference/wp_redirect
In reply to: wp-admin blank page@giggio I seem to remember something similar coming up recently (a memory issue). Would you happen to be hosting your site at WPEngine? Check out this thread for some discussion.
In reply to: wp-admin blank pageCan you provide some more details about your set up?
In reply to: [Resolved] create a link or redirectHumm, strange! As you can see, code tags seem to be working for me
In reply to: [Resolved] create a link or redirectfunction hello() { // Testing 123... } add_action( 'code_test', 'hello' );In reply to: Buddypress components access to specific roles onlyI’m not aware of a plugin that can do exactly that? Perhaps some of the guys on here know of one?
To do it manually, you could hook a function to
initand work from there. For example:function my_function() { if ( ! is_user_logged_in() && bp_is_current_component( 'messages' ) ) { // Current user is not logged in so don't let them see stuff. In this case, private messages wp_redirect( home_url() ); exit; } $flag = false; // Get current user info. $user = wp_get_current_user(); if ( ! in_array( 'student', $user->roles ) ) { // The current member is not a student. $flag = true; } if ( $flag && bp_is_current_component( 'messages' ) ) { The currently logged-in member is not a student and is trying to view private messaging. Let's redirect them away. wp_redirect( home_url() ); exit; } } add_action( 'init', 'my_function' );From that, you should be able to see how you can achieve what you’re trying to do without the need of a plugin.
Refs: