Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [HOWTO] Show persons on the waiting list, in Event view

[HOWTO] Show persons on the waiting list, in Event view 2 years 1 month ago #23946

  • jojo12
  • jojo12's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 3074
  • Karma: 45
  • Thank you received: 322
look at:
JEM 2.2.1 and View Non-attending/invited/waitings​ in view event #23798
1 month 1 week ago
5.5.5-10.0.30-MariaDB-0+deb8u1
PHP 7.2.9 on different sites
Apache
JEM 2.3.0dev 2.0M and specials with Joomla! 3.9.3 stable on livesites
ja_simply, ja_purity_iii, multilingual DE EN IT FR

Please Log in or Create an account to join the conversation.

[HOWTO] Show persons on the waiting list, in Event view 2 years 1 month ago #23947

Jojo12, thank you so far, I'll try it once I get it. Now I have too little time ... :-(

Please Log in or Create an account to join the conversation.

[HOWTO] Show persons on the waiting list, in Event view 2 years 1 month ago #23948

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?

Please Log in or Create an account to join the conversation.

[HOWTO] Show persons on the waiting list, in Event view 2 years 1 month ago #23949

  • albs
  • albs's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 62
  • Karma: 2
  • Thank you received: 9
Hi Jojo12,

Thanks for the response - I noticed the code in the model in 2.2.1 (which I'm using), but the query in model file for Event filters out the people who are on the waiting list... hence the change.

Thanks!

Please Log in or Create an account to join the conversation.

Last edit: by albs.

[HOWTO] Show persons on the waiting list, in Event view 2 years 1 month ago #23950

  • jojo12
  • jojo12's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 3074
  • Karma: 45
  • Thank you received: 322
No that's not true, but you need to change in defaut_attendees.php:
// loop through attendees
			foreach ($this->regs['all'] as $register) :

where 'XXX' can be 'all' for all together ot 'invited', 'not_attending', 'attending', 'waiting' for users with such state.
like that each admin can decide what kind he needs for his groups!
5.5.5-10.0.30-MariaDB-0+deb8u1
PHP 7.2.9 on different sites
Apache
JEM 2.3.0dev 2.0M and specials with Joomla! 3.9.3 stable on livesites
ja_simply, ja_purity_iii, multilingual DE EN IT FR

Please Log in or Create an account to join the conversation.

Last edit: by jojo12.
  • Page:
  • 1
  • 2
Time to create page: 0.251 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.