Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Comments & details together

9 years 8 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

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

9 years 8 months ago
Licenses:

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>

With this:
<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 } ?>

Result should be: prntscr.com/8cpye4


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 7 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Michal
Thank you very much! It works like a charm!

See you!
Miran

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW