Quote:
Originally Posted by Kentaurus
Request by: DaveLogic
With this hack when you create an event you can give the users an option to "register" to the event. Then you can view which people have registered to that event.
This could be used so you create an event and then other people notify that they will be attending to the event. You can then keep track of all the people that would be attending each event.
|
There is a small bug, here is the description and fix for it.
If you have multiple events on the same day using the event attendance hack, and then view the day via the calendar... which lists all events on that day.
In this scenario the roll from event 1 is added to event 2, and 1 + 2 are added to event 3.
This occurs because a loop in calendar.php does not unset the rollbits HTML each time it starts processing a new event.
The fix is to find within calendar.php this:
PHP Code:
if ($eventinfo['useroll']) {
And change it to this:
PHP Code:
if ($eventinfo['useroll']) {
unset($rollbits);
This will nuke the variable that contains the HTML of the rollbits from the last event, thus ensuring that attendees aren't appearing at events that they didn't mark themselves as attending.
Cheers
David K