J and Beyond 2013 | An International Joomla! Conference - May 31st - 2nd, 2013, Noordwijkerhout, The Netherlands
It is currently Sun May 19, 2013 5:23 pm

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 copy and paste the 'Version information for Support Forum' from the JEvents Control Panel into your post. If you cannot see this, please enable JEvents project news within it's configuration. Also, if you get a 500 Error, Enable Joomla! Maximum Error Reporting and view the page again, you should now have a more detailed error which will help us to resolve you issue quickly.

Re: Search plugin - problem with events' dates

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,
Stan
stanislawl
Posts: 12
Joined: Mon Oct 10, 2011 1:58 pm

Re: Search plugin - problem with events' dates

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
Geraint
Posts: 30518
Joined: Fri Feb 15, 2008 6:14 pm

Re: Search plugin - problem with events' dates

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?
stanislawl
Posts: 12
Joined: Mon Oct 10, 2011 1:58 pm

Re: Search plugin - problem with events' dates

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

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

Re: Search plugin - problem with events' dates

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

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

Problem solved???

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: http://www.domdzieci.eu/index.php?searc ... 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,
Stan
stanislawl
Posts: 12
Joined: Mon Oct 10, 2011 1:58 pm

Previous

Return to Jevents 2.x (Free Access)

Who is online

Users browsing this forum: Yviberlin

Main Menu

User Menu

Hosted By


Who is online

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: Yviberlin

Login Form