Forum Replies Created
-
Gah! Forgot about that. Should be done now. Thanks!
@r-a-y: Amazing! Thanks!
bump

Just posting so I don’t lose this thread

@nahummadrid: but users can still flip through the blogs directory, correct?
ETA: can you link me to the page you have this running on so that I might see the pagination wonkiness in action?
bump?
@djpaul: how so? I thought the count for “All Blogs” in the menu bar would just be off however many blogs you hid (which doesn’t bug me since it’s only 2 in my case)?
@hkcharlie: does that affect people viewing it at all? I needed to hide my main site and the search blog that was created from using the Sitewide Tags search plugin, so I’d need everyone to have easy access to those.
ping @sospetto
PSSST! Lookie what I found!!
Worked flawlessly for me

Thanks! I’ll try that

And no, not a plugin, I just edited the Buddypress .po file to change the wording.
ETA: GAHH!! That worked! Thank you so much! Figures it would be a simple CSS thing. I just hadn’t been able to get the syntax quite right

Also, I tried to do display:none; for #bp-adminbar-authors-menu in the CSS file of my child theme, but that didn’t seem to do anything. I would like to just do away with that entire “li” for blog ID# 12, though.
(it’s actually 14, I was mistaken when I started this thread, but I’m still calling it #12 for continuity’s sake)
OK, I found this in bp-core-adminbar.php. Say I wanted to get rid of the text “Blog Authors”, but only for blog ID# 12:
// **** “Blog Authors” Menu (visible when not logged in) ********
function bp_adminbar_authors_menu() {
global $bp, $current_blog, $wpdb;if ( $current_blog->blog_id == BP_ROOT_BLOG || !function_exists( ‘bp_blogs_install’ ) )
return false;$blog_prefix = $wpdb->get_blog_prefix( $current_blog->id );
$authors = $wpdb->get_results( “SELECT user_id, user_login, user_nicename, display_name, user_email, meta_value as caps FROM $wpdb->users u, $wpdb->usermeta um WHERE u.ID = um.user_id AND meta_key = ‘{$blog_prefix}capabilities’ ORDER BY um.user_id” );if ( !empty( $authors ) ) {
/* This is a blog, render a menu with links to all authors */
echo ‘- ‘;
_e(‘Blog Authors’, ‘buddypress’);
echo ‘‘;echo ‘
- ‘;
- ‘;
echo ‘user_id, $author->user_nicename, $author->user_login ) . ‘”>’;
echo bp_core_fetch_avatar( array( ‘item_id’ => $author->user_id, ’email’ => $author->user_email, ‘width’ => 15, ‘height’ => 15 ) ) ;
echo ‘ ‘ . $author->display_name . ‘‘;
echo ‘‘;
echo ‘
foreach( (array)$authors as $author ) {
$caps = maybe_unserialize( $author->caps );
if ( isset( $caps ) || isset( $caps ) ) continue;echo ‘
‘;
}
echo ‘‘;
echo ‘‘;
}
}@sbrajesh: Eeek! I have no idea what plugin would do that! I certainly don’t remember installing one with that as my goal!
I did edit the .po file to change all instances of “blog” to “shop”, so all but the display terminology should be the same as the “blog owners” link that is in the default Buddypress install

@sbrajesh: On the following site, I want to get rid of the text “Shop Owners” (and the downward arrow, of course) in the BP admin bar so that it looks exactly like my main site’s bar
http://www.clothunderground.com/search/
As you can see, using the code you posted did cause the “Shop Owners” menu to not drop down and show the name/avatar of the site owner of this particular blog, but it didn’t get rid of the “Shop Owners” text in the admin bar itself.
@sbrajesh: Wait!You’re correct! It DOES seem to have removed the stuff that drops down from the “Blog Owners” menu (the name and avatar of the owner of blog 12), but I need the actual “Blog Owners” text removed from the admin bar completely.
@sbrajesh, thanks so much for the reply! Unfortunately, that didn’t work in either file

Well poop. And for the record, I just tried setting one of my child sites privacy settings to the block search engines option, and it still shows up on my blogs directory page

No can do. It’s my main site that I’d like to not display in the directory, but I still need it to be seen by Google, etc.
Is there no “exclude” type thing that I could put into a template tag on blogs-loop.php?
Aha! Thanks

bump! Share the plugin? Pretty please?
I don’t know, but I need this bad. Anyone know how to exclude certain blogs from being listed on the directory page?
@elizawhat: nope, I don’t have that o.0
I’m using eShop on http://www.clothunderground.com
@elizawhat, what do you mean by “tighten up security”? I’m using the default BP theme (well, with a child theme), and wasn’t aware that anything needed to be added to it when using with 3.0 for security purposes!
@queertoday: do you need members to be able to maintain their own, separate blog sites, or do you just want them to be able to publish posts on the main site’s blog? If they need their OWN blogs, you’ll need to set your WordPress installation to Multisite mode:
- ‘;