Cindy Kendrick
Forum Replies Created
-
Forum: Plugins
In reply to: [Cleverness To-Do List] person who gave task, can't see it.Yes it’s possible, but it wouldn’t be simple unfortunately. In /includes/cleverness-to-do-list-library.class.php insert_todo and edit_todo would need to be modified and maybe get_todo_meta. In /includes/cleverness-to-do-list-frontend.class.php, most of the functions in the CTDL_Frontend_Admin class would need to modified and you would need to add another function to display that new field, like in /includes/cleverness-to-do-list.class.php. That file might also have some functions that need to be modified.
Forum: Plugins
In reply to: [Cleverness To-Do List] person who gave task, can't see it.Yes, if you’re comfortable working with PHP and editing the plugin files.
I don’t have any action hooks in the right places in the plugin currently to do it without editing the plugin files. I will need to add some.
Depending if you’re using the frontend admin, you’ll need to edit either /includes/cleverness-to-do-list-frontend.class.php or /includes/cleverness-to-do-list.class.php, in the function show_todo_list_items.
You’ll want to add an if statement inside the while loop checking if get_the_author() is equal to the current user.
Forum: Plugins
In reply to: [Cleverness To-Do List] person who gave task, can't see it.It should be able to be done, but all users would be able to see other user’s support requests. It can either be set to show only tasks to the assigned user or show tasks to all users (there is a third method to only show all tasks to users with a specific capability but that wouldn’t work in your case).
Under Settings > Advanced, Show a User Only the To-Do Items Assigned to Them should be set to No and under Settings > User Permissions, make sure that the capability selected for Viewing, Adding, Assigning, etc is set to something the lowest user can do.
Forum: Plugins
In reply to: [Cleverness To-Do List] How to check if user has toDos?In my code I use CTDL_Lib::get_todos( $user, $limit, $status, $cat_id, $to_exclude ) to get a list. You can see the function in /cleverness-to-do-list/includes/cleverness-to-do-list-library.class.php on line #39.
This may work outside the plugin, if it’s executed after the plugin is loaded. It’s just a WP_Query call, so you will need to loop through the results to display them.
All items are stored in a custom post type called todo and all info is in meta values so you could also create your own WP_Query to get the info you need.
Forum: Plugins
In reply to: [Cleverness To-Do List] How to check if user has toDos?No, sorry, there’s no function like that in the plugin.
I do have action and filter hooks built in to the plugin but I don’t know if there’s any that would fit your needs (you can see them in the code). They’re more to modify small details.
I can add new ones but I don’t know if it would be possible to get the results you desire. If you do find a way to do it with a newly placed filter/action I can add that filter/action call to the plugin.
I’m afraid I don’t really have any advice on extending it. I’ve never done that for a plugin outside of the main plugin. This plugin wasn’t really designed for custom displays so I don’t have any good way to go about it.
It may be that your plugin is loading before mine, which is why it says it doesn’t exist. You could see if the global $ClevernessToDoList is set to see if that is the case. If it’s not set, you may need to look into changing the plugin load order somehow.
Forum: Plugins
In reply to: [Cleverness To-Do List] Frontend editing and categoryI did change something relating to the categories in the todolist shortcode, although I’m surpised it’s affecting the todoadmin categories since it really shouldn’t be.
I’ll have to look into it.
Forum: Plugins
In reply to: [Cleverness To-Do List] Frontend editing and categoryI didn’t change anything regarding the category select box in the most recent version and can’t replicate the issue. It’s the same function that is used in the backend. Does it occur there as well?
Are you using WordPress 3.5.1? Did you upgrade from plugin version 3.2.3?
That’s created by WordPress itself when adding a new post using wp_insert_post. It’s not possible to override that ID. You can hide the display of the ID in the settings under To-Do List > Settings > Advanced > Show To-Do Item ID. All Todos are custom post types and therefore are WordPress posts.
No, not unless you would modify the plugin to add an additional field for it. The ID it uses now is automatically generated and is related to it’s position in WordPress’s posts database table.
Forum: Plugins
In reply to: [Widget CSS Classes] One more PHP notice?Thanks for the info. I will try to fix the notice.
Forum: Reviews
In reply to: [Widget CSS Classes] PerfectI checked on this and it appears that the order of classes in the HTML attributes is irrelevant. See this stackoverflow question. So even if I switched it, it wouldn’t have the desired result.
Forum: Reviews
In reply to: [Widget CSS Classes] PerfectThanks! I’ll look into changing the order that they get added.
Forum: Plugins
In reply to: [Cleverness To-Do List] Email Assigned To-Do Items to User – Not WorkingJust a thought: The plugin uses the admin email specified in the default WordPress settings as the From address. I just read that if that address is from another domain, the host may not send the email. This is set is in /cleverness-to-do-list/includes/cleverness-to-do-list-library.php on line 312. I can add a setting to specify the From email address in the next version.