• Resolved peters3

    (@peters3)


    Hi Brenda,

    I love your plugin in. It does exactly what I need it to do.

    The website I am working on (as a non-IT parent trying to help the school of my kids with their website) has users (the teachers) and I would NOT like them to have the option to upload minutes.

    Now the ADMIN panel is not visible to them (based on their role), only the upload panel is. I need to make the upload panel as invisible as the admin panel.

    I have tried for 2 hours to figure out which bit of code to change to get that done, but I really don’t knwo what I am doing so finally decided just to ask you.

    Looking very much so forward to your reply.

    thanks for your help,

    Sincerely peter

    http://wordpress.org/extend/plugins/minutes-agendas-newsletters/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author brendaegeland

    (@brendaegeland)

    Hi Peter,

    In the main plugin file, minutes-agendas-newsletters.php, find this (around line 100):

    // Initialize uploads page
    function uploadPanel() {
    $minagnews_admin_menu = add_media_page(
    ‘Manage Minutes, Agendas, Newsletters’,
    ‘Minutes, Agendas, Newsletters’,
    ‘upload_files’,
    basename(__FILE__),
    array($this, ‘uploadMinutesAgendasNewsletters’)
    );

    and replace it with

    // Initialize uploads page
    function uploadPanel() {
    $minagnews_admin_menu = add_options_page(
    ‘Manage Minutes, Agendas, Newsletters’,
    ‘Upload Minutes, Agendas, Newsletters’,
    ‘upload_files’,
    basename(__FILE__),
    array($this, ‘uploadMinutesAgendasNewsletters’)
    );

    Hope this works for you.

    Thread Starter peters3

    (@peters3)

    Hi Brenda,

    Thank you very much.
    Works like a charm

    Cheers Peter

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Minutes, Agendas, Newsletters] no upload menu for users’ is closed to new replies.