Forum Replies Created
-
Thanks for that!
I just deleted the bp-mobile plugin due to technical problems and I’m back with just a single menu now..? (primary) seems like bp-mobile creates a secondary theme location. I guess I could just use the plugin to create the secondary location / menu and choose my custom logged-out menu from the drop down right?
`<?php
remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_thisblog_menu’, 6 );
?>`
didn’t work for me for some reason..? I thought it might be clashing with the dashboard commander plugin so tried de-activating that plugin to no avail

tried as suggested in a bp-custom.php in my bp-default child theme
many thanks @aces !!
respect man
I haven’t tried it yet as I wanted to see if there was an alternative way of backing up just the file/s I am working on, in the past, I’ve encountered site breaks during custom, and have developed a bad habit of doing full cpanel backups following these breaks. This has led to me losing several new member registrations on my site.
Is there an alternative method I can adopt – i.e. doing a copy of file first and saving it to a backup folder for instance, so that if something goes wrong I can just replace the file instead of restoring the whole public_html directory?
excuse my lack of back-ticks, it’s been a while..I’m a bit rusty lol
so to clarify: in my header.php (child theme) replace..
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘bp_dtheme_main_nav’ ) );
with:
<?php
if ( is_user_logged_in() ) {
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ” ) );
} else {
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘secondary-menu’, ‘fallback_cb’ => false,
}
?>I’ve just checked my header.php and it appears to be worded slightly differently actually..? for example:
false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘bp_dtheme_main_nav’ ) ); ?>
the mobile menu is just for the mobile version of the site via the buddypress mobile plugin
I don’t want the mobile menu being ‘hidden’ from logged-out mobile users really, mainly desktop users.I’ve put some mods in the activity-loop etc for keeping activity updates, profiles and members, groups, and forum directories ‘garden-walled’ as such so may have that angle covered?
@aces just had a thought! instead of calling up the ‘secondary-menu’ would it be possible to void out / null the request to fallback on no menu at all..?
i.e. – => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘no-menu’, ‘fallback_cb’ => ” ) );
or – => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘//’, ‘fallback_cb’ => ” ) );
sounds like a plugin conflict?
have you tried de-activating your plugins one by one to see if one of them is causing the problem?
single menu..?
I really think I gotta create the third theme location first, because the fall-back call will end up showing logged-out visitors my mobile menu which is a duplicate of the primary location so in theory my menu tabs will still be on display
just realized I’ll have to make up a third theme location to pull this one off
when does the editing ever end lolgood point !
can’t afford any more site breaks on a flourishing communityI take it my initial plan A is not worth pursuing then?
It does address both menus specifically speaking..
customized bp-columns? sounds interesting !
does the fact that I have the secondary navigation as the mobile version of the site make any difference? just got this gut feeling that this may just fail unless I call the secondary the logged-out-menu as my theme at present only supports 2 menus.
ok gonna give it a try (fingers crossed)
I’ll pop it in my child themes header.php (bp default 1.5.1)
any particular nesting point..?
hi @aces !
thanks for the alternative option
does your post imply that the example I’m trying to use will NOT work then.?
by the way I have 3 menus in place:
primary navigation – logged-in-menu
mobile menu – mobile (buddypress mobile)
logged-out-menu
okay so I’ve done some digging and found – nav-menu.php
copied it to my child themes folder and created two seperate menus in my admin dashboard.I found this code for the menu config: here: https://codex.wordpress.org/Function_Reference/wp_nav_menu
`<?php
if ( is_user_logged_in() ) {
wp_nav_menu( array( ‘theme_location’ => ‘logged-in-menu’ ) );
} else {
wp_nav_menu( array( ‘theme_location’ => ‘logged-out-menu’ ) );
}
?>`
Am I getting warm..?If so, just two questions remain..
a) where in: nav-menu.php do I add the above code..?
b) Does the above code need to be wrapped at all..?
Kind regards in advance

bump also have a receding hair line over this but with the buddypress default template with child theme
help needed please
using bp 1.5 default with child theme, wp 3.2.1
sorry to barge in here, i cant start a new topic hense this post
does anyone know how i can hide my sites menu (activity, members, groups, forum) navbar from un-registered / logged-out members..?
thanks in advance
to reiterate what @VirtualityStudio said, ” people are so used to the way fb works, it would be nice to do that for them “
here here !!!
Don’t get me wrong, BP/WP is a great platform, and we don’t really need millions of fb clones, but the functionality of fb’s activity feeds must surely be an ‘industry standard’ that most sites strive for nowadays.
Buddypress in my opinion was created not only to provide us with the tools to create our own social networks, but also to strive to be more than just a ‘blog orientated’ social engine.
Unfortunately the structure for having the ‘site-wide’ feed pulling in profile feed posts may prove to be counter productive in the long run unless more emphasis is placed on the way these items are controlled. Otherwise everyones personal conversations are the but of all gossip for all and sundry to see, a bit like washing your laundry in public lol
Privacy control too in my humble opinion is ‘up there’ in the priorities list of BP enhancement, I admire the work that contributors have put into some of the plugins in the past but they cannot be relied on to keep up BP updates and really need to become a BP standard protocol no? anyway thats another subject

yeh crashed my site too

BP PLEASE CREATE A PLUGIN FOR THIS FUNCTION, IT’S THE HOLY GRAIL OF ALL ACTIVITY MODS!!!
has there been any progress with this? im trying to filter out ‘ALL’ group activity from the site-wide feed so that groups can finally post vids and pics without cluttering the site-wide feed which i need to make specialized for specific posts only.
headz up would be wicked

i think it’s – wp-content/plugins/buddypress/themes/default/activity/post-form.php
theres two lines with what’s new, i changed the the second one down and it worked for me.
bumping this as it took me all of 3 hours just to find a like-minded individual with the same query

i need the same direction! need to filter out group activity stream updates / posts from the site wide activity stream
I need to keep my Group updates/comment activity seperate from the main ‘activity’ stream, is it possible to achieve this with this plugin..?
I started a style.css from scratch, but I was not sure what to put in the Theme URI so just copied the buddypress default and added my child themes name at the end.
I was not sure what to put in the Author URI so again just copied the buddypress default Author URI
hope this helps