Hi all,
I've been able to modify JEM to display people who are on the waiting list. If this is useful for your web site, read on.
1. Go to your components/com_jem/models/event.php, and in line 525, change:
. $name . ' AS name, r.uid' . $avatar
into
. $name . ' AS name, r.uid, r.waiting' . $avatar
This asks the query to retrieve that extra piece of data.
2. In the same file, in line 514, comment out the line:
$where[] = 'waiting = 0';
This stops the query filtering out rows where the user is on the waiting list.
3. Now edit your view file. If you haven't created any template overrides, you can go to components/com_jem/views/event/tmpl/default_attendees.php. If you have, look for the corresponding file in your template folder. Keep this in mind - otherwise you'll waste time editing the wrong file.
From the Foreach loop in line 63, running to its corresponding endforeach, you'll see a few different options for displaying attendees. They are: showing a Community Builder avatar and link, Community Builder link only, text etc. The code reads:
$register->name . '</span></a></li>';
If you clearly know which of these display options you're using, then just edit that, otherwise you can edit all the options. The code you need to change to is:
$register->name;
if ($register->waiting == 1) :
echo ' - waiting';
endif;
echo '</span></a></li>';
Enjoy. I'm also going to look for a way to modify the code so that administrators/managers etc can edit event attendees on the front-end - my mostly non-technical users find it daunting to visit the administrator interface to perform this function.