Welcome, Guest
Username: Password: Remember me
EventList 1.0.2 for Joomla 1.6 - 2.5
  • Page:
  • 1
  • 2

TOPIC:

Ical for Eventlist 1.0.2 7 years 11 months ago #8420

  • Andy
  • Andy's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 44
  • Thank you received: 4
I have made the ical file in manual in outlook so I have Time to wait for the release of JEM.

Please Log in or Create an account to join the conversation.

Ical for Eventlist 1.0.2 7 years 11 months ago #8421

alright,.


But will take a look at it, because the description in the ical has to include an eventtitle/category/link, for now it is showing only the title (in my case).
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

Ical for Eventlist 1.0.2 7 years 11 months ago #8422

Well,

The output of the .ics can be altered by adjusting some files.
But it will require some editing of php files.

it's about the files:
- helpers/helper.php

in that file you'll see text about // item description text.
Replace the stuff till the line "return true }" with the code below.
// item description text
		$description = $event->title.'\\n';
		
		
		// item description text
		$description = $event->title.'\\n';
		$description .= JText::_( 'CATEGORY' ).': '.$event->catname.'\\n';
	
		$itemid = JRequest::getVar('Itemid');
		$link = JRoute::_(JURI::root().'index.php?option=com_eventlist&view=details&id='. $event->slug.'&Itemid='.$itemid  );
		$link = JRoute::_( $link );
		$description .= JText::_( 'LINK' ).': '.$link.'\\n';
		
		// location
		$location = array($event->venue);
		if (isset($event->street) && !empty($event->street)) {
			$location[] = $event->street;
		}
		if (isset($event->city) && !empty($event->city)) {
			$location[] = $event->city;
		}
		if (isset($event->countryname) && !empty($event->countryname)) {
			$exp = explode(",",$event->countryname);
			$location[] = $exp[0];
		}
		$location = implode(",", $location);
		
		$e = new vevent();              // initiate a new EVENT
		$e->setProperty( 'summary', $event->title );           // title
		$e->setProperty( 'categories', $event->catname );           // categorize
		$e->setProperty( 'dtstart', $date, $dateparam );
		if (count($date_end)) {
			$e->setProperty( 'dtend', $date_end, $dateendparam );
		}
		$e->setProperty( 'description', $description );    // describe the event
		$e->setProperty( 'location', $location ); // locate the event
		
		$e->setProperty( 'url', $link );
		
		$calendartool->addComponent( $e );                    // add component to calendar
		return true;
	}


- model/eventlist.php
there you have to find the text "function _buildQuery()".
then the line ". ' l.id, l.venue, l.city, l.state, l.url,'"
replace that line with
. ' l.id, l.venue, l.city, l.street, l.state, l.url,'
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.445 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......