[wp-testers] User Level rules?

Nurudin Jauhari nurudinjauhari at yahoo.com
Wed Dec 7 03:01:16 GMT 2005


But this only so link to edit and show the editor, but everytime edit this
post and safe Always fail, text that add after edit not safe to Database.
What wrong?

--- Nurudin Jauhari <nurudinjauhari at yahoo.com> wrote:

> 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
> 
> _______________________________________________
> 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