Albs, jojo12 thank you.
Finally, I modified the default.attendees.php file according to your advice and I made it a bit easier and it looks like it works in my mind:
From line about 115:
// no communitycomponent is set so only show the username
if ($register->status == 1)
echo '<p><span style="color: green;" />' . $register->name . ' - Účastník akce</p>';
if ($register->status == -1)
echo '<p><span style="color: red;" />' . $register->name . ' - Nezúčastní se</p>';
if ($register->status == 0)
echo '<p><span style="color: blue;" />' . $register->name . ' - Dostal pozvánku, ale nevyjádřil se.</p>';
if ($register->status == 2)
echo '<p><span style="color: orange;" />' . $register->name . ' - Náhradník </p>' ;
endif;
endforeach;
// end loop through attendees
I have one more question and I'm asking for advice on how to edit this code.
I would like every user to be shown, including his comment, which he entered during registration. In my case, I would need other users to see the comments. How do I do that?