Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter devilsfan

    (@devilsfan)

    I discovered how to do this and am updating my post for the benefit of anyone who wants an answer to this question.

    Here’s the snippet of code I wrote to cycle through all users and email an alert to those with have a user level of 2 (Author).

    $users = $wpdb->get_results(“SELECT user_email, ID FROM $wpdb->users”);

    foreach ( $users as $user ) {
    $user_info = get_userdata($user->ID);

    $email = $user->user_email;
    $level = $user_info->user_level;

    if ($level == 2) {
    mail($email, $subject, $message);
    }
    }

    Thread Starter devilsfan

    (@devilsfan)

    Alright, I figured this out. What I did was install the Role Manager plugin and edited the Author role to be able to view private posts. Now when a member of the group creates a post, they can save it as private instead of publishing. All members of the Author role can view this message in their Manage -> Posts tab.

    Thread Starter devilsfan

    (@devilsfan)

    Thanks. This solution only seems to provide access to the draft, which gives edit permission to other authors. In order to use this method, I have to make each user an Editor at a minimum. I only want to allow authors to be able to contribute posts, not edit or administrate, so their role should only be that if Author.

    Is there some way to edit the template such that I can make the preview pane publicly accessible? I’d like to be able to mail a URL to the preview window to the other users, and for them to be able to do the same.

Viewing 3 replies - 1 through 3 (of 3 total)