You currently have to edit a line of PHP to do it. I intend to make that a feature of the next release.
Ah, sounds great Dan. I look forward to it’s release.
Hi Dan,
Can you tell me what the line that needs to be edited is?
Thanks!
Yes! That would be most helpful!
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….
Chris,
That’s the one. It shouldn’t be a security problem, except that there is no moderation queue for contributors. When they create a gig, it’ll go straight through to published. Currently, the development version has the ability to change that setting from the settings page, so it’ll be in 0.4.
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),
);
}`
Chris,
That’s a good idea. I’ll add a setting to let people set that ability.
This is great and exactly what I need as well. However, I’d like users to be able to add gigs & venues, but not modify or delete them (Ideally, they’d have full control of only gigs & venues they created, just like posts, but I assume that’s not possible with this release.)
so… is this achievable? if not, chrisfitz, can you please point out where exactly to insert your code above?
many thanks, this plug-in is awesome.
adamzero,
That kind of granularity probably won’t be built in. I’ll be adding filters that would make adding that functionality possible from another plugin.