Support

Home Forums Event Espresso Premium Display Attendees Names / City on website for public?

Display Attendees Names / City on website for public?

Posted: January 7, 2018 at 9:04 am


Allen

January 7, 2018 at 9:04 am

I am curious if there is a way to automatically display the names and city/state of all attendees on our website?

We run a series of billiards tournaments – so, when someone registers for the event, I want their name to appear on a “Registered Players” page … I am sort of new to wordpress, but I familiar with MS Access – So, I am assuming that the data is stored in a table somewhere (I know I can download a CSV file) … I want that data to be automatically posted online after a transaction. Not all data though, just name and location. (keep email, phone, and full address private of course)

Is something like this possible? I don’t really even know what to properly search for…


Seth Shoultes

  • Support Staff

January 8, 2018 at 2:14 pm

Hi Allen,

Yes, you can display the names of attendees using a shortcode, which is documented here: https://eventespresso.com/wiki/ee4-shortcodes-template-variables/#event-attendees

However, I don’t think it shows the city/state data by default, so you may have to customize the template a bit, which is also in the documentation.

Hope that helps. Please let us know if you have further questions.


Allen

January 8, 2018 at 8:08 pm

Thanks Seth, this is great! I am trying some things now – may need more help, but I’ll try first.

But, would be good to know: I have some custom questions/names in Question Groups. Can I have those show up also?

For example, a player “John Smith” can also pay entry for his friend “John Doe” .. he enters John Doe’s name in question fields called “Player’s First Name” Player’s Last Name” (people are allowed to pay for someone else, but we need the “Player Name” to be accurate…

So, I am researching how to do this now. Maybe you can help. I am not very fluent in PHP at all, so, it’s quite a task.


Allen

January 8, 2018 at 8:35 pm

Ok – so I found this: https://eventespresso.com/topic/ee4-modify-list-attendees-shortcode-to-show-additional-attendee-info/

Which is great! However I can’t figure out how to add custom questions. The Questions ID #s are 17 and 18

This is where it will be in use: http://superbilliardsexpo.com/registered-open/

Page is sort of bland for now, I need to style a bit. Is there a way fr me to format the data? Like, make the city/state a smaller font, or different color, or italics?

I have so much to learn, but this is all great!


Seth Shoultes

  • Support Staff

January 24, 2018 at 3:29 pm

Hi,

Sorry I missed your reply. Since the data is output as an HTML list (ul), you can easily style the output using CSS. The CSS code could be added via the WordPress customizer in the Appearance settings.


Allen

January 28, 2018 at 12:15 pm

Thanks Seth!

I’ve been playing around a bit and figuring some things out – making good progress!

Another question: is there a way I can make EE display State Names as abbreviations rather than full names?

You can see how I’ve tweaked things so far here: http://superbilliardsexpo.com/registered-open/

Also, I added some CSS to Capitalize words (since some people enter names in all lowercase) — but, is there a way or trick to fix a name that someone has entered in all caps?

That’s not such a big deal, I’m just trying to make the result page look more professional.

Thanks!


Allen

January 28, 2018 at 8:34 pm

OK – update – think I figured out the State abbreviation issue. I went into General Setting and then under Countries I edited the “Name” of each state to be just an abbreviation — then the dropdown list showed abbreviations and all entries already received updated themselves as well 🙂

Will this action cause any issues somewhere behind the scenes? Or is there a better way to fix this?


Seth Shoultes

  • Support Staff

January 29, 2018 at 2:09 pm

Hi Allen,

I don’t think that changing the names of the states to abbreviations will affect anything. It’s just a label as far as I know.

Regarding converting all caps, here’s a Stackoverflow thread that might help:
https://stackoverflow.com/questions/13793666/how-to-convert-uppercase-text-to-title-case-using-css


Allen

February 5, 2018 at 7:52 pm

Hello again – new related issue:

I have some attendees that register for themself and another person. Using the shortcode does not show each unique entry.

For example, we allow a person (John Smith) to register to play in our event. We also allow John to enroll his wife, Sally Smith.

To do this, “John” adds his entry and an additional one to his cart. I added a custom question to get the “Player’s Name” for anyone other than himself – in this case, “Sally”

The shortcode will show John’s name only once, and if I request the additional “Players Name” it will just show up under his name – rather than as an additional unique entry.

You can see my lists here: http://superbilliardsexpo.com/registered-open/

This is very confusing to explain here – I would gladly pay for phone support. Can you take a look and see if it makes sense?

In this situation, I want two entries to display, such as:

42. John Smith – Anytown, USA
43. John Smith – Anytown, USA
player’s name: Sally Smith

Currently, it is just doing this:
43. John Smith – Anytown, USA
player’s name: Sally Smith

And, therefore – not showing up as 2 unique entries.

Can this be fixed?

Thanks!


Josh

  • Support Staff

February 7, 2018 at 3:42 pm

Hi Allen,

This is something that can be changed by altering the loop-espresso_event_attendees.php. It appears that you’ve already been working on the related content-espresso_event_attendees.php. What you can do is within the main loop, foreach($contacts as $contact):, add a secondary loop that will loop through each registration and display a list item for each registration.

Alternatively you could add some code that shows a count/number of registrations for that contact. There’s some example code that does something similar in this gist:
https://gist.github.com/joshfeck/31d5ac0f3833b9820ccf947d01f243a3


Allen

February 17, 2018 at 6:37 pm

Thanks Josh – I have taken a look at what you’ve suggested, and I have no earthly idea how to “add a secondary loop that will loop through each registration and display a list item for each registration.”

I can see the part of the code you want me to edit, but I have no clue how.

I figured out the edits on the content-espresso_event_attendees.php page by comparing what was there versus what you guys suggested I add/change … but I can’t determine what to change on loop page. Can you help with more guidance? Can I pay you to create the code? I just need to get it working asap

I implemented your second suggestion for now, and figured that out. So now it shows a “count” (you can see here:http://superbilliardsexpo.com/registered-open/) – but, I think maybe editing the loop is what I need?

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Allen 1 day, 16 hours ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!