2 User Roles for CE : user with pending review / user as publisher

Home Forums Calendar Products Community Events 2 User Roles for CE : user with pending review / user as publisher

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1009539
    jazzinconcert
    Participant

    Hi there,

    i’m looking for a possibility to assign two kinds of user roles to the CE front end.

    User A (to be reviewed) : Community user, submitting the form and the event is pending review

    User B (publisher) : Community user, submitting the form and direct publishing the event in TEC

    What i did: Setting up two different user roles with required/forbidden capabilities.

    Result: It’s working in the dashboard/back end but not in the CE form at front end.

    But i need this to be working in the CE front end because of the possibility to make fields required!
    Unfortunately that’s not possible in the dashboard 🙁

    I Hope there is a solution !

    Thanks

    #1009583
    George
    Participant

    Hey @Jazzinconcert,

    I noticed in your reply that you wrote this:

    assign two kinds of user roles to the CE front end.

    But i need this to be working in the CE front end because of the possibility to make fields required!

    When you say, “assign two kinds of user roles to the CE front end”, can you clarify exactly what you mean? Does this mean, for example, that users will see a totally default form, but then based on whether they’re logged in or not (or some other criteria), their submission status will be set to either “Pending” or “Published”?

    Or are there actual UI elements on the form that you want to add, which would allow the submitters themselves choose whether their submitted event should be set to Publish or Pending?

    I apologize for my confusion! I just want to be 100% certain that I know what you’re trying to do so that I can help.

    Let me know exactly what you mean here in more detail. Feel free to share screenshots, as well, which you can do by uploading images to Imgur.com and sharing links to Imgur here in your reply.

    Cheers!
    George

    #1009585
    jazzinconcert
    Participant

    Hi George, thanks for your quick replay, i i appreciate it!

    Does this mean, for example, that users will see a totally default form, but then based on whether they’re logged in or not (or some other criteria), their submission status will be set to either “Pending” or “Published”?

    Thats what i want to do !

    They are both logged in as members of my website with different rights, where one of them has the rights to Publish Tribe Events and the other not. The CE form will be the same.

    It’s working when using the dashboard to submit events but actually not with the CE Form offered by the CE plugin. In the plugin settings is no way to assign the submitting status to different roles. Maybe there is a possibility if i’m modifying some code, php …etc ?

    Thanks for your help
    Thomas

    #1010087
    George
    Participant

    Hey Thomas,

    Thanks for clarifying what you were looking for here. It would unfortunately require custom coding to pull off what you’re trying to do here 🙁 I saw “unfortunately” because we do not offer any support for custom coding here on the forums, but one thing that might help is to get familiar with our Themer’s Guide here → https://theeventscalendar.com/knowledgebase/themers-guide/

    You might be able to use the principles in that Guide to get started on a basic version of what you’re trying to do here; basically, in other words, showing different form components if the user is logged in or not. You could add a hidden input field that tells what status to save the submission as, based on whether the submitter is logged in or not.

    I’m sorry that we don’t have much customization support here, Thomas. If you don’t feel comfortable customizing code directly then you may be interested in hiring a developer – we have several listed here: https://theeventscalendar.com/find-a-customizer

    Best of luck with your customizations,
    George

    #1010165
    jazzinconcert
    Participant

    Hi George, thanks.

    I modified

    You might be able to use the principles in that Guide to get started on a basic version of what you’re trying to do here; basically, in other words, showing different form components if the user is logged in or not.

    – current_user_can() – is the thing to do.

    and it works 🙂

    #1010545
    George
    Participant

    Awesome! Thanks for the update here. I’m glad you got things working a bit and wish you the best of luck with your site and your customizations 🙂

    Cheers,
    George

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘2 User Roles for CE : user with pending review / user as publisher’ is closed to new replies.