• Hello,

    I have installed the wp-cal plugin. My problem is that I need an author to be able to edit the calendar. Currently, the plugin only supports the addition of events when the admin is logged in. Can anyone help me figure out what I need to modify to allow the lower user level to post events?

    It seems that this code in event.php file is what I need to edit:
    get_currentuserinfo();
    if(user_can_edit_post($user_ID, $post->ID)){
    $canedit = true;
    echo “Add event<div class=’clear’></div>”;
    }

    Plugin download page:
    http://www.fahlstad.se/wp-plugins/wp-cal/

    My install:
    http://www.hoaclientaccess.com/bridgeport/calendar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • have you thought of making use of the role manager plugin?

    last i checked with my clients that i hvve installed WPCal for, the role manager controls who can and cannot add entries to the calendar.

    Thread Starter joshkaufman

    (@joshkaufman)

    I am using the Role manager for this client. However, I don’t think the wp-cal plugin is compatible with it. When I look at the roles page, i dont see any options for the wp-cal plugin.

    Thread Starter joshkaufman

    (@joshkaufman)

    I figured it out.

    I had to edit two files.

    event.php & day.php

    I changed this line of code:
    if(user_can_edit_post($user_ID, $post->ID))

    to this:
    if($user_level > 3)

    nice, i will have to refer to this in the future.

    glad you discovered it …

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP-Calendar Plugin’ is closed to new replies.