Support

Home Forums Event Espresso Premium staff manager & registration page

staff manager & registration page

Posted: October 7, 2015 at 6:25 am

Viewing 11 reply threads


Angus Russell

October 7, 2015 at 6:25 am

Small dilemma here.

Adding the staff to the reg page does not show their email, so I am using a a shortcode to do this. However, what happens then is that I have the box with the staff details, and then this are repeated below it including the email address.

If I dissociate the staff with the event, both disappear, so it’s both of nothing!

All I need to do is to be able to have the staff name, role/title, mobile & email on display, how can I achieve this please?

Thank you


Angus Russell

October 7, 2015 at 6:26 am

Oh, yes, if there is no staff associated with the page then I get “Email:” in view in the middle!


Angus Russell

October 7, 2015 at 6:28 am

This is the shortcode

[ESPRESSO_STAFF outside_wrapper=”div” outside_wrapper_class=”event_staff” inside_wrapper=”p” inside_wrapper_class=”event_person” show_staff_titles = “true” show_staff_details = “true” show_staff_roles = “true”]


Angus Russell

October 7, 2015 at 6:29 am

this is the page http://supersportsevents.me/event-registration/?ee=150


Josh

  • Support Staff

October 7, 2015 at 7:07 am

Hi Angus,

It might help to see the code that you’re using to add the email shortcode. However instead of adding more shortcodes, you could add the email to the staff shortcode.

You can add the email to the shortcode by (1) copying the espresso_staff_sc() function from event-espresso/includes/shortcodes.php to your custom plugin. Then in your copy, (2) you change the query to include the email address, like this:
$sql = "SELECT s.id, s.name, s.role, s.meta, s.email ";

Then (3) you add this code where you’d like the email address to appear:

$html .= isset($person->email) && !empty($person->email) ?
 'Email: ' . ' ' . $person->email . '<br />' : '';


Angus Russell

October 7, 2015 at 7:26 am

It’s a std EE shortcode, from somewhere on the EE site support area.

I’ll try what you suggest, thanks.


Josh

  • Support Staff

October 7, 2015 at 8:20 am

I’m not aware of a staff email shortcode for EE3, so the email shortcode you’re using might not be standard.


Angus Russell

October 7, 2015 at 12:14 pm

Took shortcode from here

https://eventespresso.com/wiki/shortcodes-template-variables/

and used the variables to play with it.

Seems a little daft though that you end up with two sets of details.


Josh

  • Support Staff

October 7, 2015 at 12:18 pm

I’m not seeing a staff email shortcode on that page, but I’m probably just daft as you say.


Angus Russell

October 7, 2015 at 7:58 pm

I found it here

https://eventespresso.com/wiki/shortcodes-template-variables/

and then used the variables.


Angus Russell

October 7, 2015 at 8:00 pm

Sorry, it didn’t seem to have posted.

I think it’s not specific but just shows the “details”

show_staff_details = show the details? (true|false default true)


Josh

  • Support Staff

October 8, 2015 at 6:46 am

It turns out that the shortcode you are using does not display the email address. You can change the shortcode so that it does display the email address by following the instructions in the earlier reply.

Viewing 11 reply threads

The support post ‘staff manager & registration page’ 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