Replies
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 - Brajesh Singh on September 5, 2015 at 8:12 am in reply to: [Resolved] mpp_register_media_size – image orientation #375
Hi,
Have fixed it here
https://github.com/buddydev/mediapress/commit/557e932ad2abe47450b3f13b128e2d27342b08de
Hope that helps. - Brajesh Singh on September 4, 2015 at 2:11 pm in reply to: [Resolved] Setting Privacy in MediaPress #373
Hi Milo,
I checked it. It is a side effect of the wall gallery being first public and then private.
Here is what is happening:-1. When your default privacy is public and you upload from activity a gallery is created with current default privacy( ‘public’) and set as wall gallery. We stored the id of this gallery in user meta to make it easier for future access.
Now, when you uncheck public, any public gallery will not be visible/available in the front end. Still when you upload, the script is just using that gallery id and moving the media to that public gallery.
Since the gallery is not visible publicly, the single link does not work from activity.
It is certainly a bug. Now, we have 2 ways to handle it:-
1.When uploading from activity, check if a wall gallery exists? If the status of wall gallery is not same as current default status, change the wall gallery status to current default status and move media to this gallery with the current status. Any old media inside the gallery will sustain their old status.
2. Or we check for the current status, if the wall gallery status is not same as the current status, we create a new gallery with current status and set it as wall gallery and move media here.
Which strategy is better? I am inclined towards the first one. Please let me know and I will have it in today’s update.
- Brajesh Singh on September 4, 2015 at 1:53 pm in reply to: [Resolved] Setting Privacy in MediaPress #372
Hi Milo,
I am looking at it right now. Will have an update about it soon.