Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey Dan, Thanks! I must mention again that this plugin is awesome. I also added a line in gigs-calendar.php that checks the user’s role level to allow for only admins to see the “settings” tab in the admin (don’t want people playing around with the layouts and what-not!). In the function generate_admin_page(), I made it so only certain tabs are loaded into the $pages array that is passed to the layout. Something like this, I think : ` if ( current_user_can(‘edit_others_posts’)) {
    $pages = array(
    ‘gigs’ => __(‘Gigs’, $gcd),
    ‘archive’ => __(‘Archive’, $gcd),
    ‘venues’ => __(‘Venues’, $gcd),
    ‘tours’ => __(‘Tours’, $gcd),
    ‘settings’ => __(‘Settings’, $gcd),
    ‘feedback’ => __(‘Feedback/Bugs’, $gcd),
    ‘credits’ => __(‘Credits’, $gcd),
    );

    }
    else
    {
    $pages = array(
    ‘gigs’ => __(‘Gigs’, $gcd),
    ‘archive’ => __(‘Archive’, $gcd),
    ‘venues’ => __(‘Venues’, $gcd),
    ‘tours’ => __(‘Event Series’, $gcd),
    );
    }`

    So, I think I found the line…

    In the gigs-calendar.php file:
    dd_management_page(__('Gigs Calendar', $gcd), __('Gigs Calendar', $gcd), 7, 'gigs', array("dtc_gigs", "generate_admin_page"));

    The “7” denotes the user access level. Changing it to “1” allows contributors to see the Gig’s submission on their manage page.

    So….would this be a major security no-no ?

    On of the main requirements of my blog is to have contributors submit drafts of upcomming events, so this would make my life much better….

    Yes! That would be most helpful!

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