Replies
- Brajesh Singh on September 8, 2015 at 7:25 pm in reply to: [Resolved] Warning Notices, etc. With Facebook-like Activity Stream #408
Hi Kip,
My apologies for the inconvenience.
As I see these notices are generated by BuddyPress core files, but the fb like user activity might have triggered that. Please allow me 30 mins to check and get back to you.Thank you
Brajesh Hi Milo,
That is not another pick. I have used a 20px(min-height) bottom area which is used by MediaPress addons to show views/rating etc.It has a different color #111 so that looks like a different image. Can you please suggest some improvement there?
PS: Deleting and re uploading is fine for upgrade for now until we get the stable version.
- Brajesh Singh on September 7, 2015 at 9:26 pm in reply to: BP Default Email Notification Settings Control – ETA for new version? #399
Hi Anders,
Thank you for the reply.I am looking forward to hear from you when the project is back on track. Wish you all the best 🙂
Hi Milo,
thank you.
I just updated the lightbox css/template to make it look facebookish. Black background and getting rid of the border.
Here is the commit.
https://github.com/buddydev/mediapress/commit/5eef7b2e10d598a7d16a1d10b6ef26c0ad69909dAbout Crop:- we do have this built into the MediaPress to allow us resize or hard crop the image. I have set it to crop to make it easier for us to have proper grids. I will enable the admin option in our next update(tomorrow) to give you control of this option.
Checking for the comments as I was logged in as admin while adding the comments.
Hi Eric,
Welcome to BuddyDev.The Cosmic Buddy theme is not compatible with current BuddyPress & WordPress. If you are interested in using it, please let me know. We will need 3-4 days and present you with a revamped version of Cosmic Buddy that will be responsive and cleaner than the previous one.
Thank you
Brajesh- Brajesh Singh on September 6, 2015 at 1:11 pm in reply to: BP Default Email Notification Settings Control – ETA for new version? #384
Hi Anders,
Have you had chance to look at the plugin?I will appreciate your feedback.
Thank you
Brajesh - Brajesh Singh on September 6, 2015 at 1:07 pm in reply to: [Resolved] Custom field in BP Simple Front End Post #383
Hi Maelga,
Thank you for asking.Yes, It supports custom fields. Her is an example of form
$settings = array( 'post_type' => 'post_type', 'post_status' => 'draft',//post status to be saved, draft|publish|pending etc 'comment_status' => 'open', //open/closed 'show_comment_option' => 1,//allow person posting the form to control whether there will be comment or not 'custom_field_title' => '',//Section title for custom fields on edit form 'custom_fields' => array( 'key1' => array( 'type' => 'textbox', //textbox, textarea, radio, checkbox, select, date, hidden 'label' => 'Label for this field ', 'default' => 'default value for this field' ), 'key2' => array( 'type' => 'checkbox', // 'label' => 'Label for this field ', 'default' => 'default value for this field', 'options' => array( array( 'label' => 'Some label', 'value' => 'value' ), array( 'label' => 'Some Other label', 'value' => 'value 2' ), ) ) ), //'upload_count' => 0, 'has_post_thumbnail' => 1, 'current_user_can_post' => true,//true|false attach some callback here to do it at run time 'update_callback' => '',//register your callback function here, It will be called after saving post, provided the post id ); bp_new_simple_blog_post_form( 'your-unique-form-name', $settings );
As you see ‘custom_fields’ is a multi dimensional array.
I will just explain that section.
The custom_fields is an associative array of arrays where ‘key’ is used as the post meta key and the value array is used for displaying the custom field.
For example:-
$custom_fields = array( //key1 is stored as post meta key 'key1' => array( 'type' => 'textbox', //textbox, textarea, radio, checkbox, select, date, hidden 'label' => 'Label for this field ', 'default' => 'default value for this field' ), );
In the above snippet, we are registering a single custom field of type ‘text’. The value provided here will be stored in the post meta with meta key =’key1′.
For the textbox, textarea, date, hidden fields you can register those as other entries as shown above.
It gets complicated when we need to deal with ‘selectbox’, ‘checkbox’ and ‘radio’ fields. Fo these fields, we need to provide another field in the value array with key ‘options’.
This ‘options’ field is an array of arrays and contains each of the radio/checkbox/selectbox item as key, label array.
Hope that helps.
Hi Milo,
Just wanted to notify that we got this in in the last commithttps://github.com/buddydev/mediapress/commit/60b7e4ed733affead91e648533feaf58d42f9613
- Brajesh Singh on September 5, 2015 at 6:33 pm in reply to: [Resolved] Setting Privacy in MediaPress #379
Hi Milo,
Thank you and welcome to the Premium Club.
I have sent you a Pm with my email. Let us get in touch.Marking this topic as resolved.
Thank you
Brajesh - Brajesh Singh on September 5, 2015 at 8:14 am in reply to: [Resolved] Setting Privacy in MediaPress #376
Hi Milo,
I have fixed it.
I went slightly different path.When a media is uploaded to Wall gallery, we check if the status of wall gallery is valid. If it is valid, we let the media upload. If the status is invalid( caused by unchecking etc), we set the current default status as wall gallery status and allow media to be uploaded. That fixes our issue.
Here is reference to the fix
https://github.com/buddydev/mediapress/commit/21e9782c3623b486f5865b16704c7baa2cd8b192Thank you
Brajesh