Matthew Haines-Young
Forum Replies Created
-
Forum: Plugins
In reply to: [MinQueue] cache fix after folder changeIf you clear the cache from the admin does it regenerate the correct files?
Forum: Plugins
In reply to: [MinQueue] Advanced config fileMy apologies – it was added here: https://github.com/mattheu/MinQueue/commit/a0adccdc5c93643695a71110faafd0fd2af8ceb0 and is available in the lastest code from github but I haven’t yet released a new version on www.remarpro.com since then.
Forum: Plugins
In reply to: [MinQueue] Advanced config fileThere is a function
minqueue_get_options
that is filterable using theminqueue_options
filterForum: Plugins
In reply to: [MinQueue] Advanced config fileThanks @floq-design. I’ll make sure I update the readme to reflect this.
Can you confirm the version of the plugin and which version of WordPress you are using and I’ll look into the issue further.
Forum: Plugins
In reply to: [MinQueue] Compatibility for WPEngine and environments without exec()The plugins uses this PHP library to handle the compression: https://github.com/mrclay/minify
You’re correct to point out that this uses exec to run the java based compressor. This is not ideal – i’ll have a look at doing this a different way.
Forum: Plugins
In reply to: [MinQueue] Advanced config fileYou have 2 options…
1 – you can filter the settings using the filter ‘minqueue_options’
2 – You can define the settings as ‘MINQUEUE_OPTIONS’.MinQueue expecta an array of options = and here are the available keys:
helper
– bool – whether the helper is shown/hidden. Default false
cache_dir
– string – the name of the cache directory. Default ‘minqueue_cache’
scripts_method
– string – ‘enabled’ or ‘disabled’
styles_method
– string – ‘enabled’ or ‘disabled’,
scripts_manual
– array – array minify groups. Each group should be an array of script handles.
styles_manual
– array – array minify groups. Each group should be an array of style handles.Note that as you define a constant as an array. If you wish to do it this way, the data needs to be serialized first.
Forum: Plugins
In reply to: [MinQueue] minqueue looses queued file lists when deactivatedThe plugin removes the settings when deactivating. However this isn’t the first time this issue has been raised – so I’ll probably change this in the next release.
Thanks for your feedback.
Forum: Plugins
In reply to: [Ooyala] Uploading videos fails.Just in case the screenshot link breaks in future – here is the code:
// api_proxy.php Line 4
$options = get_option( 'ooyala' );
if ( empty( $ooyala['api_key'] ) || empty( $ooyala['api_secret'] ) )
die();
Note $options != $ooyala.
- You pass an array of options when creating the radio buttons.
- The array key of the selected option is saved in meta. In my example this is just the index but you could set a string for the color if you want.
- You can then use this how you wish in your output. I would probably use the stored value to output a different class. Something like this:
$featurette_list .= "\t<div class='row featurette-wrap featurette-style-' . $featurette['field-2'] . '>";
and then style it in CSS
.featurette-style-1 { background: red; } .featurette-style-2 { background: blue; } .featurette-style-3 { background: red; }
I’m not sure exactly what you are trying to do, but you should be able to use the checkbox and radio fields in a simlar way to any of the other fields.
If I had a group of fields for example, I could add a radio field to that group with color options that I could then use when displaying the group. see code for an example.
$meta_boxes[] = array( 'title' => 'Test', 'pages' => 'post', 'fields' => array( array( 'id' => 'my-group-1', 'name' => 'My Group', 'type' => 'group', 'repeatable' => true, 'fields' => array( array( 'id' => 'field-1', 'name' => 'Text input field', 'type' => 'text' ), array( 'id' => 'field-2', 'name' => 'Field Color', 'type' => 'radio', 'options' => array( 'red', 'green', 'blue' ) ), ) ) ), );
If you wanted to do this with a single field – it would make sense to create a group with your field and color field. Note that you can’t do groups within groups so this could be a limitation.
Forum: Plugins
In reply to: [MinQueue] MinQueue not working – Uncaught TypeErrorThe names are just the handles that were used when enqueuing the scripts.
RE JQuery – if you are adding the handle to the list of scripts, it should be processed. Note that the handle used by jquery that is bundled with WordPress is jquery-core – it also loads jquery-migrate. I usually minify both.
Check the generated file – the handles for scripts that are enqueued in it are displayed at the top of the file in a comment. Is jQuery added here?
Also confirm that there isn’t 2 copies of jQuery being loaded. Sometimes plugins do not always load it correctly.
Forum: Plugins
In reply to: [MinQueue] MinQueue not working – Uncaught TypeErrorHi,
Are you disabling the admin bar on the front end of the site? This is required to use the helper tool – although the actual minification proccess will work fine.
However it shouldn’t cause a JS error. I have made a fix if you get the latest version from github.
Direct link to zip: https://github.com/mattheu/MinQueue/archive/master.zip
Forum: Plugins
In reply to: [MinQueue] MinQueue not working – Uncaught TypeErrorHi.
This sounds like a bug. Where are you seeing this error – in the admin? Also does chrome give you a line number where this error occurred?
Can you also check that you are not loading a custom version of jquery in the admin as this may cause problems.
Hopefully we can get to the bottom of the problem.
Forum: Plugins
In reply to: [MinQueue] minQueue NotificationsThanks! Glad to hear you like the plugin, and its great to hear some feedback.
I will have a think about how to best to handle the helper tool. I find the helper tool really useful, but only during development and I wanted to make sure I didn’t forget to deactivate it again. There was a suggestion of integrating it with the Debug bar