Yaron Guez
Forum Replies Created
-
Forum: Plugins
In reply to: [User Taxonomies] How to query for users?Interesting approach. Thanks for the tip!
Forum: Plugins
In reply to: [Edit Flow] How to get custom statuses to show up in the archive?Hi Maher,
Just put it in your functions.php file.
YaronForum: Plugins
In reply to: [Edit Flow] Unable to subscribe users belonging to a custom role to a postI thought about doing that but then there’s no way to filter by role/capability. I’ve noticed that the unfollow_post_user function doesn’t work and might not be complete yet. I’ve written my own that gets the list of users following a post, searches that array for the index of the user to be removed, unsets that element from the array, and then sends that array to the follow_post_user function with the append flag set to false.
Forum: Plugins
In reply to: [Edit Flow] Unable to subscribe users belonging to a custom role to a postUPDATE: By following the breadcrumbs I figured out how to make a user role show up in the notifications list.
When populating the notifications meta box, Edit Flow queries for users that are ‘authors’. ‘Authors’ here refers to a user level greater than 0. User levels are deprecated but the user query method being utilized eventually converts this request into a user query for any users with the user meta ‘wp_user_level’ set to anything but 0. Updating this user meta for a given user will make that user show up in the notifications meta box.
For example, to add user ID 36 to the notifications metabox, you would execute the following line:
update_user_meta( 36, 'wp_user_level', '1');
In my case, I want to add two entire user roles to the list. So I’m going to update a user’s wp_user_level meta data whenever a user of [role1] or [role2] are registered on the site using the following code:
add_action('user_register', 'mds_update_user_level'); function mds_update_user_level($user_id) { if(user_can($user_id,'[role1]') || user_can($user_id,'[role2]')) { update_user_meta($user_id, 'wp_user_level', '1'); } }
Sure enough, when a new user registers with the role of [role1] or [role2] they now show up in the notifications meta box.
There is a todo note within the Edit Flow code to replace this system with an array of capabilities so hopefully this mildly hacky solution of mine will just be a temporary one ??
You can see the changed ajax.js file at
I copied uploadify.allglyphs.swf to https://moderndayscribe.com and also above the public_html folder.
I created crossdomain.xml (it’s empty though…) at https://moderndayscribe.com and above the public_html folder.
You can see a sample file upload form at : https://moderndayscribe.com/test/
Please help, thanks!
YaronI’m having the same problem. I just purchased the pro version of your plugin and receive Security Error whenever I try to upload anything. I followed your instructions, though the line number was different for me. I added ‘scriptAccess” : ‘always” to the line where it says “//add your options here”. I’m also weary about changing plugin files since any upgrade you publish will override this. If you need access to my server please email me yaron at trestian dot com.
Forum: Reviews
In reply to: [What The File] Super useful but wish it could do a bit more…Awesome!
Forum: Plugins
In reply to: [Edit Flow] How to get custom statuses to show up in the archive?Here’s the working code for those who are curious:
add_action( 'pre_get_posts', 'load_purchase_orders' ); function load_purchase_orders( $query ) { $user = wp_get_current_user(); if ( !is_admin() && $query->is_main_query() && $query->is_post_type_archive('purchase_order')) { //show all purchase orders that are open $query->set( 'post_status', array('new-order','assigned-pm','assigned-xfer','in-progress','ready-for-editing','complete') ); //only show those purchase orders that are created by the logged in user $query->set( 'author', $user->ID ); } }
Forum: Plugins
In reply to: [Edit Flow] Making Custom Status PublicFound typos in my code. It works now. Though having the option to make statuses public would still be very useful.
Forum: Plugins
In reply to: [Edit Flow] How to get custom statuses to show up in the archive?Nevermind. typos in my code. it works now! *headslap
Forum: Plugins
In reply to: [Edit Flow] Making Custom Status Publicktrusak, changing that line of code totally solved the problem I was having here:
https://www.ads-software.com/support/topic/how-to-get-custom-statuses-to-show-up-in-the-archiveThanks so much!
Daniel, is it possible to add this public functionality to the plugin in the next release?
Thanks so much Ross! I updated the theme’s wp_enqueue_script call to use WordPress’ core jQuery UI references and, sure enough, that fixed the problem. So frustrating when themes screw that sort of thing up. Thanks again for your help and super fast response!
YaronForum: Plugins
In reply to: [Edit Flow] How can I use custom statuses for private posts?Thanks for the fast reply! I can think of a number of ways to get around this so it’s no big deal. I’ll be blogging about this solution once development is complete.
Thanks a lot, this plugin is exactly what I needed!
Forum: Plugins
In reply to: [View Own Posts Media Only] Conflict with Advanced Custom FieldsActually, I just installed this plugin and ACF still works fine at least on custom post types (I don’t have any custom fields set up for standard posts).