Forum Replies Created
-
Hmm well, I did a search, and that name seems very familiar, but it appears that it’s the same plugin as the one I have installed:
https://wordpress.org/extend/plugins/custom-profile-filters-for-buddypress/
my problem is getting them to be NOT links, unless someone uses the tags
Thanks, I think that was maybe the old name for it??
No body else has this problem?
No problem
All you’ll need to do is create a home.php file within your theme folder (or use one in bp-default) and enter in this code:
<?php
locate_template( array( 'members/index.php' ), true );
?>Then on the Reading Settings, page of your Dashboard, just set it to “Your Latest Posts” (it won’t actually be your latest posts).
I’ve tested and it works, just let me know if you have troubles.
here’s the ticket:
https://trac.buddypress.org/ticket/2089
Yeah, I saw that post, I was really disappointed that they took it out.
Thanks for all the support for this,
Sorry for bumping so often, I usually wait for a while before I would bump something.
I guess I’ll just add this as a ticket, but I would like to see this sooner, rather than later. Definitely the chained selections is a must!
Just wanted to bump this.
Really useful plugin/update!
Thanks, does anyone have any suggestions?
in bp-activity-templatetags.php within the buddypress plugin folder, I found the following ‘scopes’:
if ( 'just-me' == $scope || 'friends' == $scope || 'groups' == $scope || 'favorites' == $scope || 'mentions' == $scope ) {Each of these has a case and it discribes which scope needs to grab each activity feed.
So now all we need to know is how to set a scope within lets say the “activity-loop.php” in your theme folder and then it will grab the “friends” scope and the “friends” activity feed.
I don’t know how or where to call the scope but I’m going to take a wild guess and say that it’s here:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>Within activity-loop.php.
Let me know if this helped, or just confused everyone.
Thanks
Oh okay, I hadn’t seen any posts on this yet.
I’ll keep a watch on yours.
I am using buddypress 1.2 now, but I still can’t seem to find away to fix this.
I just want it to display ALL the users on the site, instead it keeps only displaying the friends of the user you are currently viewing.
I know you’ve solved the problem but I recently used this as a solution, this code removes the Blogs button from both your “My Account” menu in the admin bar, and the Blogs button in your profile navigation.
Put this code in your bp-custom.php file:
function remove_blog_buttons(){
remove_action( 'bp_setup_nav', 'bp_blogs_setup_nav' );
remove_action( 'admin_menu', 'bp_blogs_setup_nav' );
}
add_action('plugins_loaded','remove_blog_buttons');I hope this helps
PERFECT,
I just found the
bp_is_my_profile()But the bp_is_member() is exactly what I needed.
Thanks!
I just need to know how to check if it’s on a user page.
There’s the check to see if a visitor is online, if a user is the admin etc, I’d just like to know what the check is to see if a user is on a profile page.
Any help is greatly appreciated
in your plugins folder (if you don’t already have one created) create a file called bp-custom.php
within that file put:
<?php
function new_search_action() {
global $bp;
return apply_filters( 'new_search_action', $bp->root_domain . '/search' );
}
function custom_adminbar_search() {
$mobSearch = '
<li class="align-right"><form action="' . new_search_action() . '" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" value="" />
<input type="submit" name="search-submit" id="search-submit" value="" />
' . bp_search_form_type_select() . '
' . wp_nonce_field( 'bp_search_form' ) . '
</form></li>
';
echo apply_filters( 'bp_search_form', $mobSearch );
}
add_action('bp_adminbar_menus', 'custom_adminbar_search', 100);
?>This will get your search to the top, and placed on top of your “visit” button. If you get rid of the
class="align-right"in the list tag, then it’ll put it beside the notification button. You’ll notice that things seem a little screwy when you scale the page, so you’ll need to play around with putting a div around it etc etc. But at least this’ll get it up there for you.To remove items from your admin bar:
function modify_adminbar(){
remove_action( 'bp_adminbar_logo', 'bp_adminbar_logo' );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu', 4 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
remove_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 );
}
add_action('plugins_loaded','modify_adminbar',99);This removes ALL of the previous functions, so lets say you want to remove.. the visit button:
function modify_adminbar(){
remove_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 );
}
add_action('plugins_loaded','modify_adminbar',99);And there you go. Hope that helped.
Does anyone have any suggestions?
@osasko: Glad I could help
@Peterversooijen: It’s really no problem, I wouldn’t have been able to do this at all with the code you provided. That’s what I like about buddypress, there’s no secrets, it’s just everyone helping everyone.
I’m sure there are some better ways to do this, but like you said, it works for me for now.
If I can find the other simpler php version I’ll post it here, or if anyone else does that’d be great.
Ahh, okay, I hadn’t heard of the feature yet.
Maybe there’ll be a better solution somewhere.
Does anyone know how to implement this into the profile fields on buddypress?
The member directory alphabetizes by the ”Name” field, which is a mandatory profile field defaulted by buddypress. So the only place that the username is really displayed and used is in the url.
With the email login plugin, yes it becomes their login, however because they have already been created, their urls will still be their username, and they can still log in with their usernames.
So they can log in with both email and their old username.
I posted the full solution here:
https://buddypress.org/forums/topic/email-login-randomized-user-urls-solution
Email Login & Randomized User URLs
check out the following link for the solution:
https://buddypress.org/forums/topic/email-login-randomized-user-urls-solution
When a user goes to register, they get to type in an email and a password.
Their ‘username’ field is hidden.
The code will randomly generate a URL for the person like below:
mem12345abcdefghijklmnopqrst
so their URL would be
http://www.yoursite.com/members/mem12345abcdefghijklmnopqrst
Freeing up the good names like John and Smith to be created manually by an administrator.