-
Henry Wright replied to the topic How to make my site like Facebook in the forum Creating & Extending 11 years, 4 months ago
-
Henry Wright replied to the topic How to make my site like Facebook in the forum Creating & Extending 11 years, 4 months ago
Great explanation 🙂
Regarding mentions, I’m not seeing how spaces in usernames can work. Say hypothetically my username is Henry Wright (note that’s my username and not my display name). How would you mention me in a public message?
@Henry Wright wouldn’t mention me. It’d mention someone with the username @Henry.
-
Henry Wright replied to the topic How to make my site like Facebook in the forum Creating & Extending 11 years, 4 months ago
Maybe I’m misunderstanding how @-mentions work. The way I see it, if your username is (note the space):
Jane Doe
…and I want to mention you in an update, then I’d write:
@Jane Doe
But, as you can see there is a problem with that. Jane Doe won’t get the notification because somebody with the username @Jane got it instead.
Perhaps @danbp can…[Read more]
-
Henry Wright replied to the topic How to make my site like Facebook in the forum Creating & Extending 11 years, 4 months ago
In the last screenshot, if you take a look under the IP address it reads:
@ Julia BuckleyRegarding the roadmap, 2.1 is due any time soon. See https://buddypress.trac.wordpress.org/roadmap
-
Henry Wright replied to the topic How to make my site like Facebook in the forum Creating & Extending 11 years, 4 months ago
-
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
@shanebp even if I provided some explanation of the priority requirement, I think my edit to change the hook to
wp_enqueue_scriptsmay have introduced confusion to some people not as familiar with the priority param. I think it’s safer all round just to usewp_print_scripts, especially as the hook isn’t being deprecated as first thought. -
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
If you copy and paste this into your theme’s functions.php file, it should work.
function my_dequeue_script() {
if ( bp_is_activity() )
wp_dequeue_script( 'xyz-custom-script' );
}
add_action( 'wp_print_scripts', 'my_dequeue_script', 100 );Your functions.php file will be located at:…[Read more]
-
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
-
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
Probably best if I revert my change! I’ll see to that now…
-
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
Here is the updated code:
function my_dequeue_script() {
if ( bp_is_activity() )
wp_dequeue_script( 'xyz-custom-script' );
}
add_action( 'wp_enqueue_scripts', 'my_dequeue_script', 100 ); -
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
Done! 🙂
-
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
@hnla good spot. I took the example from the WP Codex article I referenced in my post. Do you want to update or should I?
-
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 11 years, 4 months ago
Hello @albert101
You can use
wp_dequeue_script()to remove an enqueued script. For example:function my_dequeue_script() {
if ( bp_is_activity() )
wp_dequeue_script( 'xyz-custom-script' );
}
add_action( 'wp_print_scripts', 'my_dequeue_script', 100 );Ref:…[Read more]
-
Henry Wright replied to the topic [Resolved] Is possible for members to tag each other in forum posts? in the forum How-to & Troubleshooting 11 years, 4 months ago
Hi @julia_b
To my knowledge there isn’t anything like that available. Try searching the WP Plugin Directory. Else, if you’re good with code, something like this can be accomplished using regular expressions
All of that said, forums questions are better asked over at bbPress. You may have more luck there.
-
Henry Wright replied to the topic [Resolved] I want to redirect all the logged out users to login page in the forum Creating & Extending 11 years, 4 months ago
You can check that with
bp_is_register_page(). Thinking about it, you’ll need logged out users to also have access to the activation page so that they can activate their account. You can usebp_is_activation_page()for that. So, the function becomes:function my_redirecter() {[Read more]
if ( ! is_user_logged_in() && ! bp_is_register_page() && !… -
Henry Wright replied to the topic [Resolved] I want to redirect all the logged out users to login page in the forum Creating & Extending 11 years, 4 months ago
Regarding the redirect, I’m not sure if there is a plugin but you can add this to your theme’s functions.php file:
function my_redirecter() {
if ( ! is_user_logged_in() ) {
wp_redirect( home_url() . '/login/' );
exit();
}
}
add_action( 'init', 'my_redirecter' ); -
Henry Wright replied to the topic [Resolved] Re-install Buddypress Tables in the forum How-to & Troubleshooting 11 years, 4 months ago
If you follow all of the instructions in that article you should get to the point where you can reinstall.
-
Henry Wright replied to the topic [Resolved] Redirect from members page to profile page in the forum How-to & Troubleshooting 11 years, 4 months ago
Hi @bridieamelia,
Try this:
function redirect_members_page() {
if ( bp_is_user_profile() && ! bp_is_my_profile() ) {
$user = get_userdata( get_current_user_id() );
wp_redirect( home_url() . '/members/' . $user->user_login . '/profile/' );
exit;
}
}
add_action( 'template_redirect', 'redirect_members_page'… -
Henry Wright replied to the topic [Resolved] Add tinymce to Activity Post Form in the forum Installing BuddyPress 11 years, 4 months ago
I was going on both my own experience with the editor and the note in the Codex article I referenced above. My own experience wasn’t with the what’s new form so if it’s working for the what’s new form then completely disregard what I said above 🙂
Edit: And you’re right about BuddyPress JavaScript needing the
#whats-newselector. I can see it’s…[Read more] -
Henry Wright replied to the topic [Resolved] Add tinymce to Activity Post Form in the forum Installing BuddyPress 11 years, 4 months ago
- Load More
@henrywright
Active 1 year, 10 months ago