Replies
- Brajesh Singh on August 23, 2015 at 3:20 pm in reply to: [Resolved] "Search in forums" bar returns "Nothing Found" everytimes #175
Have fixed it now. Closing this topic.
Thank you for notifying me about the issue. I appreciate that. - Brajesh Singh on August 23, 2015 at 3:18 pm in reply to: [Resolved] "Search in forums" bar returns "Nothing Found" everytimes #174
Hi Maelga,
Thank you. Noticed that after your post. Will get it fixed today. It seems my recent changes have broken this. - Brajesh Singh on August 23, 2015 at 3:07 pm in reply to: [Resolved] [Site-wide Activity Plugin] Change Widget display #172
Hi Michel,
I have pushed the update on wp.org. It will give you the option to limit content with number of words.If you limit the content, It won’t show any image. All tags are stripped.
Please let me know if that works for you or not?
Thank you
Brajesh - Brajesh Singh on August 22, 2015 at 6:55 pm in reply to: [Resolved] [Site-wide Activity Plugin] Change Widget display #168
Hi Michel,
The CSS needed will only affect the SWA widget. We can specifically target the selectors, so that should not cause any problem. - Brajesh Singh on August 22, 2015 at 12:51 pm in reply to: [Resolved] [Site-wide Activity Plugin] Change Widget display #166
Hi Michel
Thank you for the reply.I went ahead with refactoring the SWA plugin so that we won’t have to worry about it next 2 years anymore.
I will put it anytime today. I am not sure If we need to put a filter for images but I will see. The images can be hidden case by case using css.
Thank you
Brajesh - Brajesh Singh on August 22, 2015 at 12:48 pm in reply to: BP Default Email Notification Settings Control – ETA for new version? #165
Hi Anders,
Just updating. Have been doing some update and we will have this ready for you in next 12 hours or so. - Brajesh Singh on August 21, 2015 at 9:16 pm in reply to: [Resolved] Need to Limit Categories Users Can Post To in BuddyBlog #162
Hi Devin,
1. to set a default category when the user does not choose it
add_action( 'bsfep_post_saved', 'buddydev_add_default_category_to_post' ); function buddydev_add_default_category_to_post( $post_id ) { $tax = array_filter( $_POST['tax_input'] ); if( empty( $tax ) && $post_id ) { //no category was set $term = 32;//ID wp_set_object_terms( $post_id, $term, 'category' ); } }
Change the value of term with the ID of the category you want to assign.
2. To Order the list display, I am sorry but that will need another update for simple front end post. you can download it from the site now. and then, as in my previous replies, I had posted the code for modifying setting, here is updated version of that
function buddyblog_show_custom_cats( $settings ) { $tax = array(); $tax['category'] = array( 'taxonomy' => 'category', 'view_type' => 'dd', 'child_of' => 29, //CHAGE It with the correct ID, 'orderby' => 'slug', 'order' => 'ASC' ); $settings['tax'] = $tax; return $settings; }
Hope that helps.
Please do let me know how it went for you.
- Brajesh Singh on August 21, 2015 at 2:51 pm in reply to: BP Default Email Notification Settings Control – ETA for new version? #158
Hi Anders,
I am sorry but I won’t be able to have the second option included in today’s upgrade. To make that efficient, It will need time to implement. - Brajesh Singh on August 21, 2015 at 2:50 pm in reply to: [Resolved] Need to Limit Categories Users Can Post To in BuddyBlog #157
Hi Devin,
Thank you.
I am glad that it did work 🙂1. That is doable, we will need to use some code to do that
2. Yes, it is doable too. We are using wp_dropdown_categories() which allows us to sort by ID,Name,slug in ascending or descending order. which order you want?
Please let me know and I will put the code 🙂
- Brajesh Singh on August 21, 2015 at 11:43 am in reply to: BP Default Email Notification Settings Control – ETA for new version? #154
Hi Anders,
Thank you. I will have this option today 🙂About the 2nd option, That depends on the size of the community. If there are 1000 users, It is not too much but if there are 100,000 users, then It will take a lot of time as we will have to check the preference for individual users if it is set or not and then update.
If we plan to implement it in future, It will be all about time as PHP scripts have time limit, the update will be like doing it in batches. So, It is not going to consume all resources but take a lot of time for the larger community.