Support

Home Forums Event Espresso Premium Dropdown people-add-on

Dropdown people-add-on

Posted: December 6, 2020 at 9:44 am


joost backaert

December 6, 2020 at 9:44 am

https://eventespresso.com/wiki/people-add-on/
Is it possible to skip the “display order” and use a dropdown?
I would like to create a lot of administrators who need to make events, it’s going to be a very long list otherwise.
A searchable dropdown would even be better 😉


Tony

  • Support Staff

December 8, 2020 at 4:10 am

Hi there,

Is it possible to skip the “display order” and use a dropdown?

No, not currently.

I would like to create a lot of administrators who need to make events, it’s going to be a very long list otherwise.

The people add-on is not used to assign events to administrators in the admin, its designed to assign ‘People’ to events to show they are a part of that event on the front end, for example, Event Staff, Speakers etc meaning ‘People’ who a part of the event.

So if you are looking for an admin staff manager to assign events to admins for them to manage the events you don’t use the people add-on.

So may I ask what you are using the people add-on for here?


joost backaert

December 8, 2020 at 5:08 am

Every Administrator must be able to set events, follow those and will be the speaksperson of that event.
The administrator that makes the event should be displayed also in the front-end, thats why I wass trying to do this with the people add-on. Is there a shortcode or snippet to add the administrator ( name / email / …) to the frontend?


Tony

  • Support Staff

December 8, 2020 at 6:38 am

Every Administrator must be able to set events, follow those and will be the speaksperson of that event.

When you say ‘set events’, what does that involve?

Should they only be able to access ‘their’ events?

Is there a shortcode or snippet to add the administrator ( name / email / …) to the frontend?

Not currently no, the add-on hooks into the event content and injects ‘people’ details into that.


joost backaert

December 8, 2020 at 7:09 am

They can do everything in Event-Espresso. There is not just one admin.
– Make events, adjust them, aprove subscribers, aprove/delete subscribers.

Would it be possible to add a snippet from the person logged in (administrator is this case)?

Under message in EVENT LIST you can use [EVENT_AUTHOR_FNAME]
[EVENT_AUTHOR_LNAME]
[EVENT_AUTHOR_FORMATTED_EMAIL]
[EVENT_AUTHOR_EMAIL]
Can I do something with those?


Tony

  • Support Staff

December 8, 2020 at 7:42 am

They can do everything in Event-Espresso. There is not just one admin.
– Make events, adjust them, aprove subscribers, aprove/delete subscribers

But that doesn’t mean they would edit/approve/delete everyone’s events/regsitrations, but it sounds like you don’t want them separate and that’s fine.

Would it be possible to add a snippet from the person logged in (administrator is this case)?

Sorry, but I don’t understand. What would you do with a snippet for the currently logged in user?

Under message in EVENT LIST you can use [EVENT_AUTHOR_FNAME]
[EVENT_AUTHOR_LNAME]
[EVENT_AUTHOR_FORMATTED_EMAIL]
[EVENT_AUTHOR_EMAIL]
Can I do something with those?

Again, what would you do with them? They pull the details for the user account set as the event author.


joost backaert

December 8, 2020 at 8:10 am

– It would be better if one admin did not see the other ones event, how to I set this up?

-The admin puts in some datafields ( set up with Advanced Custom Fields PRO) they are displayed with shortcode on the frontend of the event.
I would like to add the event author, is this case always the admin to be visible on the front-end.
https://i.imgur.com/Qh7Ttxx.png
https://i.imgur.com/GzOT4Nc.png


Tony

  • Support Staff

December 9, 2020 at 5:15 am

– It would be better if one admin did not see the other ones event, how to I set this up?

Officially it’s not something Event Espresso provides, but it can be done with capabilities on the user account.

This plugin: https://monosnap.com/file/OByG22pbZaAHZZNz6LXThha9GutLux

Adds 2 new roles to your site:

‘Event Organizer’ only has access to Event Espresso itself (no other WP admin sections) and then should only have access to ‘their’ events etc.

‘Events Manager’ has full access to Event Espresso but again no access to the WP Admin.

SO you could set the admins as ‘Event Organizers’ but also add additional capabilities to the role so they can access other sections of the WP Admin if needed.

(Note the additional capabilities needed is not something we provide support for).

-The admin puts in some datafields ( set up with Advanced Custom Fields PRO) they are displayed with shortcode on the frontend of the event.
I would like to add the event author, is this case always the admin to be visible on the front-end.

I’m not really sure what you are asking for, it looks like you already have the fields set up so the admin would add the details and it be displayed automatically?


joost backaert

December 10, 2020 at 2:55 pm

Yes the fields are displayed but the client wants to see the admins name automatically, the admin fills in the fields at the backend, the field “Aministriatie” should be automatically be populated with the admin person’s name and email. see: https://i.imgur.com/GzOT4Nc.png
So can I fill this like in your mail system with for example [EVENT_AUTHOR_LNAME]

the rest is filled in like this with a plugin like you descibed ( https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) :

add_filter(‘default_content’, ‘tw_ee_default_post_content’, 2, 10);
function tw_ee_default_post_content($post_content, $post){
if(get_post_type($post) == ‘espresso_events’){
$post_content =
‘<!–more–>

<h4>Inleiding</h4>
[acf field="inleiding"]

<h4>Administratie</h4>
??????[EVENT_AUTHOR_FNAME]??????

<h4>Trainer(s)</h4>
[acf field="trainer"]


Tony

  • Support Staff

December 11, 2020 at 4:01 am

The shortcodes within the messages system are unique to messages, you can’t use them outside of it.

Within that snippet you have the post object within $post, use it to pull the author ID and output whatever details you need to:

https://wordpress.stackexchange.com/questions/65548/how-to-get-author-id-outside-the-loop

See the docs on get_the_author_meta().

The support post ‘Dropdown people-add-on’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso