-
Henry Wright replied to the topic [Resolved] Disable @mentions (links) completely in the forum Creating & Extending 11 years, 3 months ago
@doremdou the code @danbp provided should stop @-names being ‘linkified’. The function that ‘linkifies’ @-names begins like this:
function bp_activity_at_name_filter( $content, $activity_id = 0 ) {// Are mentions disabled?
if ( ! bp_activity_do_mentions() ) {
return $content;
}...As you can see, if
bp_activity_do_mentions()returnsfal…[Read more] -
Henry Wright replied to the topic [Resolved] Disable @mentions (links) completely in the forum Creating & Extending 11 years, 3 months ago
@doremdou the code @danbp provided should stop @-names being ‘linkified’. The function that ‘linkifies’ @-names begins like this:
function bp_activity_at_name_filter( $content, $activity_id = 0 ) {// Are mentions disabled?
if ( ! bp_activity_do_mentions() ) {
return $content;
}...As you can see, if
bp_activity_do_mentions()returnsfals…[Read more] -
Henry Wright replied to the topic [Resolved] Disable @mentions (links) completely in the forum Creating & Extending 11 years, 3 months ago
@doremdou the code @danbp provided should stop @-names being ‘linkified’. The function that ‘linkifies’ @-names begins like this:
function bp_activity_at_name_filter( $content, $activity_id = 0 ) {// Are mentions disabled?
if ( ! bp_activity_do_mentions() ) {
return $content;
}...As you can see, if
bp_activity_do_mentions()returnsfalse…[Read more] -
Henry Wright replied to the topic [Resolved] Disable @mentions (links) completely in the forum Creating & Extending 11 years, 3 months ago
Hi @doremdou
You can disable @-mentions with the BuddyPress No Mentions plugin.
-
Henry Wright replied to the topic Admin label in buddypress profiles in the forum Creating & Extending 11 years, 3 months ago
See my first post in this thread. That should do it for you.
-
Henry Wright replied to the topic Admin label in buddypress profiles in the forum Creating & Extending 11 years, 3 months ago
See this post.
-
Henry Wright replied to the topic Should I use BuddyPress for this clients request? in the forum Miscellaneous 11 years, 3 months ago
BuddyPress allows you to have:
member profiles
an advanced member search (through the BP Profile Search plugin)
private messagingSo it looks like your requirements are covered. My advice would be to set up a test install and try out all of the features to see if they meet your requirements.
-
Henry Wright replied to the topic Admin label in buddypress profiles in the forum Creating & Extending 11 years, 3 months ago
You’ll need to modify the templates to achieve that.
-
Henry Wright replied to the topic Admin label in buddypress profiles in the forum Creating & Extending 11 years, 3 months ago
I’ve no idea what you might have read but you can accomplish this via hooks. Specifically, the
bp_profile_header_metacould be what you need. Try adding this to your theme’s functions.php file:function my_output_user_role_function() {[Read more]
if ( user_can( bp_get_member_user_id(), 'manage_sites' ) )
echo 'Role: network… -
Henry Wright replied to the topic Admin label in buddypress profiles in the forum Creating & Extending 11 years, 3 months ago
Hi @reinaldudras,
user_can()is the function you need. For example:if ( user_can( bp_get_member_user_id(), 'manage_sites' ) )
echo 'network administrator';Note: Untested. There’s a slightly different method of getting the member’s ID depending on the exact context you need. I suspect
bp_get_member_user_id()will work.Ref:…[Read more]
-
Henry Wright replied to the topic Add Friend Button and WPNONCE problems in the forum How-to & Troubleshooting 11 years, 3 months ago
You would add it to your template for the single member page.
Take a look at the Template Hierarchy article for more info on setting up your BP templates.
-
Henry Wright replied to the topic Add Friend Button and WPNONCE problems in the forum How-to & Troubleshooting 11 years, 3 months ago
Try using
bp_add_friend_button()to generate the button’s markup. That should create a valid wpnonce for you. -
Henry Wright replied to the topic Add Friend Button and WPNONCE problems in the forum How-to & Troubleshooting 11 years, 3 months ago
Try using
bp_add_friend_button()to generate the button’s markup. That should create a valid wpnonce for you. -
Henry Wright replied to the topic Add Friend Button and WPNONCE problems in the forum How-to & Troubleshooting 11 years, 3 months ago
I can see you’re passing the wpnonce via
?_wpnonce=846748ee21but how are you generating it and how are you verifying it? -
Henry Wright replied to the topic Add Friend Button and WPNONCE problems in the forum How-to & Troubleshooting 11 years, 3 months ago
What’s your button markup?
-
Henry Wright replied to the topic Can WP & BP handle 1000+comments per day? in the forum Creating & Extending 11 years, 3 months ago
Post comments definitely scale. Personally, I’ve not had experience with a site that receives a massive amount of activity comments but as @djpaul points out, these should scale just fine too.
-
Henry Wright replied to the topic Can WP & BP handle 1000+comments per day? in the forum Creating & Extending 11 years, 3 months ago
As @djpaul mentioned earlier, the terminology is important because ‘comments’ can refer to 2 things:
post comments
activity comments.Post comments are handled by WordPress and are stored in the wp_comments database table (see here). Activity comments are handled by BuddyPress and are stored in a custom table created by BP called…[Read more]
-
Henry Wright replied to the topic Can WP & BP handle 1000+comments per day? in the forum Creating & Extending 11 years, 3 months ago
As @djpaul mentioned earlier, the terminology is important because ‘comments’ can refer to 2 things:
post comments
activity comments.Post comments are handled by WordPress and are stored in the wp_comments database table (see here). Activity comments are handled by BuddyPress and are stored in a custom table created by BP (see here).
-
Henry Wright replied to the topic Can WP & BP handle 1000+comments per day? in the forum Creating & Extending 11 years, 3 months ago
As @djpaul mentioned earlier, the terminology is important because ‘comments’ can refer to 2 things:
post comments
activity comments.Post comments are handled by WordPress and are stored in the wp_comments database table. See here. Activity comments are handled by BuddyPress and are stored in a custom table created by BP. See here.
-
Henry Wright replied to the topic Can WP & BP handle 1000+comments per day? in the forum Creating & Extending 11 years, 3 months ago
I’ve found the most important quality you should look for in a hosting company is support. A host that offers good support and is accommodating to your needs is worth a million bucks (my own personal opinion and from experience).
- Load More
@henrywright
Active 1 year, 10 months ago