Hi on my J3 website i'm using the latest JS.
For my events, on the event details page, i have details and comments side by side, and the visitor can click on one and read it. I would like to have comments and details readable at the same time, without having to click on it...
My problem is visible here
www.yayos.fr/calendrier-des-sorties-spor...vent/198-sortie-velo
Thank you!
Regards Miran
Hi, Miran.
Copy this file:
ROOT/components/com_community/templates/jomsocial/layouts/events/single.php
to:
ROOT/templates/your-template/html/com_community/layouts/events/ (if you don't have those folders - feel free to create them)
Then replace this (line 511):
<div class="joms-tab__bar">
<?php if( $showStream ) { ?>
<a href="#joms-event--stream" class="<?php echo ($config->get('default_event_tab') == 0) ? 'active' : ''; ?>">
<?php echo JText::_('COM_COMMUNITY_FRONTPAGE_RECENT_ACTIVITIES');?>
</a>
<?php } ?>
<a href="#joms-event--details" class="<?php echo (!$showStream || $config->get('default_event_tab') == 1) ? 'active' : '' ; ?>">
<?php echo JText::_('COM_COMMUNITY_EVENTS_DETAIL');?>
</a>
</div>
<div class="joms-gap"></div>
<?php if( $showStream ) { ?>
<div id="joms-event--stream" class="joms-tab__content" style="<?php echo (!$showStream || $config->get('default_event_tab') == 1) ? 'display:none;' : '' ; ?>">
<?php
$status->render();
echo $streamHTML;
?>
</div>
<?php } ?>
<div id="joms-event--details" class="joms-tab__content" style="<?php echo ($config->get('default_event_tab') == 0) ? 'display:none;' : '' ; ?>">
<ul class="joms-list__row">
<?php if( !CStringHelper::isHTML($event->description) ) { ?>
<li><?php echo CStringHelper::nl2br($event->description); ?></li>
<?php } else { ?>
<li><?php echo $event->description; ?></li>
<?php } ?>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_CATEGORY'); ?></h5>
<span><a href="<?php echo CRoute::_('index.php?option=com_community&view=events&categoryid=' . $event->catid);?>"><?php echo JText::_( $event->getCategoryName() ); ?></a></span>
</li>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_TIME')?></h5>
<span>
<?php echo ($allday) ? JText::sprintf('COM_COMMUNITY_EVENTS_ALLDAY_DATE',$event->startdateHTML) : JText::sprintf('COM_COMMUNITY_EVENTS_DURATION',$event->startdateHTML,$event->enddateHTML); ?>
<?php if( $config->get('eventshowtimezone') ) {
echo $timezone; ?>
<?php } ?>
</span>
</li>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_LOCATION');?></h5>
<span><a href="http://maps.google.com/?q=<?php echo urlencode($event->location); ?>" target="_blank"><?php echo $event->location; ?></a></span>
</li>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_ADMINS')?></h5>
<span><?php echo $adminsList;?></span>
</li>
<?php if ($event->isRecurring()) { ?>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_OCCURENCE');?></h5>
<span><?php echo JText::_('COM_COMMUNITY_EVENTS_REPEAT_' . strtoupper($event->repeat)); ?></span>
</li>
<?php }?>
</ul>
</div>
<div id="joms-event--details" class="joms-tab__content">
<ul class="joms-list__row">
<?php if( !CStringHelper::isHTML($event->description) ) { ?>
<li><?php echo CStringHelper::nl2br($event->description); ?></li>
<?php } else { ?>
<li><?php echo $event->description; ?></li>
<?php } ?>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_CATEGORY'); ?></h5>
<span><a href="<?php echo CRoute::_('index.php?option=com_community&view=events&categoryid=' . $event->catid);?>"><?php echo JText::_( $event->getCategoryName() ); ?></a></span>
</li>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_TIME')?></h5>
<span>
<?php echo ($allday) ? JText::sprintf('COM_COMMUNITY_EVENTS_ALLDAY_DATE',$event->startdateHTML) : JText::sprintf('COM_COMMUNITY_EVENTS_DURATION',$event->startdateHTML,$event->enddateHTML); ?>
<?php if( $config->get('eventshowtimezone') ) {
echo $timezone; ?>
<?php } ?>
</span>
</li>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_LOCATION');?></h5>
<span><a href="http://maps.google.com/?q=<?php echo urlencode($event->location); ?>" target="_blank"><?php echo $event->location; ?></a></span>
</li>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_ADMINS')?></h5>
<span><?php echo $adminsList;?></span>
</li>
<?php if ($event->isRecurring()) { ?>
<li>
<h5 class="joms-text--light"><?php echo JText::_('COM_COMMUNITY_EVENTS_OCCURENCE');?></h5>
<span><?php echo JText::_('COM_COMMUNITY_EVENTS_REPEAT_' . strtoupper($event->repeat)); ?></span>
</li>
<?php }?>
</ul>
</div>
<?php if( $showStream ) { ?>
<div id="joms-event--stream" class="joms-tab__content">
<?php
$status->render();
echo $streamHTML;
?>
</div>
<?php } ?>