-
Henry Wright replied to the topic Using Redirect to make single link for buddypress dynamic links in the forum How-to & Troubleshooting 11 years ago
OK cool
Try this:
function my_redirect() {
if ( is_page( 'me' ) && is_user_logged_in() ) {
$user = get_userdata( get_current_user_id() );
bp_core_redirect( home_url() . '/members/' . $user->user_login );
}
}
add_action( 'template_redirect', 'my_redirect' ); -
Henry Wright replied to the topic Using Redirect to make single link for buddypress dynamic links in the forum How-to & Troubleshooting 11 years ago
@chatty24 – I mean, how have you set up
/me/? Is it a page, a post, a member’s username etc? -
Henry Wright replied to the topic Using Redirect to make single link for buddypress dynamic links in the forum How-to & Troubleshooting 11 years ago
Hi @chatty24
Regarding
/me/, what exactly is that? A page? A post? -
Henry Wright replied to the topic Is there a way to show the number of viewers on a website video like youtube has in the forum How-to & Troubleshooting 11 years ago
Hi @lynnham
It’s possible as I’ve done it with audio in the past. The
playevent fires on the<video>element so you could target it like this:$( 'video' ).on( 'play', function( event ) {
// Do your stuff here.
} );ended,playingandpauseevents are also available if you need to use them. -
Henry Wright replied to the topic BuddyPress Users with Tags as Taxonomy in the forum Creating & Extending 11 years ago
Hi @ch1n3s3b0y
Do you mean create a new custom taxonomy called users and then each time a user registers, you want a new term to be created?
If so then check out these resources:
https://codex.wordpress.org/Taxonomies
You’ll need to use
register_taxonomy()to create your new taxonomy (see here)To insert a new term you can use
wp_insert_term()…[Read more] -
Henry Wright replied to the topic BuddyPress Users with Tags as Taxonomy in the forum Creating & Extending 11 years ago
Hi @ch1n3s3b0y
Do you mean create a new custom taxonomy called users and then each time a user registers, you want a new term to be created?
If so then check out these resources:
https://codex.wordpress.org/Taxonomies
You’ll need to use
register_taxonomy()(see here)To insert a new term you can use
wp_insert_term()(see here)When you come…[Read more]
-
Henry Wright replied to the topic BuddyPress Users with Tags as Taxonomy in the forum Creating & Extending 11 years ago
Hi @ch1n3s3b0y
Do you mean create a new custom taxonomy called users. Then each time a user registers, you want a new term to be created?
If so then check out these resources:
https://codex.wordpress.org/Taxonomies
You’ll need to use
register_taxonomy()(see here)To insert a new term you can use
wp_insert_term()(see here)When you come to…[Read more]
-
Henry Wright replied to the topic not activated users – how to create new activation key in the forum How-to & Troubleshooting 11 years ago
Hi @lustek
Regarding your new question, BuddyPress uses
wp_hash()to hash the user’s ID with the result used as the activation key. So for example:$activation_key = wp_hash( $user_id ) -
Henry Wright replied to the topic Determine Profile Template File by Member Type in the forum How-to & Troubleshooting 11 years ago
To my knowledge, this isn’t built in to the current template hierarchy.
Ref:
You could open a ticket on Trac requesting the enhancement (try searching open tickets first to make sure it isn’t already planned).
-
Henry Wright replied to the topic bbpress edit profile in menu in the forum How-to & Troubleshooting 11 years ago
-
Henry Wright replied to the topic Customize BP navigation in the forum How-to & Troubleshooting 11 years ago
Regarding point 6, did you see @danbp‘s help?
https://buddypress.org/support/topic/add-an-item-to-submenu-of-activity/
-
Henry Wright replied to the topic Display filtered overview of members in the forum How-to & Troubleshooting 11 years ago
Regarding the
$wpdbobject, take a look here for more info:https://codex.wordpress.org/Class_Reference/wpdb#Using_the_.24wpdb_Object
-
Henry Wright replied to the topic Friendship Could not be requested in the forum Showcase 11 years ago
Hi @chrsjensen
Try using the Twenty Fifteen theme and deactivate all of your plugins (aside from BuddyPress) to see if the problem goes away
-
Henry Wright replied to the topic Inline CSS in the forum Creating & Extending 11 years ago
Hi @josev
It’s impossible to tell without seeing all of your code for that particular page. The markup you’ve provided should display. There’s most probably something conflicting with it.
-
Henry Wright replied to the topic [Resolved] WP_DEBUG Notice for bp_setup_current_user in the forum Requests & Feedback 11 years ago
current_user_can()useswp_get_current_user(). Looking at the function reference for that function, I noticed “Use the init or any subsequent action to call this function”. Take a look at the Action Reference article for the list of actions run during a typical page request. The action you use will depend on what exactly you’re doing but it looks…[Read more] -
Henry Wright replied to the topic [Resolved] WP_DEBUG Notice for bp_setup_current_user in the forum Requests & Feedback 11 years ago
current_user_can()useswp_get_current_user(). Looking at the function reference for that function, I noticed “Use the init or any subsequent action to call this function”. Take a look at the Action reference for the list of actions run during a typical page request. The action you use will depend on what exactly you’re doing but it looks as…[Read more] -
Henry Wright replied to the topic [Resolved] WP_DEBUG Notice for bp_setup_current_user in the forum Requests & Feedback 11 years ago
current_user_can()useswp_get_current_user(). Looking at the function reference I noticed the note “Use the init or any subsequent action to call this function”. Take a look at the Action reference for the list of actions run during a typical page request. The action you use will depend on what exactly you’re doing but it looks as though the…[Read more] -
Henry Wright replied to the topic [Resolved] WP_DEBUG Notice for bp_setup_current_user in the forum Requests & Feedback 11 years ago
It’s probably worth reporting the issue to Favicon and hopefully the authors will release an update fixing the problem.
Let us know how you get on and if you need any more info, just shout.
-
Henry Wright replied to the topic How to mass delete pending users – 1 million users (I already did phpmyadmin) in the forum How-to & Troubleshooting 11 years ago
Yeah, see here for details of the
wp_signupstable.You may also be interested in these links:
BuddyPress database description
WordPress database description
https://codex.wordpress.org/images/9/97/WP3.8-ERD.png -
Henry Wright replied to the topic [Resolved] WP_DEBUG Notice for bp_setup_current_user in the forum Requests & Feedback 11 years ago
Does the notice appear with all plugins disabled using the Twenty Fifteen theme?
- Load More
@henrywright
Active 1 year, 10 months ago