James Whayman [WildPress]
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Hook for resizing image uploadsJust a quick work-around that I’m using for the moment:
function resize_image_uploads($data) { $field_id = $data->field_id; $field = new BP_XProfile_Field($field_id); if ($field->name === "Cover image") { $upload_dir = wp_upload_dir(); $image_path = $upload_dir['basedir'] . $data->value; if ($size = getimagesize($image_path)) { $image = new Imagick($image_path); $image->resizeImage(400, 200, Imagick::FILTER_LANCZOS, 1); $image->writeImage(); $image->destroy(); } } } add_action('xprofile_data_before_save', __NAMESPACE__ . '\\resize_image_uploads', 15);Forum: Plugins
In reply to: [Better Writing] Bug with Live UpdatesHey Mike,
Just looking into this. It appears the issue is related to the
bwPreferredTermsvariable being null.I have tried adding a preferred term and the plugin works correctly, if no terms are present, the plugin does not work. I believe if
bwPreferredTermswas set to zero, instead of null, the plugin will work if no terms exist but I haven’t verified this.Best,
JamesForum: Plugins
In reply to: [Better Writing] Bug with Live UpdatesHey Mike, I’m having this issue too.
The cursor jumps to the beginning of the post when the readability score is recalculated.
I’m running Chrome (25.0.1364.126) on a Chromebook. I have tried the latest version available on WordPress (1.1). This appears to be the newest build.
Best,
JamesForum: Plugins
In reply to: Meta Box Contexts & Post DataSorted this out, erroneous <form> tag.
Forum: Plugins
In reply to: Styling a Custom Taxonomy Admin PanelThis link has answered my question.