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 Joomla Extensions (Moderator: lcdweb) »
  • Can I make CiviEvent Joomla Module show old events?
Pages: [1]

Author Topic: Can I make CiviEvent Joomla Module show old events?  (Read 1726 times)

Pelle P

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • CiviCRM version: CiviCRM 4.1.3
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.39
  • PHP version: 5.2.10
Can I make CiviEvent Joomla Module show old events?
November 23, 2011, 03:53:25 am
The CiviEvent Joomla Module works perfect!

(http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviEvent+Joomla+Module)

But I wonder. Is it possible to modify the module a little. I want the module to also show old events.

Can I do this by changing the date parameter in the code, or is it more complicated?

– Are there other ways to show event from the past.

Best Regards

Pelle


Pelle P

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • CiviCRM version: CiviCRM 4.1.3
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.39
  • PHP version: 5.2.10
Re: Can I make CiviEvent Joomla Module show old events?
December 12, 2011, 05:08:08 am
There is a lot of readers but no answers...  :)

Can anyone guide me a little?

Do you need more input?

Best Regards

Pelle

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: Can I make CiviEvent Joomla Module show old events?
December 12, 2011, 06:58:38 am

You might want to take a look at the code and the query and see what u need to change

I suspect tweaking the dates and the conditions should help u find older events.

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

Pelle P

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • CiviCRM version: CiviCRM 4.1.3
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.39
  • PHP version: 5.2.10
Re: Can I make CiviEvent Joomla Module show old events?
December 15, 2011, 01:01:34 am
I took a look at the code but I am not a programmer, so it is difficult for me to see what I have to change. I don't see any logical (for me) parameters to change.

Can You give me an idea of what I have to look for?

Best regards

Pelle

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: Can I make CiviEvent Joomla Module show old events?
December 15, 2011, 07:00:09 am

sorry i have not looked at that code. Your best bet would be to work with someone locally who knows php and/or hire someone from http://civicrm.org/professional/ to make the needed changes.

Also please do not post the same topic multiple times.

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

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: Can I make CiviEvent Joomla Module show old events?
December 16, 2011, 01:25:18 pm
take a look at helper.php

Code: [Select]
//set default date range to current and future events only. this is overwritten if date select mode is used
$currentdate = date("Y-m-d");
//only view events that end on or after current date, or where no end_date is defined
$wheredaterange = " AND ( end_date >= '".$currentdate."' OR end_date IS NULL OR end_date = '' ) ";
//only view events that start on or after current date
$wheredaterange .= " AND start_date >= '".$currentdate."'";

and then learn some PHP and SQL.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Can I make CiviEvent Joomla Module show old events?

This forum was archived on 2017-11-26.