Home › Forums › Calendar Products › Community Events › 2 User Roles for CE : user with pending review / user as publisher
- This topic has 5 replies, 2 voices, and was last updated 10 years, 6 months ago by
George.
-
AuthorPosts
-
September 28, 2015 at 11:58 pm #1009539
jazzinconcert
ParticipantHi 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
September 29, 2015 at 6:12 am #1009583George
ParticipantHey @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!
GeorgeSeptember 29, 2015 at 6:26 am #1009585jazzinconcert
ParticipantHi 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
ThomasSeptember 30, 2015 at 9:48 am #1010087George
ParticipantHey 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,
GeorgeSeptember 30, 2015 at 11:49 am #1010165jazzinconcert
ParticipantHi 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 🙂
October 1, 2015 at 10:19 am #1010545George
ParticipantAwesome! 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 -
AuthorPosts
- The topic ‘2 User Roles for CE : user with pending review / user as publisher’ is closed to new replies.
