Jevents 2.x (Free Access)

Search plugin - problem with events' dates

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support please follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

Postby stanislawl » Tue Oct 18, 2011 10:54 am

Hello again,

I went to the folder plugins/search/eventsearch, opened the file eventsearch.php and replaced the code in line 330:

Code: Select all
$startdate = new JevDate(strtotime($item->startrepeat));

by the following:

Code: Select all
$startdate = new JevDate(strtotime($item->endrepeat));

Everything is OK now. What is the reason?

Best regards,
Posts: 12
Joined: Mon Oct 10, 2011 1:58 pm

Postby Geraint » Tue Oct 18, 2011 3:28 pm

that is using the end date for the repeat not the start date.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Posts: 42799
Joined: Fri Feb 15, 2008 6:14 pm

Postby stanislawl » Tue Oct 18, 2011 4:01 pm

Yes, that's right. But now the search results contain the start dates of all repeating events... How to explain this?
Posts: 12
Joined: Mon Oct 10, 2011 1:58 pm

Postby cadservices » Wed Oct 19, 2011 8:07 am

Thank you, I found how to solve event's dates problem
Posts: 1
Joined: Wed Oct 19, 2011 4:57 am

Postby stanislawl » Thu Oct 20, 2011 8:59 am

Sorry, it is not OK. Only years are correct, days and months are not...
Posts: 12
Joined: Mon Oct 10, 2011 1:58 pm

Postby stanislawl » Sat Oct 29, 2011 6:59 pm

[code][/code]Hello again,

I have just made some changes in the table jos_jevents_repetition. I ordered records by the fields eventid and startrepeat. Then I "renumbered" the table, i.e. I changed the values in the key field rp_id to 1, 2, 3 etc. - so that the records are stored in the described order.

Now the search results are correct - there are their first occurances there (see: ... com_search).

It seems the reason of the "strange" search results is that some events have been edited so the details of their repetitions in the table jos_jevents_repetition were not "in the order".

Is it possible to change the SELECT instruction in the code of the plugin so that such a "revolution" in the database is not necessary?

Best regards,
Posts: 12
Joined: Mon Oct 10, 2011 1:58 pm


Return to Jevents 2.x (Free Access)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: Bing [Bot]