Forum Replies Created
-
In reply to: Make Custom Notifications?
Bump.
In reply to: Error For People With No Friendship ConnectionsBump.
In reply to: Avatar uploads fail on Buddypress MultisiteThis may also be a problem with your hosting. Make sure to set the correct permissions in your wp-content folder.
In reply to: Error For People With No Friendship ConnectionsHere is the code for the Home Tab:
`
<li class=”selected”>
<a href="activity/friends” title=””>`In reply to: [Resolved] Age Validation – how to do it?@bgrun80 No worries mate, glad I could be of assistance!
In reply to: How To Remove Sub-Reply Button?Worked it out! For those who are interested in how to do this, you need to go to wp-content/plugins/buddypress/bp-activity/bp-activity-templatetags.php and delete this code:
`if ( is_user_logged_in() )
$content .= ‘ · id . ‘” class=”acomment-reply” id=”acomment-reply-‘ . $activities_template->activity->id . ‘”>’ . __( ‘Reply’, ‘buddypress’ ) . ‘‘;`In reply to: URGENT – How To Set Default Values?I am really sorry @boonebgorges I am such a beginner with PhP I wouldn’t know where to begin
In reply to: [Resolved] Age Validation – how to do it?@bgrun80 Hello there Ben. There is a much simpler way of using a Date Of Birth check. A simple plug in called “BP Xtra Signup” will do this for you. The plug in also gives you other fields to be added on the sign up page, for example Agree To Terms & Conditions, Password Strength Meter and Username Availability, to name a few. Definitely should check the plug in out, much simpler than writing codex yourself.
In reply to: URGENT – How To Set Default Values?This is my new activity-loop.php file. This does not break the sub navs like I posted 5 minutes ago:
`
<?php
if ( bp_has_activities( bp_ajax_querystring( ‘activity’ )) ) ?>`
And here is my bp-custom.php file:
`define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );
define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );
define( ‘BP_BLOGS_SLUG’, ‘blogs’ );
define( ‘BP_FORUMS_SLUG’, ‘forums’ );
define( ‘BP_FRIENDS_SLUG’, ‘friends’ );
define( ‘BP_GROUPS_SLUG’, ‘groups’ );
define( ‘BP_MEMBERS_SLUG’, ‘members’ );
define( ‘BP_MESSAGES_SLUG’, ‘messages’ );
define( ‘BP_REGISTER_SLUG’, ‘register’ );
define( ‘BP_SEARCH_SLUG’, ‘search’ );
define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
define( ‘BP_XPROFILE_SLUG’, ‘profile’ );/** wp-content/plugins/bp-custom.php **/
function my_change_activity_default_subnav() {
global $bp;
if (bp_is_my_profile()) {
bp_core_new_nav_default(array( ‘parent_slug’ => $bp->activity->slug, ‘screen_function’ => ‘bp_activity_screen_friends’, ‘subnav_slug’ => $bp->friends->slug));
}
}
add_action( ‘bp_setup_nav’, ‘my_change_activity_default_subnav’ );function my_change_activity_subnav_sequence() {
global $bp;
if (bp_is_my_profile()) {
// flip just-me and friends positions
$bp->bp_options_nav = ’20’;
$bp->bp_options_nav = ’10’;
}
}function bbg_my_friends_activity_default( $qs ) {
if ( is_user_logged_in() && empty( $qs ) && empty( $_POST ) ) {
$qs = ‘scope=friends’;
}return $qs;
}add_filter( ‘bp_ajax_querystring’, ‘bbg_my_friends_activity_default’, 999 );
add_action( ‘bp_activity_setup_nav’, ‘my_change_activity_subnav_sequence’ );`
The site is still functional when I have made the changes you suggested, however when I log in and click on the Activity tab, the Friends (x) box is selected, but the activity shown is from the whole site.
In reply to: URGENT – How To Set Default Values?@boonebgorges Hmmm I tried adding these codes into the files but it broke the other subnavs? Groups (x) and @username mentions only displayed the activity stream for the whole site? They didn’t show Group activity/mentions respectively.
In reply to: URGENT – How To Set Default Values?Second bump, really need this sorted guys! Please

I did this to my website and it works a treat. This applies if you are using the default BP theme, or a child theme. You will need to go to <b>wp-content/plugins/buddypress/bp-themes/bp-default/header.php</b>
At approximately line 47, you will see the opening tags
<div id="header">Look to about line 52, and you will see the code for the home tab. Replace the code with this<li class="selected"> <a href="yoursite.com/activity" title=""></a> </li><b> Remember to add http: // before the yoursite.com/activity, for some reason it doesn’t show when I type the full URL in here.</b>
If you look below that, you should see the code for the activity tab, delete this code. You should now have removed the activity tab from the menu, and the Home tab has now been changed so it directs to the activity stream. Any problems message me.
In reply to: URGENT – How To Set Default Values?Bump.
In reply to: URGENT – How To Set Default Values?I had to change the code to this because it broke the drop down menu filter. Please can you tell me what I need to change? Thanks
`
<?php
function my_query_filter_new ( $query_string ) {
$query_string .= ‘&per_page=10’;
return $query_string; }
add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );
if ( bp_has_activities( bp_ajax_querystring( ‘friends’ )) ) ?>`
In reply to: URGENT – How To Set Default Values?Hmm I tried this, but nothing? I changed `if ( bp_has_activities( bp_ajax_querystring( ‘activity’ )) ) ?>` to `if ( bp_has_activities( bp_ajax_querystring( ‘friends’ )) ) ?>`
Here is the code for the whole of the activity-loop.php file
`
<?php
function my_query_filter_new ( $query_string ) {
$query_string .= ‘&per_page=10’;
return $query_string;
}
add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );
if ( bp_has_activities( bp_ajax_querystring( ‘friends’ )) ) ?>/* Show pagination if JS is not enabled, since the “Load More” link will do nothing */
`
In reply to: URGENT – How To Set Default Values?I tried adding `<li class="selected"` to the tab but it only selects it for CSS purposes, the friends stream does not show?
In reply to: URGENT – How To Set Default Values?Bump.
In reply to: URGENT – How To Set Default Values?In reply to: URGENT – How To Set Default Values?Sorry, just really want to get this sorted before I launch the site
I do not wish to edit the dropdown filter, but I want to set the default activity filter to (Friends (x)) which is to the left of the drop down box.In reply to: URGENT – How To Set Default Values?Anyone? Please??
In reply to: [Resolved] – How to get two separate menusYou can restrict which pages a non-registered member can see, if thats any help? For example I have restricted all the pages for non-members, apart from the registration page, terms and conditions and my blog posts?
In reply to: Remove Sub-Reply Button?@bowromir Thanks for your help, although I tried this and its not working?
In reply to: Activity FiltersAnyone?
In reply to: Tags On Profile Fields@Mikey3D Thank you very much!
In reply to: BuddyPress Admin Bar Gone@mercime Yes I was talking to PCWriter about this issue. The strange thing is, the admin bar displayed once the site was firts set up, and was there for about a week then it went? I used Softaculous on cPanel to install WordPress to my site, then I downloaded the BuddyPress plug in from the WordPress admin. Here is the website in question.
