• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How can I add the Icon, location, etc to calendar

How can I add the Icon, location, etc to calendar 12 years 6 months ago #15130

Does anyone know how I can add more information to be displayed on the Calendar view? I have fooled around with it for a while, just can't quite figure it out.

I would like it to look like this

Icon
Event Name
Event Time


Any help would be greatly appreciated.

Thanks
The administrator has disabled public write access.

Re: How can I add the Icon, location, etc to calendar 11 years 11 months ago #17289

  • partenit
  • partenit's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
About adding Icon into Calendar view.
(for version 1.2.0)

1) in "/components/com_rsevents/models/events.php"
line # 723
$db->setQuery("SELECT e.IdEvent , e.EventName , e.EventStartDate , e.EventEndDate , l.LocationName FROM #__rsevents_events e LEFT JOIN #__rsevents_locations l ON l.IdLocation = e.IdLocation LEFT JOIN #__rsevents_events_cat ec ON ec.IdEvent = e.IdEvent LEFT JOIN #__rsevents_categories c ON c.IdCategory = ec.IdCategory WHERE 1=1 ".$where.$ordering);

change to
$db->setQuery("SELECT e.IdEvent , e.EventName , e.EventStartDate , e.EventEndDate , e.EventIcon, l.LocationName FROM #__rsevents_events e LEFT JOIN #__rsevents_locations l ON l.IdLocation = e.IdLocation LEFT JOIN #__rsevents_events_cat ec ON ec.IdEvent = e.IdEvent LEFT JOIN #__rsevents_categories c ON c.IdCategory = ec.IdCategory WHERE 1=1 ".$where.$ordering);

2) in "/components/com_rsevents/helpers/calendar.php"
in line # 661
<a href="<?php echo rseventsHelper::route('index.php?option=com_rsevents&view=events&layout=show&cid='.eventsHelper::sef($event,$this->_events[$event]->EventName).$itemId); ?>" class="editlinktip hasTip" <?php if ($color) { ?> style="color:<?php echo $this->_getColour($event); ?>;" <?php } ?> title="<?php echo $this->_showDetails($this->_events[$event], $suffix); ?>"><?php echo $view->escape($this->_events[$event]->EventName); ?></a>

add code like this:
<a href="<?php echo rseventsHelper::route('index.php?option=com_rsevents&view=events&layout=show&cid='.eventsHelper::sef($event,$this->_events[$event]->EventName).$itemId); ?>" class="editlinktip hasTip" <?php if ($color) { ?> style="color:<?php echo $this->_getColour($event); ?>;" <?php } ?> title="<?php echo $this->_showDetails($this->_events[$event], $suffix); ?>"><?php 
if ($this->_events[$event]->EventIcon) {
$event_icon_file = str_replace('.','_80.',$this->_events[$event]->EventIcon);
$event_icon_path = "/components/com_rsevents/assets/images/thumbs/".$event_icon_file;
echo '<img src="'.$event_icon_path.'" /><br />';
}
echo $view->escape($this->_events[$event]->EventName); ?></a>

3) in result you see view like this
dl.dropbox.com/u/989469/rsevents_icons_in_calendar_view.png

thats all! :)
Last Edit: 11 years 11 months ago by partenit.
The administrator has disabled public write access.

Re: How can I add the Icon, location, etc to calendar 11 years 3 months ago #20890

  • dante0
  • dante0's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
How do I do this RS EventsPRO? I am trying to do the same thing and the file structure is different.

I just want to call the event icon in the calendar cell view.

Thanks.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!