No more photos

Home Forums Calendar Products Community Events No more photos

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1113571
    Daniel
    Participant

    I’d like to remove my community users’ ability to upload photos (which are used as featured photos). The site is too image-heavy, and community users are a big issue for that (plus they mess up and upload multiples).
    Is there a way to do this? Is this something I can do with events calendar pro and community, or is it a WordPress issue?
    All my community users are set up as subscriber roles, btw. I’d like to retain photo permissions for editors and admins.
    (I want community users to start using img tags to import photos from now on, so we’re not hosting their media)

    #1113612
    Brook
    Participant

    Howdy Daniel,

    I would love to help you with this.

    That should be very possible with a theme override. Are you comfortable with PHP? If so checkout our Themer’s Guide . Following its instructions override the-events-calendar-community-events/src/views/community/edit-event.php . On about line 58 you will see it falls in the Image upload section of the form. You can either delete this, or wrap it in a condition that hides it from specific folks, like anyone who does not have editor permissions. If you have never done anything like this before than checkout WordPress’ current_user_can() function. And there you go!

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1113993
    Daniel
    Participant

    Thanks! Just needed to be pointed to the right place. Deleted the code, and now the image upload is gone from the community page.

    #1114505
    Brook
    Participant

    Excellent! It was my pleasure Daniel. Thanks for getting back.

    • Brook
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘No more photos’ is closed to new replies.