-
4ella replied to the topic [Resolved] Show member recent post in members loop in the forum How-to & Troubleshooting 11 years, 5 months ago
I would like to ask to @henrywright-1
how could I display 1 latest post from different custom post types, I have several CPT posts as a “portfolio”, “applicant”, “employer”. I would like to display 1 latest post from every custom post type (if exists because for example CPT applicant creates user role applicant, so it is not an employer), I…[Read more] -
applegateian replied to the topic [Resolved] Show member recent post in members loop in the forum How-to & Troubleshooting 11 years, 5 months ago
Cool @henrywright-1 that’s got it. I found that showposts query, just wasn’t implementing it correctly. I owe you a pint (or 4).
-
applegateian replied to the topic [Resolved] Show member recent post in members loop in the forum How-to & Troubleshooting 11 years, 5 months ago
@henrywright-1 that works!
I need to show the featured image, and link to the profile, so I added the following, but it’s just pasting the image URL, how do I add img src to that and the link to the post?
<?php
$user_id = bp_get_member_user_id();
$query = new WP_Query( 'author=' . $user_id );if ( $query->have_posts() ) {…[Read more]
-
applegateian replied to the topic Getting the large avatar in the forum Installing BuddyPress 11 years, 5 months ago
You’re right @henrywright-1 – just needed to upload the avatars again and it worked 🙂
-
@mercime replied to the topic testbp.org down in the forum How-to & Troubleshooting 11 years, 5 months ago
@henrywright-1 many reasons. Our fearless Project Leader will mention this in upcoming announcement/s.
-
@mercime replied to the topic testbp.org down in the forum How-to & Troubleshooting 11 years, 5 months ago
@henrywright-1 doors closed for good.
-
applegateian replied to the topic Getting the large avatar in the forum Installing BuddyPress 11 years, 5 months ago
Ah so you think this can’t work as it stands @henrywright-1 ?
-
RiGoRmOrTiS_UK replied to the topic Hide members from Members Directory in the forum How-to & Troubleshooting 11 years, 6 months ago
Hi, Thanks for that.. I’ve just tested the code. It certainly removes members who haven’t logged in for 60 days; however it doesn’t reduce the “member count” on the page; so you end up with empty pages where it says its showing members 80-88 but no-one is listed.
Is there anyway to get the member count to reduce so I don’t have…[Read more]
-
applegateian replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 6 months ago
Unfortunately that is returning blank too @henrywright-1
Thanks
-
RiGoRmOrTiS_UK replied to the topic Hide members from Members Directory in the forum How-to & Troubleshooting 11 years, 6 months ago
@henrywright-1 making a bit of a mess of these replies; I should have actually mentioned its bbpress for the forums 🙂
-
RiGoRmOrTiS_UK replied to the topic Hide members from Members Directory in the forum How-to & Troubleshooting 11 years, 6 months ago
@henrywright-1 apologies it comes with a plug-in so I’m guessing we won’t know what meta data to query for filtering a person out. How about if I set them to “Blocked” under the forum role; would this be something we could filter against for the member’s directory?
Thanks!.
-
RiGoRmOrTiS_UK replied to the topic Hide members from Members Directory in the forum How-to & Troubleshooting 11 years, 6 months ago
forgot to add @henrywright-1 to my post 😉
-
bp-help replied to the topic Help with homepage redirect to Profile Page in the forum How-to & Troubleshooting 11 years, 6 months ago
@henrywright-1
Thanks, I look forward to adding more tips and tricks in the future.
🙂 -
shanebp replied to the topic Hide members from Members Directory in the forum How-to & Troubleshooting 11 years, 6 months ago
That approach is okay, but it’s post query.
Starting in 1.7 there are some pre_query hooks. And I think more in 1.8.
Those hooks are very handy, especially on big sites where performance is an issue.In this context, you would:
Gather all the ids in the stated range
And exclude them from the member query – take a look at the…[Read more] -
Tudmak replied to the topic Changing the avatar size on the Members page in the forum How-to & Troubleshooting 11 years, 6 months ago
What do you mean? I’m not removing anything from members-loop.php…
-
Tudmak replied to the topic Changing the avatar size on the Members page in the forum How-to & Troubleshooting 11 years, 6 months ago
@henrywright-1 @aces Thanks for the answers, but none of those two work… Any other ideas?
-
bp-help replied to the topic How can I get the activity like facebooks? in the forum Installing BuddyPress 11 years, 6 months ago
@henrywright-1
Yes it will display your personal and friends activity only. -
bp-help replied to the topic setting the profile page as main page in the forum Creating & Extending 11 years, 6 months ago
@programer2013
Expanding on @henrywright-1 suggestion you can add the below code to bp-custom.php
It will prohibit logged out visitors from viewing BP Pages and redirect to registration. Upon login it will direct them to their public profile.
[Read more]
define( 'BP_DEFAULT_COMPONENT', 'profile' );
function bp_help_restrict_login_and_redirect_to_profile()… -
ldjautobody replied to the topic Restration Page Re-directs to Homepage in the forum How-to & Troubleshooting 11 years, 6 months ago
Thanks @henrywright-1,
That makes sense too. Actually, it was not set to the homepage, but I WAS logged in already and that’s why it would not take me to registration. I tried logging out and going back to it and if you click on the Registration tab, it does take you to the registration page.
Thanks Henry and everyone for all your help! 🙂
Denise
- Load More
@henrywright-1
Active 9 years, 10 months ago