Forum Replies Created

Viewing 13 replies - 181 through 193 (of 193 total)
  • Thread Starter cojennin

    (@comradefuzz)

    Righteous. I checked out the github account for the project but there only exists a master branch. Can I pull the code that’s been written so far from somewhere and take a crack at it?

    I haven’t actually messed around with these yet to see how much you can tweak, but there are three filters you should be able to use to modify the subject, message and message headers.

    They are as follows:
    ‘ef_notification_send_email_subject’
    ‘ef_notification_send_email_message’
    ‘ef_notification_send_email_message_headers’

    If you want to take a look at where they are in the code, check out the notifications module.

    Hopefully that helps. Feel free to post back here if you’re running into any problems and I’ll see what I can do to assist.

    When you create or edit Editorial Metadata, there should be a drop-down near the bottom labeled “Viewable.” Just need to select “Yes.”

    So I guess just cut out everything except the sortable filter.

    But it doesn’t make it sortable.

    Ha. And that would make it a lot easier.

    Ok, so this works for me when inserted into my “functions.php” file in my theme. To clarify, I called my editorial metadata “Working on”, and gave it a type of “user.” That’s why I’m looking for a post_meta called “_ef_editorial_meta_user_working-on”. The “_ef_editorial_meta” is prepended for editorial metadata as post meta being inserted into the database. The “_user” is another string prepended because I selected a type of “user”, and then “working-on” is just the name of my editorial meta data (uncapitalized and spaces replaced with dashes Ninja Edit: It might actually be the slug that’s being appended, not just the name decapitalized and dashes removed. I’ll double check). To double check, just save a post with the meta data of your choice and look at the database to see how it’s been saved. But is should save along the lines of the formula above.

    I could not for the life of me figure out where the sortable_columns filter is applied. I’m still trying to hunt it down just cause I’m curious, but it works at making it sortable. I called my column “Editor,” which you’ll see in the add_editor_columns function.

    Feel free to post back here if you’re having problems or if the code needs more ‘splainin.

    // Getting metadata to show up on posts table
    add_action( 'manage_posts_custom_column' , 'ef_custom_column', 10, 2 );
    
    function ef_custom_column($column, $post_id) {
    	if( $column == 'editor' ) {
    		$user_id = (int)get_post_meta($post_id, '_ef_editorial_meta_user_working-on', true );
    		$editor = get_user_by('id', $user_id);
    		echo $editor->user_nicename;
    	}
    }
    
    add_filter('manage_post_posts_columns' , 'add_editor_columns');
    
    function add_editor_columns($columns) {
        return array_merge($columns,
                  array('editor' => __('Editor')));
    }
    
    add_filter( 'manage_edit-post_sortable_columns', 'make_editor_sortable' );
    
    function make_editor_sortable($columns) {
    	$columns['editor'] = 'editor';
    	return $columns;
    }

    Sorry this is a bit late. Interesting idea. It seems like this could be partially solved by making an Editorial Metadata of a “user” type and call it something like “Editor Assigned:.” The only issue would be getting it to show up on the posts table. I believe some simple tweaking with the manage_posts_custom_columns action should do it, but I don’t know for sure. I’ll try putting something together to see if I can get it to work.

    Ok, think I located the issue. I believe it has to do with a call to get_post in the Edit Flow source. You can see from that link where it says $post_id there’s some mention of the problem you’re having. I’m going to create an issue on GitHub for this and patch it up. In the meantime, I’d wait to see if Daniel pops on and has some suggestions about how this could be worked around. Seems like the errors being triggered in relation to some issue with the post_type. If I think of anything else, I’ll post it here.

    Looking into this right now. I might be back with questions, so stay on the line.

    What sort of docs are you looking for? There’s a whole website with a list of the features that the plugin includes. Does it not provide enough info?

    Just curious as to what kind of extra information you’re looking for.

    I’ve created a GitHub issue for this. Feel free to follow it. If you find any other issues related to this one, you can post them here or on GitHub. In the meantime I’ll see if I can unearth any other bugs related to this issue and start working on a fix.

    When you save a post for the first time, do you see a checkbox next to your user name in the notifications box (the box called “Notifications,” usually below the post content area?

    When you uncheck that, do you still get notifications?

Viewing 13 replies - 181 through 193 (of 193 total)