help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
JEM 2.2.1 and View Non-attending/invited/waitings in view event
JEM 2.2.1 and View Non-attending/invited/waitings in view event
7 years 10 months ago - 7 years 10 months ago
[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:
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.
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:
Code:
// 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&task=userProfile&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&task=userProfile&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&task=userProfile&user=' . $register->uid) . '">' . $register->name . '</a></span></li>';
if ($register->status == 2)
echo '<li><a href="' . JRoute::_('index.php?option=com_comprofiler&task=userProfile&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.
Last edit: 7 years 10 months ago by jojo12.
Please Log in or Create an account to join the conversation.
Re: JEM 2.2.1 and View Non-attending/invited/waitings in view event
7 years 10 months ago
should I include that into jem-responsive?
Please Log in or Create an account to join the conversation.
Re: JEM 2.2.1 and View Non-attending/invited/waitings in view event
7 years 10 months ago
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.
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.
Please Log in or Create an account to join the conversation.
Re: JEM 2.2.1 and View Non-attending/invited/waitings in view event
7 years 9 months ago
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.
Re: JEM 2.2.1 and View Non-attending/invited/waitings in view event
7 years 9 months ago - 7 years 9 months ago
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:
the images and the color are then set like:
Code:
<i class="fa fa-check-square fa-fw fa-lg" style="color:green"></i>
Last edit: 7 years 9 months ago by jojo12.
The following user(s) said Thank You: kenirvin
Please Log in or Create an account to join the conversation.
Time to create page: 0.646 seconds