-
Brajesh Singh posted on the forum topic Limiting Permissions for Group "Send Invites" in the group How-To and Troubleshooting: 14 years, 6 months ago
put this in your themes functions.php
global $bp;
if(!is_super_admin())
bp_core_remove_subnav_item($bp->groups->id, "send-invites");
That should do it. -
Brajesh Singh posted on the forum topic Categories on a BuddyPress Group Forum in the group Creating & Extending: 14 years, 6 months ago
Thank you Jose and Patrick for the kind words. Since I checked the forum here today and to my surprise found the topic I thought I would clarify. @migraine. no, this plugin does not support categories inside group forum. It rather allows a separate forum(but coupled with BuddyPress), so It is not what you are looking […]
-
Brajesh Singh posted on the forum topic Disable Activity Stream for Profiles? in the group How-To and Troubleshooting: 14 years, 10 months ago
Hi, The reason it is happening perhaps hide_sitewide is not set to 1 for private activity. Most probably a conflict with some plugin as you already mention above. Can you check the database activity table to confirm that ? Have you put the code
define("BP_DEFAULT_COMPONENT", "profile");
In wp-content/plugins/bp-custom.php, It will make the profile… -
Brajesh Singh posted on the forum topic Disable Activity Stream for Profiles? in the group How-To and Troubleshooting: 14 years, 10 months ago
Hi, The private updates on group should not be visible to anyone other than the profile owner. It means something is wrong, you should check other plugins. btw, yes, you can remove the activity section from profile. put the following code in your theme’s functions.php
global $bp; bp_core_remove_nav_item($bp->activity->id);
But this will make the… -
Brajesh Singh posted on the forum topic Who Owns BuddyDev ? in the group How-To and Troubleshooting: 14 years, 11 months ago
@whitbyglennk
I am working on the site at the moment. So you may not be able to register and It will be working fine by today evening.For your issue, Cosmic Buddy does not allows posting to group activity stream.
-
Brajesh Singh posted on the forum topic Youtube embed in profile in the group oEmbed for BuddyPress: 14 years, 12 months ago
@jaisimo,@serafen
For the profile field to show the youtube you do not need any plugin(neither my yt feed, nor the bp oembed), It works just with wordpress 3.0 inbuilt functions if you used above code. -
Brajesh Singh posted on the forum topic Youtube embed in profile in the group oEmbed for BuddyPress: 14 years, 12 months ago
@serafen Well, In that case youcan make sure it parses only one field. Please note, you will need to know the xprofile field id(You can se it by poing to profile field setup->Clicking the edit button of xprofile field and checking the url in the browser bar). here is the modified code `…[Read more]
-
Brajesh Singh posted on the forum topic Allowing registration only for 2 domain email. in the group Miscellaneous: 14 years, 12 months ago
@cells
If you are on single wp, upgrade to wordpress Multisite.
Then you can limit it from Super Admin->Options->Limited Email Registrations -
Brajesh Singh posted on the forum topic Youtube embed in profile in the group oEmbed for BuddyPress: 14 years, 12 months ago
@serafen
Put the following code in your bp-custom.phpadd_filter("bp_get_the_profile_field_value","wp_oembed_get");
This will allow you to insert youtube urls in profile text field(any of them) and will parse it automatically. -
Brajesh Singh joined the group oEmbed for BuddyPress 14 years, 12 months ago
-
Brajesh Singh posted on the forum topic Remove "Blog Owners" From Admin Bar for ONE Blog Only? in the group How-To and Troubleshooting: 15 years, 2 months ago
Ok, here is a css solution.
#wp-admin-bar ul li#bp-adminbar-authors-menu{display:none;}
It will remove that for 100% sure if you put it at the bottom of the child theme css. but I still believe that drop down has something to do with some other plugin, as your bp-core-adminbar.php says it as “Blog Author” while the list says […] -
Brajesh Singh posted on the forum topic Remove "Blog Owners" From Admin Bar for ONE Blog Only? in the group How-To and Troubleshooting: 15 years, 2 months ago
Thanks for pointing to the site. It seems by checking the code, that link is not added by the buddypress but is added by some other plugin. Can you name that plugin, since we need to get rid of an action hook associated with that plugin.
-
Brajesh Singh posted on the forum topic Remove "Blog Owners" From Admin Bar for ONE Blog Only? in the group How-To and Troubleshooting: 15 years, 2 months ago
@justinbishop
I guess I am mistaken somewhere, do you mean the blog authors menu, if yes, then It will remove that “blog author” and the drop down completely. If you meant something else, then I may be mistaken. -
Brajesh Singh posted on the forum topic Remove "Blog Owners" From Admin Bar for ONE Blog Only? in the group How-To and Troubleshooting: 15 years, 2 months ago
Are you sure you made the appropriate change and put the correct blog id in the conditional. I just tested it on my second blog with id 2 and the code in bp-custom.php, It worked. Please make sure to put correct blog id in the “if…” condition. And do not change the priority of remove_action, […]
-
Brajesh Singh posted on the forum topic Remove "Blog Owners" From Admin Bar for ONE Blog Only? in the group How-To and Troubleshooting: 15 years, 2 months ago
Put this code in your bp-custom.php or child theme’s functions.php
add_action("init","bpdev_remove_author_link");
function bpdev_remove_author_link(){
global $current_blog;
if($current_blog->blog_id==12)
remove_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
}
I hope that should do it.
You can change that 12 to any…[Read more] -
Brajesh Singh posted a new activity comment 15 years, 2 months ago
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?
-
-
Brajesh Singh posted on the forum topic remove paragraph markup from around status updates in the activity stream in the group How-To and Troubleshooting: 15 years, 2 months ago
or you can keep in bp-custom.php, if you hook it to init action.
add_action("init","remove_autop_filters_from_activity");
function remove_autop_filters_from_activity(){
remove_filter( 'bp_get_activity_content_body', 'wpautop' );
remove_filter( 'bp_get_activity_content', 'wpautop' );
}
Actually, the remove filter should be called after the…[Read more]
-
Brajesh Singh posted on the forum topic Changing Avatar size sometimes creates Fuzzy Avatars in the group How-To and Troubleshooting: 15 years, 2 months ago
btw, if you are not concerned about the aspect ratio, you can simply pass width and height(I guess you already know about it 🙂 )
-
Brajesh Singh posted on the forum topic Changing Avatar size sometimes creates Fuzzy Avatars in the group How-To and Troubleshooting: 15 years, 2 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, 2 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.
-
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/6HLJ9MrqYou’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 profileI tryed copying those from the profile pages, but it seems like…[Read more]
-
- Load More
@sbrajesh
Active 1 month ago