-
Brajesh Singh posted on the forum topic Changing Avatar size sometimes creates Fuzzy Avatars in the group How-To and Troubleshooting: 15 years, 5 months ago
@crashutah
That’s a good point. Incase we want different size for groups and members the only good way is to override the “bp_core_avatar_handle_crop” and may be in extreme case “bp_core_avatar_handle_upload” and that will give you enormous flexibility.
After overriding it, we can filter on “bp_core_fetch_avatar” and that will be all we need. -
Brajesh Singh posted a new activity comment 15 years, 5 months ago
try the following code
http://bpdev.pastebin.com/SC6ysJ3Abtw, you will need to find the $user_id of the admins/owners of the current blog. You may see it in the bp-profile-for-blogs plugin.
Let me know if that helps or not.
-
Brajesh Singh posted on the forum topic Changing Avatar size sometimes creates Fuzzy Avatars in the group How-To and Troubleshooting: 15 years, 5 months ago
well, The very first thing is 1. define the 2 size(bp allows only 3 sizes of avatar at this moment) using the constants BP_AVATAR_(THUMB/FULL/ORIGINAL_MAX)_HEIGHT and BP_AVATAR_(THUMB/FULL/ORIGINAL_MAX)_WIDTH if the original avatar sizes(50×50,150×150,450×450) does not fit your requirement. Then use bp_core_fetch_avatar, it supports the…[Read more]
-
Brajesh Singh posted a new activity comment 15 years, 5 months ago
Do you want these buttons on profile or on blog page? code will be different depending on where you want them. please let me know, I will post the code snippet.
-
Brajesh Singh posted on the forum topic Changing Avatar size sometimes creates Fuzzy Avatars in the group How-To and Troubleshooting: 15 years, 5 months ago
Did you make changes in bp-custom.php using the
define( 'BP_AVATAR_THUMB_WIDTH', 105 )If yes, then It will work perfectly for the newly uploaded avatars after you made the changes, but the avatars which were uploaded before you made change will be distorted. User will need to reupload them.
-
Brajesh Singh posted on the forum topic BuddyPress on Separate Blogs in the group How-To and Troubleshooting: 15 years, 6 months ago
well, since members tab link is a matter of theme, if we hack the url, it will affect other tabs too(say activity/forums etc which i think you don’t want to redirect on main blog), so easy way will be to to edit the header.php and change the lines for member tab link in theme(forum does […]
-
Brajesh Singh posted on the forum topic BuddyPress on Separate Blogs in the group How-To and Troubleshooting: 15 years, 6 months ago
@lightcapturer @mercime It is possible. Try following code in bp-custom.php
add_filter("bp_core_get_user_domain","only_for_root_domain"); function only_for_root_domain($url){ $url_parts=explode("/", $url); //find the username part $username=$url_parts;//the last tocken $root_domain=get_blog_option( BP_ROOT_BLOG, 'home' ); /* If we are using a…[Read more] -
Brajesh Singh posted on the forum topic Approving Blog Posts in the group Creating & Extending: 15 years, 6 months ago
Set the default role for the new users to “contributor”, in that way, any user can add the post but only the admin can publish it.
-
Brajesh Singh posted on the forum topic Welcome to buddypress.org Ninjas in the group buddypress.org Ninjas: 15 years, 6 months ago
if possible,
– Bring back the recent forum posts/topics rss feed like earlier .
It was much convenient than currently subscribing to the site wide activity feed. -
Brajesh Singh joined the group buddypress.org Ninjas 15 years, 6 months ago
-
Brajesh Singh posted on the forum topic Forum rss feed broken in the group Miscellaneous: 15 years, 6 months ago
@gezan
Last time I remember it working was 20th june, after that it completely stopped working. -
Brajesh Singh posted on the forum topic Plugin Authors: Important BuddyPress 1.2.5 News you need to know in the group Creating & Extending: 15 years, 6 months ago
@jeffsayre
Thanks for confirming Jeff. That’s great.
I am looking forward to it as I have a few plugins which I am developing exclusively for 1.3 branch and do not want to break it before even completeing 🙂 -
Brajesh Singh posted a new activity comment 15 years, 6 months ago
The group tag allows almost same thing to do, so I dropped the idea of developing a plugin to categorize the groups. Do you think, a group category will be more useful than group tags and what differences you expect ? just curious and want to understand the use case..
-
Brajesh Singh posted on the forum topic Plugin Authors: Important BuddyPress 1.2.5 News you need to know in the group Creating & Extending: 15 years, 6 months ago
@JJJ
These changes are not committed to trunk(for 1.3). Can you please confirm the changes will be committed to the 1.3 trunk and when -
Brajesh Singh posted on the forum topic Add a Link to Groups Directory Page Menu? in the group How-To and Troubleshooting: 15 years, 7 months ago
Since the tabs are loaded via ajax, you have two options. 1.Write an appropriate filter to send the response via ajax 2. Or just make the group tabs use non ajax loading here is how you do the second Edit the line in your groups/index.php <div class=”item-list-tabs”> and make it <div class=”item-list-tabs no-ajax”> It should […]
-
Brajesh Singh posted on the forum topic How to remove the WP widgets from the dashboard in the group How-To and Troubleshooting: 15 years, 7 months ago
Take a look at this one.
https://codex.wordpress.org/Dashboard_Widgets_APISpecially the section which describes how to remove the widget from dashboard.
You might want to put your code in bp-custom.php/as a plugin so that it affects all the blogs on your network(if you have allowed multiblog) otherwise just putting them in functions.php of your…[Read more] -
Brajesh Singh posted a new activity comment 15 years, 8 months ago
hi Aditya, missed your update. If you still need any help, I will be glad to help 🙂
-
Brajesh Singh posted a new activity comment 15 years, 8 months ago
Thanks. Got a mail late evening yesterday from them. Will be replying to them today and will get back to you too.
Thanks for supporting the view of custom post types for components, that will make bp more usable/manageable, as I think. -
Brajesh Singh posted a new activity comment 15 years, 8 months ago
Today, I am putting a flickr addon online(writing a post, the plugin is ready), It can be used with/without gallery 🙂 and you tube will follow tomorrow/this weekend.
-
Brajesh Singh posted a new activity comment 15 years, 8 months ago
will you mind opening a forum thread and asking a question with your configuration. You are using wordpress/wpmu ?
- Load More
@sbrajesh
Active 14 hours, 43 minutes ago
Absolutely beautiful. I added code from the profile for blogs plugin to determine the user id, you can see it in the first 15 lines of code there now.
http://bpdev.pastebin.com/6HLJ9Mrq
You’re a lifesaver.
When visiting that users blog now I get links for Add/Remove friend, Mention this user, and Send private message.
When I log in as the user…[Read more]
You are most welcome.
add a conditional like if($user_id==$bp->loggedin_user->id)//this is my own blog, do not show the links and then just copy the links for inbox etc, I thi8nk, i will add it in the next release of the plugin too, as It seems a very nice feature 🙂
Thanks.
It turns out I need to display the avatar for the logged in user as well, in the sidebar at a different place on the pages I’m setting up. In this location the avatar for the admin of the current blog must not be displayed, only the logged in user. Do you have a tip for how I may tweak the plugin and widget to do this?
I was wondering, I know these buttons are in the buddybar at the top of the page, but to stay consistent with the theme with buttons below the profile in the sidebar: do you have the code for adding links to these things too?
inbox
groups list page
friends list page
edit profile
I tryed copying those from the profile pages, but it seems like…[Read more]