DeBAAT
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Media Category Management] Open image in lightboxHai nomafo,
Sure it would be possible. However, you would need another plugin to handle the lightbox functionality. You can combine both the lightbox plugin and MCM by having WP_MCM shortcode filter the media you want to show and pass the media ids to the lightbox plugin.
Hope this helps.
Best,
JanHai Xfiveco,
What you ask would be possible. Indeed with an additional functionality to the build-in shortcode. You could also try to find another plugin which shows the media the way you want and use the WP_MCM shortcode to filter the desired media to show.
Hope this helps.
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] Short CodeHai hanifascraps,
Sure it is possible to help you with this new request.
If you send me an email, we can discuss some options.
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] Bulk Upload to a specific category?Hai ebud,
Yes it does.
If you define a default category in the settings page, this category will be automatically added to the newly uploaded media.
As long as you also ticked the box at “Use Default Category”.
Hope this helps.
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] Default category in searchingHai Ivan,
I think it would be possible. This is however new functionality and has to be added separately.
I’ll consider this for a next version.
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] Speed up searchingHai Ivan,
Thanks for the suggestion.
The SQL query indeed looks very complicated and could use some optimisation.
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] default categoy not working?Hai butterflyzdream,
Sorry to hear the plugin is not working as expected.
However, I can’t figure out what is the exact problem.
The default category is only assigned to media that are added after the default is set. It is not used to filter media without any category assigned.
Hope this helps.
Best,
JanHai diegpl,
You can filter the categorized images on the frontend by using the build-in shortcodes.
There is even an option to pass the filtered media ids to another shortcode for further processing.
Hope this helps.
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] Media -> Categories (duplicated)Hai Sorintje,
Sorry to hear my plugin is confusing your use of WordPress.
I thought I only added sensible menu-items.
And looking at the screenshot you provided, it looks like it did. Did you install another plugin before which added a new Category before? It looks that way when looking at the dropdown list with Extra Details.
The selection “MCM Categories” is added by my plugin to add categories for attachments only. The selection “(P) Categories” is indeed shown in the media menu as one of the “Categories” items, the settings indicate this is meant by you as you ticked the box “Use Post taxonomy”.
The other menu item “Categories” however looks to stem from the first entry in the dropdown list called “(.) Categories”. This is the category I suspect to be added by another plugin as is indicated by the “(.)”.
Hope this helps.
Best regards,
JanForum: Plugins
In reply to: [Theme My Login] Filter locked usersHai,
In case you are interested, I’ve tried to implement it myself using the code below.
Hope you can improve this in a next version of this plugin.
Thanks.
Jan<?php // Actions and filters to filter the users add_action('restrict_manage_users', array($this, 'vyn_restrict_manage_users') ); add_filter('users_list_table_query_args', array($this, 'vyn_users_list_table_query_args') ); /** * Filter the list of users for locked users only * * @param string $which Whether this is being invoked above ("top") * or below the table ("bottom"). */ function vyn_restrict_manage_users( $which ) { $id = 'bottom' === $which ? 'new_filter2' : 'new_filter'; // Check whether to filter or not $filter_users = ''; if ( isset( $_REQUEST['new_filter'] ) && $_REQUEST['new_filter'] == 'vyn_locked_user' ) { $filter_users = 'selected="selected"'; } if ( isset( $_REQUEST['new_filter2'] ) && $_REQUEST['new_filter2'] == 'vyn_locked_user' ) { $filter_users = 'selected="selected"'; } ?> </div> <div class="alignleft actions"> <label class="screen-reader-text" for="<?php echo $id ?>"><?php _e( 'Filter user…', 'vyn' ) ?></label> <select name="<?php echo $id ?>" id="<?php echo $id ?>"> <option value=""><?php _e( 'Filter user…', 'vyn' ) ?></option> <option value="vyn_locked_user" <?php echo $filter_users ?>><?php _e( 'Locked users', 'vyn' ) ?></option> </select> <?php submit_button( __( 'Filter', 'vyn' ), 'button', 'vyn_filter_locked', false ); } /** * Filter the list of users for locked users only * */ function vyn_users_list_table_query_args( $query_args ) { // Check whether to filter or not $filter_users = false; if ( isset( $_REQUEST['new_filter'] ) && $_REQUEST['new_filter'] == 'vyn_locked_user' ) { $filter_users = true; } if ( isset( $_REQUEST['new_filter2'] ) && $_REQUEST['new_filter2'] == 'vyn_locked_user' ) { $filter_users = true; } // If filter_users is requested, add query_args to filter if ($filter_users) { if ( empty( $query_args['orderby'] ) ) $query_args['orderby'] = 'ID'; if ( empty( $query_args['order'] ) ) $query_args['order'] = 'ASC'; $query_args['meta_key'] = 'theme_my_login_security'; $query_args['meta_value'] = ';b:1;'; $query_args['meta_compare'] = 'LIKE'; //$query_args['meta_key'] = 'admin_color'; //$query_args['meta_value'] = 'clas'; } return $query_args; }Forum: Reviews
In reply to: [WP Media Category Management] Great. Ajax would help.Hai,
Thanks for the compliments and the feature request. This would definitely speed things up. Hope to find some time to add this feature.
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] Shortcode to return non image media eg. PDFsHai David,
Thanks for this piece of code. Especially the searching functionality is something that is not available (yet?).
The basic WP_MCM shortcode however does already support the PDF (and other) media types. You could define a special category for these types of media. I tested my plugin with some PDF documents and assigned them the category “Documents”. And the post shows the PDF logo’s as intended.
Hope this helps.
Best,
JanHai Alex,
Sorry to hear my plugin doesn’t help.
Unfortunately, I don’t use Divi myself so the information you provide is not sufficient for me to check where things don’t work out.
Can you provide more information like which module you use, what you would expect and maybe some screenshots?
Best,
JanForum: Plugins
In reply to: [WP Media Category Management] how to influence how gallery is displayedHai Roel,
My plugin actually doesn’t format the images in a gallery itself. It uses the default gallery functionality of WordPress. The shortcode does support the option to replace the default gallery with another shortcode to support other gallery plugins.
You could check out the WordPress gallery shortcode via this link:
https://codex.wordpress.org/Gallery_Shortcode
Hope this helps.
Best,
JanForum: Plugins
In reply to: [Participants Database] Date fields not updated using [pdb_record]Ehh, sorry.
Can’t find the button to close this issue.
Can you close it?
Thanks again.
Jan
Sorry again,
It had moved to the column on the left…
Closed now.- This reply was modified 9 years, 8 months ago by DeBAAT. Reason: Found closing button