Forum Replies Created
-
looking for this too.
I figured this out, in my case.
If you disable a component and still have the new buddypress menu link for that component in your navigation menu, you’ll get this error. You have to remember to remove it from your menus.
I was working just fine, Multisite, 3.8, and 1.9…and I went to activate Groups component. And I started getting this error message.
Only thing I can think of is that I had Buddypress activated on single mode as opposed to Network activated at the time I enabled Groups.
I activated bp in network mode, but it didnt fix it.
Ok thanks Paul. I’ve been away for a long time. but i’m back playing around with BP…so this was my first shot and introductory support ticket in this awesome new BP site. 🙂 I’ll dig into this further.
…so did this bump-to-top get reintroduced in 1.6.1. It was fine in 1.6, after 1.6.1 I just noticed the edited posts get bumped again.
my opinion. if WP doesn’t bump your posts up your posts loop when you edit a post, why should activity be any different, in default. If you want that functionality for WP, then you create a customization to bump edited posts to top. Same should be true for activity. This shouldn’t be default behavior. If activities get lost in the abyss, that’s just what it is. you need some kind of “retweet button” to bump it back to the top if you want it to refeature it in the stream. Now I need to be the one to customize it to perform standard behavior.
What is the fix I need?
@mercime, I’m pretty sure it’s always been this way, it didn’t bother me before until now that more people login and posts only from their blogs.
I love diamond widgets…the shortcodes are it!
thanks again for the reply. this is the most activity I’ve had on forums in quite some time.

