pick the author of the post, and like me, you have many registered users, the list of usernames that
you get is pretty long, not so comfortable to find your writers or editors in there.
That is why I came up with this little fix that makes it show only writers, editor and admins in the
multiple authors box!
Just open: plugins/multiple-authors.php
Find:
- Code: Select all
if($mod == "addnews"){
$buffer .= '<option value="'.$row['username'].'" '.($row['username'] == $member['username'] ? 'selected' : '').'>'.$row
['username'].'</option>';
}
else{
$buffer .= '<option value="'.$row['username'].'" '.($row['username'] == $row2['author'] ? 'selected' : '').'>'.$row
['username'].'</option>';
}
Replace with:
- Code: Select all
if ($row['level'] != 4){
if($mod == "addnews"){
$buffer .= '<option value="'.$row['username'].'" '.($row['username'] == $member['username'] ? 'selected' : '').'>'.$row
['username'].'</option>';
}
else{
$buffer .= '<option value="'.$row['username'].'" '.($row['username'] == $row2['author'] ? 'selected' : '').'>'.$row
['username'].'</option>';
}
}
That's it, hope it helps someone.
