CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Summary of Event Listings on frontend
Pages: [1] 2

Author Topic: Summary of Event Listings on frontend  (Read 7201 times)

vqcdesigns

  • Guest
Summary of Event Listings on frontend
June 12, 2008, 07:29:14 am
Is it possible to list ALL the active EVENTS in a summary format on the website frontend for users to easily access?

If you go here, http://secure2.vqcdesigns.com/~attorney/index.php?option=com_content&view=article&id=77&Itemid=67, you will see on the right hand side I have a listing (currently just HTML for display purposes) under Upcoming Events which displays mock events right now.  I would like to be able to display something similar to each of the Events I have created in CiviEvents.  I know I could hard-code the links, but I was looking for something more streamlined since our client will not want to have to manually add event listings each time they create an event.  Is there a module out there for CiviCRM that would allow for this functionality?

I am running Joomla 1.5.2 and CiviCRM 2.0.2.
« Last Edit: June 12, 2008, 07:31:04 am by vqcdesigns »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Summary of Event Listings on frontend
June 12, 2008, 11:08:44 am
There's an item on the 2.2 roadmap to provide this "out of the box". (This might happen sooner, depending on resources etc.).

Meanwhile, there is a URL you can use to get this is an RSS feed (see the CiviEvent >> Manage Events page). OR, there's PHP code on the wiki which will do this via API. Not sure what's involved in using this for a Joomla front-end page (in Drupal you can put this in a "block").

http://wiki.civicrm.org/confluence/display/CRMDOC/List+of+Upcoming+CiviEvents+or+Feed+of+Events
Protect your investment in CiviCRM by  becoming a Member!

vqcdesigns

  • Guest
Re: Summary of Event Listings on frontend
June 12, 2008, 02:11:56 pm
Is there anything special I need to do to have the events show up in the RSS feed?  I am getting the following error in IE7 when I click on the icon:  This feed contains code errors.

When I click on it in Firefox, it doesn't display any of my event listings.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Summary of Event Listings on frontend
June 12, 2008, 02:20:12 pm
Please try the demo site RSS feed w/ IE 7 (it works fine for me in FireFox):
http://drupal.demo.civicrm.org/civicrm/event/ical?reset=1&page=1&rss=1

Events need to be marked "Public" and have and End Date >= today to be included in the feed.
Protect your investment in CiviCRM by  becoming a Member!

vqcdesigns

  • Guest
Re: Summary of Event Listings on frontend
June 12, 2008, 02:34:44 pm
The link works fine in both IE7 and Firefox for me.  Any suggestions why mine doesn't work?

vqcdesigns

  • Guest
Re: Summary of Event Listings on frontend
June 18, 2008, 01:21:43 pm
Bump...I am still trying to figure out why my RSS Feed does not work.  Can anyone point me in the right direction? 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Summary of Event Listings on frontend
June 18, 2008, 02:49:36 pm

Your best bet is to compare the RSS generated on the demo site vs the RSS generated from your site and see if you can spot places where an error is thrown

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Summary of Event Listings on frontend
June 19, 2008, 10:48:12 am
you could try pointing the "Feed Validator" to your feed and see if errors pop up...

http://feedvalidator.org/
Protect your investment in CiviCRM by  becoming a Member!

vqcdesigns

  • Guest
Re: Summary of Event Listings on frontend
June 30, 2008, 10:21:08 pm
I am now able to get the feed to appear: http://secure2.vqcdesigns.com/~attorney/administrator/index2.php?option=com_civicrm&task=civicrm/event/ical&reset=1&page=1&rss=1 ; however, I cannot get it to work with any RSS readers that are available through the Joomla Extensions area at http://extensions.joomla.org/component/option,com_mtree/task,listcats/cat_id,1801/Itemid,35/.  Is this in a format that can be read by an RSS reader?  I desperately need to get this feed working so that it displays a list of the events created within CiviCRM on the website frontend.

I saw the post in the WIKI for the PHP code to integrate the API with Drupal; however, I am using Joomla so that will not work for me.  Any help would be greatly appreciated.
« Last Edit: June 30, 2008, 10:23:40 pm by vqcdesigns »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Summary of Event Listings on frontend
July 01, 2008, 07:06:24 am
As far as we know, the rss feeds from CiviEvent are valid. There is one open bug relating to special characters in the event info - but otherwise I have no idea why your feed isn't being handled by the Joomla readers. Have you run it thru the Feed Validator? If it validates, then you'll need to try and get help from folks who work with those extension(s). It also might be an issue of permissions ?? i.e. are those readers able to even read the output??

Protect your investment in CiviCRM by  becoming a Member!

vqcdesigns

  • Guest
Re: Summary of Event Listings on frontend
July 01, 2008, 07:57:01 am
I don't think this is an issue with the Joomla RSS feed readers.  If I try to run the RSS feed that you posted at http://drupal.demo.civicrm.org/civicrm/event/ical?reset=1&page=1&rss=1 , nothing is appearing either.   If I try to run that link through a feed validator at http://feedvalidator.org/, it says the feed does not validate.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Summary of Event Listings on frontend
July 01, 2008, 11:31:16 am

There was an event in chinese (ID: 23) which was causing the feed errors. I disabled that event, and the feed validates fine

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

vqcdesigns

  • Guest
Re: Summary of Event Listings on frontend
July 01, 2008, 01:11:30 pm
I was able to get this working by troubleshooting it based off the output of the Feed Validator.  Thanks for the help.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Summary of Event Listings on frontend
July 01, 2008, 01:44:37 pm

can u elaborate on what the issue was in your case? this help folks in future and might help us clean things up

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

vqcdesigns

  • Guest
Re: Summary of Event Listings on frontend
July 01, 2008, 02:09:34 pm
The first thing that was causing the error with the Feed Validator was the fact that I had the wrong URL.  I was trying to use the following URL: http://secure2.vqcdesigns.com/~attorney/administrator/index2.php?option=com_civicrm&task=civicrm/event/ical&reset=1&page=1&rss=1 when it should have been using http://secure2.vqcdesigns.com/~attorney/index2.php?option=com_civicrm&task=civicrm/event/ical&reset=1&page=1&rss=1 . Notice in the 2nd URL, I removed 'administrator' from the URL string.  That was an oversight on my part.

After running the correct url through the Feed Validator, I corrected the errors that it was pointing to.  It was mainly some errors with some unsupported characters.  Once I corrected that, it worked fine through the RSS Reader I am using with Joomla.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Summary of Event Listings on frontend

This forum was archived on 2017-11-26.