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) »
  • Code Contribution - An event listing page
Pages: 1 [2]

Author Topic: Code Contribution - An event listing page  (Read 5450 times)

ericj

  • Guest
Re: Code Contribution - An event listing page
August 22, 2008, 08:53:09 am
Sonicthoughts, would you mind sharing your scrolling event block code with us?  That's a pretty nifty toy.

Also, can you tell me what versions of Drupal Calendar/Date/Views you are running?  I've been having some problems with ical feeds and think it may be attributed to older versions of the softwares.  Thank you

ericj

  • Guest
Re: Code Contribution - An event listing page
August 25, 2008, 02:01:37 pm
Ok, I think I got my ical feed figured out.  I wasn't using cron.php on a frequent enough basis.  Now I've scheduled it to run a couple times per day.

Now...about that that scrolling event block... :)

Thank you everyone for the help!

joomler

  • Guest
Re: Code Contribution - An event listing page
November 09, 2008, 11:55:39 am
Quote from: Kurund Jalmi on August 17, 2008, 02:14:40 am
sonicthoughts:

Can you add it to http://wiki.civicrm.org/confluence/display/CRMDOC/Using+CiviCRM+APIs+-+Code+Snippets#UsingCiviCRMAPIs-CodeSnippets-CreateEventListingPage(basedonEventBlockcode)

kurund



I read this topic, but i really confused how to get it working in Joomla 1.5   ...

I use civicrm 2.1.1, and need to list events in the frontend,

For this I

1) created  a .php file called list.php where inserted full code posted by sonicthoughts , 
2) put it in the  MY_JOOMLA_ROOT\administrator\components\com_civicrm\civicrm\
3) created content item with the help of Jumi component  (it allow insert custom code to joomla, read more here http://jumi.vedeme.cz/index.php?option=com_content&view=article&id=2&Itemid=18 )
in the config screen of this component  i inserted pach to my  list.php file  : \administrator\components\com_civicrm\list.php

But now, when i trying to access  a page with list of events  (already created in the bacend of the civicrm) i get an error :

Fatal error: Call to undefined function module_exists() in M:\home\portal15\www\administrator\components\com_civicrm\civicrm\list.php on line 10
i checked list.php : on the line 10 i see  :    if (module_exists('civicrm')) {


How to solve this ?  please help



i tried erase this line   but then i get other errors.... 
I am sure, i installed civicrm correctly, because other pages like dashboard and events registration works fine!! 

« Last Edit: November 09, 2008, 11:59:08 am by joomler »

Inc

  • Guest
Re: Code Contribution - An event listing page
November 09, 2008, 08:41:35 pm
hi, I attempted to use this code on a site running drupal 6.5 and civicrm 2.1 and I received this error
Quote
Parse error: syntax error, unexpected '>' in
/home/inc/vhosts/websitename.com/htdocs/includes/common.inc(1547) : eval()'d code on line 1
any ideas?

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Code Contribution - An event listing page

This forum was archived on 2017-11-26.