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

TOPIC:

JEM 2.2.1 and View Non-attending/invited/waitings in view event 5 years 2 months ago #23798

  • jojo12
  • jojo12's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 3486
  • Thank you received: 390
[snippet for override]
because not all sites will need this, it's not officially in JEM 2.2.1:
if your users need to see who is attending/non-attending/invited and not decided/waiting, the model event.php is just prepared for this. You need to create a template override in your template. You copy com_jem/views/tmpl/default_attendees.php to your template/html/event/default_attendees.php.
Then you search inside for "// loop through attendees" (about line 62) until " // end loop through attendees"
and replace it with:
// loop through attendees
			foreach ($this->regs['all'] as $register) :
				$text = '';
				// is a plugin catching this ?
				if ($res = $this->dispatcher->trigger('onAttendeeDisplay', array($register->uid, &$text))) :
					echo '<li>'.$text.'</li>';
				endif;
				// if CB
				if ($this->settings->get('event_comunsolution', '0') == 1) :
					if ($this->settings->get('event_comunoption', '0') == 1) :
						// User has avatar
						if (!empty($register->avatar)) : {
							if (JFile::exists(JPATH_ROOT . '/' . $imgpath . '/comprofiler/tn' . $register->avatar)) {
								$useravatar = JHtml::image($imgpath . '/comprofiler/tn' . $register->avatar, $register->name);
							} elseif (JFile::exists(JPATH_ROOT . '/' . $imgpath . '/comprofiler/' . $register->avatar)) {
								$useravatar = JHtml::image($imgpath . '/comprofiler/' . $register->avatar, $register->name);
							} else {
								$useravatar = empty($noimg) ? '' : JHtml::image($noimg, $register->name);
							}
								if ($register->status == 1)
									echo '<li><i class="fa fa-check-square fa-fw fa-lg" style="color:green"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') . '">' . $useravatar . '<span class="username">' . $register->name . ' (' . $register->status . ')</span></a></li>';
								if ($register->status == -1)
									echo '<li><i class="fa fa-times-circle fa-fw fa-lg" style="color:red"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') . '">' . $useravatar . '<span class="username">' . $register->name . ' (' . $register->status . ')</span></a></li>';
								if ($register->status == 0)
									echo '<li><i class="fa fa-question-circle fa-fw fa-lg" style="color:#0077bb"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') . '">' . $useravatar . '<span class="username">' . $register->name . ' (' . $register->status . ')</span></a></li>';
								if ($register->status == 2)
									echo '<li><i class="fa fa-exclamation-circle fa-fw fa-lg" style="color:orange"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') . '">' . $useravatar . '<span class="username">' . $register->name . '</span></a></li>';
						}
						// User has no avatar
						else :
							$nouseravatar = empty($noimg) ? '' : JHtml::image($noimg, $register->name);
							if ($register->status == 1)
								echo '<li><i class="fa fa-check-square fa-fw fa-lg" style="color:green"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') .'">' . $nouseravatar . '<span class="username">' . $register->name . '</span></a></li>';
							if ($register->status == -1)
								echo '<li><i class="fa fa-times-circle fa-fw fa-lg" style="color:red"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') .'">' . $nouseravatar . '<span class="username">' . $register->name . '</span></a></li>';
							if ($register->status == 0)
								echo '<li><i class="fa fa-question-circle fa-fw fa-lg" style="color:#0077bb"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') .'">' . $nouseravatar . '<span class="username">' . $register->name . '</span></a></li>';
							if ($register->status == 2)
								echo '<li><i class="fa fa-exclamation-circle fa-fw fa-lg" style="color:orange"></i><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&user=' . $register->uid) . '" title = "' . JText::_('COM_JEM_SHOW_USER_PROFILE') .'">' . $nouseravatar . '<span class="username">' . $register->name . '</span></a></li>';
						endif;
					else :
						// only show the username with link to profile
if ($register->status == 1)
						echo '<li><i class="fa fa-check-square fa-fw fa-lg" style="color:green"></i><span class="username"><a href="' . JRoute::_('index.php?option=com_comprofiler&amp;task=userProfile&amp;user=' . $register->uid) . '">' . $register->name .'</a></span></li>';
if ($register->status == -1)					
						echo '<li><i class="fa fa-times-circle fa-fw fa-lg" style="color:red"></i><span class="username"><a href="' . JRoute::_('index.php?option=com_comprofiler&amp;task=userProfile&amp;user=' . $register->uid) . '">' . $register->name . '</a></span></li>';
if ($register->status == 0)					
						echo '<li><i class="fa fa-question-circle fa-fw fa-lg" style="color:#0077bb"></i><span class="username"><a href="' . JRoute::_('index.php?option=com_comprofiler&amp;task=userProfile&amp;user=' . $register->uid) . '">' . $register->name . '</a></span></li>';
if ($register->status == 2)	
						echo '<li><a href="' . JRoute::_('index.php?option=com_comprofiler&amp;task=userProfile&amp;user=' . $register->uid) . '">' . $register->name . '</a></span></li>';
					endif;
				// if CB end - if not CB than only name
				else :
					// no communitycomponent is set so only show the username
if ($register->status == 1)					
					echo '<li><i class="fa fa-check-square fa-fw fa-lg" style="color:green"></i><span class="username">' . $register->name . '</span></li>';
if ($register->status == -1)					
					echo '<li><i class="fa fa-times-circle fa-fw fa-lg" style="color:red"></i><span class="username">' . $register->name . '</span></li>';
if ($register->status == 0)					
					echo '<li><i class="fa fa-question-circle fa-fw fa-lg" style="color:#0077bb"></i><span class="username">' . $register->name . '</span></li>';
if ($register->status == 2)
					echo '<li><i class="fa fa-exclamation-circle fa-fw fa-lg" style="color:orange"></i><span class="username">' . $register->name . '</span></li>';
				endif;


			endforeach;
			// end loop through attendees

THIS WORKS ONLY with Joomla 3.+ and the RESPONSIVE JEM with fontawesome (only then you have the icons.
With other combinations you must adapt yourself.
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)
Attachments:

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

Last edit: by jojo12.

JEM 2.2.1 and View Non-attending/invited/waitings in view event 5 years 2 months ago #23799

should I include that into jem-responsive?
Rosen sind rot, gelb ist die Biene, ich kann nicht dichten, Waschmaschine.

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

JEM 2.2.1 and View Non-attending/invited/waitings in view event 5 years 2 months ago #23800

  • jojo12
  • jojo12's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 3486
  • Thank you received: 390
Hi Egnarts,
I don't think so: Because there will be people who don't want to see this possibility, others will (after all in small groups I think). If you include it, then all with responsive will be forced to use it.
But thanks for your great work, I really appreciate it.
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)

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

JEM 2.2.1 and View Non-attending/invited/waitings in view event 5 years 1 month ago #23963

Hi I would like to use icons instead of 1/-1 in attendee list. How do I add fontawesome and which modules do I change to use these icons?

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

JEM 2.2.1 and View Non-attending/invited/waitings in view event 5 years 1 month ago #23964

  • jojo12
  • jojo12's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 3486
  • Thank you received: 390
I don't know which template you use and on which joomla. For joomla 3+ there's a good solution with RESPONSIVE JEM from Egnarts here in the forum. with that you have fontawesome on board. It works with template overrides so the core JEM is safe.
the images and the color are then set like:
<i class="fa fa-check-square fa-fw fa-lg" style="color:green"></i>
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)
The following user(s) said Thank You: kenirvin

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

Last edit: by jojo12.
  • Page:
  • 1
Time to create page: 0.417 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.

Follow us......