Yea, i don’t have any sites with hundreds of subsites. All subsites are limited to 5-10 subdomains belonging to superadmin where there can be multiple authors. So the blogs directory is really just an index of all admin related sites, not so much user blogs. Do you know of any examples that have 1000s of sites, not wp.com?
Maybe I’ll limit it to just the first 5 -10 subsites in the blogs-loop. Or just have a featured set of recently updated subsites that get the image.
I still like the blog_avatar based on post author, you think that switching and getting author avatars is less taxing than switching and pulling latest_post image with dozens/1000s subsites? @mercime
For author image…
`<?php
global $blogs_template;
global $post;
switch_to_blog($blogs_template->blog->blog_id);?><?php $my_query = new WP_Query('showposts=1&order=DSC');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>post_author ); } ?>
`
mildly exciting i guess. plus i just realized the blogs-loop doesn’t recognize custom post types, bbpress posts on sites.@mercime thanks again. I decided not to go the sitewide forums.
I’ve not gone there in a while either.Anyway here’s what I got so far, anyone welcome to help edit it. I figure If i’m able to get the image, we can also get the latest_post’s real author since blog-avatar doesn’t make much since on sites with multiple authors.
` <?php
global $blogs_template;
global $post;
switch_to_blog($blogs_template->blog->blog_id); ?><?php $my_query = new WP_Query('showposts=1&order=DSC');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?><a href="” rel=”bookmark”>
ID, ‘image’, array(‘class’ => ‘alignleft’)); */ ?>`
I just fashioned this up “quickly” (took me all morning) to show images. I have to figure out how to find the right image as in fallback from a woo_image to a featured image to an inserted content image. So i’ve got my work cut out.
I don’t know how “expensive” this all is as well, so I figure I get something to work first then we can see if it’s worth it or not or if there is a better way to do it.
@mercime thanks for replying…..just read back my poorly written post. yes it has been a while please forgive.
Not the blog’s loop, I meant to say the blogs-loop.php ( the site tracking directory ) for multisite.
I’m wanting to replace the bp_blog_avatar with a post thumbnail belonging to the bp_blog_latest_post.
OK thanks @djpaul — i’ll make a note of it, I can’t believe I’ve only really used the admin quickpress once in 3 years. I tried it in the real world and I got a mini-activity as a result. Not a big deal but just thought I’d make note of it here on the forums too, in case anyone else uses Quickpress and notices it.
anyone get featured image working for activity stream?
Currently, thumbnail is only displaying in the activity item if the image was inserted in the post. If no image is embedded in the post and is instead set as a post’s featured image, the activity item doesn’t display a thumbnail.
It would be great to get activity to check first if there is a featured image set, if no featured image is set, default to first image inserted in a post.
As I mentioned in your other post, I think the score is the better representation of authority than displaying the badges everywhere. Display badges on the user profile and the score beside members names as the authority display you are looking for.
You could set up a “legend” in your side bar to show the levels of authority by score. 1-100 – Novice, 100 – 200 – Intermediate…that would be the easiest way.
Or you could take the score and output the labels, if score is >=100 show label “Certified”. I’ve done this but i really just hacked my way through it, I’ve been really hoping a pro would create a nice add-on to the achievements plugin that does this with the score.
Any ideas why is not working with 1.5.1
Does the plugin work with 1.5?
Instead of using the plugin how could i just exclude one profile field group using the bp-custom hack
function remove_xprofile_links() { if ( !bp_get_profile_field_data('field=Interests')) remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 ); } add_action( 'bp_init', 'remove_xprofile_links' );I tried this..doesn’t work….
is there a way to set the get_avatar size higher than 96?
I have just been using this
post_author) ) : ?> <a href=""> </a>…to get the large avatar photo of the author to show it on the author posts archive template and other places. But recently i’ve been switching some of these to “get_avatar” where thumb sizes are less than 96px.
The only thing is that the large avatar size needed on the author template isn’t best quality when using get_avatar (150px).
So is there a way to define the get_avatar full size to be the same as the bp default full avatar size.
For anyone else I thought I’d share how I ended up getting this “working”
So far it looks like it is working — users blogs must be set as their primary site under their My Site settings.
`add_action( ‘template_redirect’, ‘authorblog_template_redirect’ );
function authorblog_template_redirect()
{
global $wpdb;
$id = get_query_var( ‘author’ );//two lines from bp_adminbar_blogs_menu() in bp-core-adminbar.php
$blogs = get_active_blog_for_user( $id );
if ( is_author() ) {
// get_usernumposts() is deprecated since 3.0
$post_count = count_user_posts( $id );
if ( $post_count >= 0 ) {
//This line could also be wp_redirect
wp_redirect( $blogs->siteurl );
exit;
}
}}
`
by going directly to the /groups/create page url….would be a way that they could access creating a group.
yep there it is in the settings of bp… Restrict page creation to Site Admins? Yes/No — that should do it if you’re running in default mode.
i have other variables to consider when letting users create groups like achievements and roles….so I must have been blinded to that setting….hehe
removing the button from the groups index page alone will not stop your members from being able to create groups…
have you seen this…to limit group creation to admins
If you just want to hide the button…maybe something like
`<?php if (is_user_logged_in() && current_user_can('administrator'))
>
your button stuff
`@chr313 no not any special sitewide search, per se. I just create a page template for searching just activity. something like this more or less.
`
<form name ="form1" method="post" class="profile-search-form" action="/search”>
<input type="Submit" name="Submit1" id="searchsubmit" value="” />`
`
`
basically that in the main body of the search page template. It’s not perfect, and probably not great at all…but it’s as far as I got and it does the job for searching the activity stream. I know when I try leave the page I get a prompt from the browser asking me if I’m sure I want to leave. So if any ideas how this can be improved…i’d love to hear it.
@chr313 cool couldn’t get it working at first, but I modified this
`function highlight($needle, $haystack){
$ind = stripos($haystack, $needle);
$len = strlen($needle);
if($ind !== false){return substr($haystack, 0, $ind) . ‘‘ . substr($haystack, $ind, $len) . ‘‘ . highlight($needle, substr($haystack, $ind + $len));
} else {
return $haystack;
}
}
`
and was able to get it working with 3.2.1 & 1.5One thing though, i’m seeing now…if the keyword is found in thumbnail image url, it breaks the image and link because the highlight is inserted in the url. any ideas.
Ok I’ve submitted a ticket
I can begin to see this abused by members to always have their blog post activity at the top of the stream.
Is there any way to block blog post edits to be bumped to the top of the activity stream!?