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.

How to remove fields on event pages?

9 years 11 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

Hello,

I would like to remove the following fields on the bottom of event pages:

Category
Time
Location
Event Admins


Can you provide instructions? Thank you.

9 years 11 months ago
Licenses:

Hi, Dexter.

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 any of those folders, feel free to create them)

Then remove this lines (529-549):

<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>

This will remove;

Category
Time
Location
Event Admins

From Event Details tab, only description will remain.


- 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 11 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

No such folder or file exist:

layouts/events/single.php

9 years 11 months ago
Licenses:

Hi, Dexter.

But it does: prntscr.com/7aai0w
If you don't have it, it means you use outdated version of JomSocial.
My solution apply to JomSocial 4.x.x.


- 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 11 months ago
  • Dexter's Avatar
    Topic Author
  • Dexter
  • Offline
  • Fresh Boarder
  • Posts: 56
  • Thank you received: 4
Licenses:
JomSocial Active

I upgraded yesterday. Issue solved.

Thanks.

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