Brilliant! That's working beautifully.
I may be pushing my luck here
but is it possible to have the users' avatar showing rather than gravatar?
Brilliant! That's working beautifully.
I may be pushing my luck here
but is it possible to have the users' avatar showing rather than gravatar?
I have update the plugin to version "1.5 RC-4". In this new version there are filter that can be use to change all the variable that being use.
http://downloads.wordpress.org/plugin/bbpress-latest-discussion.zip
But something make me feel weird. I check BuddyPress source code already, and it seem BP filter all "get_avatar" call to use BP own avatar system. In any case it should work.
But if it still not work, why not try the filter function inside BbLD.
add_filter('bbld_sidebar', gravatar_avatar);
function gravatar_avatar($temp) {
$var = str_replace("%GRAVATAR%", bp_core_get_avatar($user_data['email'], 1), $temp);
return $var;
}
Add this to your mini plugin or your template function.php. But this code is untested.
Hi Atsustane
I tried that, not sure if I am missing your meaning but the gravatars remain with the new files. When I add the bit of code you gave to the theme's function.php or the plugin's BBpress.php it does start to show BP avatars and not gravatar but it only shows the default avatar. So even for users who have uploaded their own avatar it still only shows the default avatar with a url like this for all posts:
/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg
Sorry about that
Like i say it was untested code. Try this instead.
add_filter('bbld_sidebar', gravatar_avatar);
function gravatar_avatar($temp) {
global $user_data;
$var = str_replace("%GRAVATAR%", bp_core_get_avatar($user_data['id'],1), $temp);
return $var;
}
I suggest please use function.php for any modification because if you put inside the plugin file, when update all modification will be gone.
To use the new code above you need a new version of the plugin "1.5 RC-5"
http://downloads.wordpress.org/plugin/bbpress-latest-discussion.zip
That works perfectly
thanks so much for all you help atsutane, its really appreciated!
Hi again Atsustane
I've upgraded my buddypress to 1.1 and they've changed the forum links so now the BbLD sidebar widget links are quit right.
Here is how the links are now in the widget:
http://website.com/groups/group-name/forum/topic/55#post-178
but here is how the links should be in v 1.1:
http://website.com/groups/group-name/forum/topic/the-title-of-the-post/
As you can see its nearly perfect, just needs to have the topic title at the end rather than the topic/post number.
Clicking the link as it is takes readers to the forum index page and not the actual post/topic.
Atsustane, sorry for the extra trouble, is there a way to fix this?
thanks again!
Fix already inside development version. Please test it and report as soon as possible.
http://downloads.wordpress.org/plugin/bbpress-latest-discussion.zip
In theory this should work. Well not really theory, it just i hope i use the right condition to let the permalink choose between version 1.0 and newer one.
Thanks, I tried that but the links remain the same
Ok... thats wierd... I have test it with WordPress MU 2.8.4a + bbPress 1.0.2 + BuddyPress 1.1.1... And it work like charm. Maybe try clearing your browser cache and see how.
And make sure it is version 1.6
You are right, it is working fine, sorry for the confusion, I tried the upload again and it works perfectly. Thanks for the work!!
You must log in to post.