-
Henry Wright replied to the topic How to Get a User's Comments In The Activity Stream? in the forum How-to & Troubleshooting 9 years, 4 months ago
Go to Settings > BuddyPress and then under the Components tab make sure Site Tracking is checked.
-
Henry Wright replied to the topic members feature with a relationship 1:n in the forum Creating & Extending 9 years, 4 months ago
You can certainly create new tables but this should be done only if absolutely necessary. Take a look at the Creating Tables with Plugins article for more info.
As to whether this will be a good idea verses utilising the existing activity table, only you can decide. It’ll depend on what exactly you need to do.
-
Henry Wright replied to the topic Problem with blog post image alignment in the forum How-to & Troubleshooting 9 years, 4 months ago
Those are not featured post images, but images that are embedded at the very beginning of posts.
I can see that the problem doesn’t exist when you navigate to the post. The image is nicely floated left and comes before the text in the source. BuddyPress seems to be changing the order of the image and text when it comes to the activity stream…[Read more]
-
Henry Wright replied to the topic Conditional for a users profile page only (users homepage) in the forum How-to & Troubleshooting 9 years, 4 months ago
-
Henry Wright replied to the topic Conditional for a users profile page only (users homepage) in the forum How-to & Troubleshooting 9 years, 4 months ago
So far it appears there is no conditional for it.
In that case you’ll need to use the
&&
operator to exclude the pages you don’t want. -
Henry Wright replied to the topic Conditional for a users profile page only (users homepage) in the forum How-to & Troubleshooting 9 years, 4 months ago
If not, then take a look here. That’s everything that’s currently available that relates to user pages.
-
Henry Wright replied to the topic Conditional for a users profile page only (users homepage) in the forum How-to & Troubleshooting 9 years, 4 months ago
bp_is_user()
might be what you need. It will returntrue
when there is a displayed user. For example, all of the following would returntrue
:example.com/members/user
example.com/members/user/profile
example.com/members/user/friends -
Henry Wright replied to the topic Conditional for a users profile page only (users homepage) in the forum How-to & Troubleshooting 9 years, 4 months ago
bp_is_user()
might be what you need. It will returntrue
when there is a displayed user. For example, all of the following would returntrue
.example.com/members/user
example.com/members/user/profile
example.com/members/user/friends -
Henry Wright replied to the topic Conditional for a users profile page only (users homepage) in the forum How-to & Troubleshooting 9 years, 4 months ago
bp_is_user_profile()
will returntrue
if the current page is a profile page. Does that help? -
Henry Wright replied to the topic Problem with blog post image alignment in the forum How-to & Troubleshooting 9 years, 4 months ago
How are you adding the image to the activity stream? Are you using something like
bp_activity_excerpt_append_text
? -
Henry Wright replied to the topic Problem with blog post image alignment in the forum How-to & Troubleshooting 9 years, 4 months ago
In your source, it seems your images are now appearing after the text. For example:
<p>
[Read more]
Martin is a university professor who has a side consulting business in which he helps Fortune 500 companies comply with diversity laws. Most of his clients seek him out because they are being sued for […]
<img s… -
Henry Wright replied to the topic Problem with blog post image alignment in the forum How-to & Troubleshooting 9 years, 4 months ago
In your source, it seems your images are now appearing after the text. For example:
<p>
[Read more]
Martin is a university professor who has a side consulting business in which he helps Fortune 500 companies comply with diversity laws. Most of his clients seek him out because they are being sued for […]
<img s… -
Henry Wright replied to the topic Conditional PHP for Groups in the forum How-to & Troubleshooting 9 years, 4 months ago
if ( $group_id == '1' ) {
// Do this
} else {
// Do this
}Note: You’ll need to get
$group_id
earlier on in your code. -
Henry Wright replied to the topic Remove "Members" and "Viewing" from Members Page. in the forum How-to & Troubleshooting 9 years, 4 months ago
The Viewing X of X members text can be found inside
bp_get_members_pagination_count()
The best way to customise it is to localise (use a language file). See the Customizing Labels, Messages, and URLs article for more info.
-
Henry Wright replied to the topic Change 'email from' settings ? in the forum Creating & Extending 9 years, 4 months ago
A plugin isn’t strictly necessary, it’s just the easiest option. Alternatively, you can use the wp_mail_from and wp_mail_from_name hooks.
-
Henry Wright replied to the topic Change 'email from' settings ? in the forum Creating & Extending 9 years, 4 months ago
It is actually the default WordPress from email address and name that are used. If you want to change these, try the WP Change Default Email plugin.
-
Henry Wright replied to the topic What file handles registration in the forum How-to & Troubleshooting 9 years, 4 months ago
Is the BP part making sure that username is unique?
Yes. That happens here
-
Henry Wright replied to the topic Problem with blog post image alignment in the forum How-to & Troubleshooting 9 years, 4 months ago
Do you have a link to your site showing a live example?
-
Henry Wright replied to the topic How to Hide Forum Topics and Replies, But Not @Mentions in activity feed in the forum How-to & Troubleshooting 9 years, 4 months ago
Just to make sure I understand correctly, if I were to leave out “bbp_topic_create” it would leave the new topics out of the activity feed, but if one member mentioned another in the toipc, that would still display?
Using @danbp‘s snippet, that’s exactly what will happen.
-
Henry Wright replied to the topic How to Modify Content Before Saving if to DB in the forum How-to & Troubleshooting 9 years, 4 months ago
Is
bp_activity_post_update
an actual hook? I can’t seem to find it in BP. - Load More
@henrywright
Active 8 months, 2 weeks ago