Wrox Programmer Forums
|
BOOK: Professional WordPress Plugin Development
This is the forum to discuss the Wrox book Professional WordPress Plugin Development by Brad Williams, Ozh Richard, Justin Tadlock; ISBN: 978-0-470-91622-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WordPress Plugin Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2011, 03:54 PM
Registered User
 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8: boj-forum-roles

When I install this plugin, I, as the administrator, can change the role of another user, but that user can't login. I get this message
HTML Code:
Notice: Undefined index: in C:\xampp\htdocs\xampp\BFWP\wp-admin\includes\menu.php on line 219
You do not have sufficient permissions to access this page.
Please advise. Thanks.
 
Old September 16th, 2011, 04:05 PM
Registered User
 
Join Date: Sep 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Possible Solution

After each capability is stated in the add_role function, a "=>true" must be placed afterwards.

i.e.
Code:
        /* Create the forum administrator role. */
        add_role(
            'forum_administrator',
            'Forum Administrator',
            array(
                'publish_forum_topics'=>true,
                'edit_others_forum_topics'=>true,
                'delete_forum_topics'=>true,
                'read_forum_topics'=>true
            )
        );





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 16 - Try it Out Checking Roles with IsUserInRole at Runtime skachy BOOK: Beginning ASP.NET 4 : in C# and VB 7 November 17th, 2018 04:23 PM
Chapter 16:Page 615 try it out Checking Roles with IsUserInRole at Runtime lstew452 BOOK: Beginning ASP.NET 4 : in C# and VB 2 July 5th, 2010 02:20 PM
Chapter 6 Delete Roles does not work for me ocn BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 0 November 29th, 2009 11:17 PM
Chapter 6 Roles hdpark BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 November 16th, 2007 07:43 PM
Chapter 6 - Roles/Permissions g_rhymes BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 3 June 28th, 2004 11:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.