WordPress.org

Ready to get started?Download WordPress

Forums

Minutes, Agendas, Newsletters
[resolved] no upload menu for users (3 posts)

  1. peters3
    Member
    Posted 1 year ago #

    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/

  2. brendaegeland
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. peters3
    Member
    Posted 1 year ago #

    Hi Brenda,

    Thank you very much.
    Works like a charm

    Cheers Peter

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.