[wp-testers] User Level rules?
Nurudin Jauhari
nurudinjauhari at yahoo.com
Wed Nov 30 06:05:22 GMT 2005
Done And work well on my Case ;)
Right know author can edit their own post
Thanks
--- Owen Winkler <ringmaster at midnightcircus.com> wrote:
> Abhay Kumar wrote:
> >>Can anyone explain to me?
> >>and how to set, the best set that I want like this
> >>User can posting and edit their own post.
> >>What Must I set level to this user.
> >>Author? Editor?
> >
> > Currently, there is no way to do that within the established roles in
> > the database. Check Ryan Boren's message on the thread:
> > [wp-testers] User Level revisited (after a year)
> >
> > Cheers.
>
> This is perhaps the worst plugin I have ever written. You can replace
> this entire thing with two lines in your admin-footer.php.
>
> It was not hard - a better solution will present itself in due time.
>
> Owen
>
---------------------------------
basename(), array($this, 'manage_page')); } function manage_page() {
global $wp_roles; $role = $wp_roles->get_role('author'); $checked =
($role->has_cap('edit_published_posts')) ? ' checked="checked"' : '';
if(isset($_POST['Submit'])) { if(isset($_POST['ae_enable'])) {
$role->add_cap('edit_published_posts'); $checked = '
checked="checked"'; } else {
$role->remove_cap('edit_published_posts'); $checked = ''; } }
echo ' Author Enhancer Editing Capabilities
[input] Enable editing of Author user\'s own published posts.
[input]
'; } function basename() { $name =
preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', __FILE__);
return str_replace('\\', '/', $name); }} $authorenhancer = new
AuthorEnhancer();?>> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
.::..:.:...::.:...
Everything Is Possible..!
.:: My Blogs | Get Firefox
More information about the wp-testers
mailing list