chrisfitz
Forum Replies Created
-
Forum: Plugins
In reply to: Allow Author Gig Calendar Submit?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),
);
}`Forum: Plugins
In reply to: Allow Author Gig Calendar Submit?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….
Forum: Plugins
In reply to: Allow Author Gig Calendar Submit?Yes! That would be most helpful!