Jevents 2.x (Free Access)

Search: not show all event repetions

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 rianwouters » Wed Feb 27, 2013 11:11 am

Why can't I use search to find all repeats of an event?
From the discussion above I take it that there are at least 3 different search scenarios:
- only the event, only the first repeat
- first repeat + next repeat
- all repeats

To do what I want I have patched dbmodel:

Code: Select all
$query2 = ...         
          ...
          . "\n ORDER BY rpt.startrepeat ASC limit 1";


changed to

Code: Select all
$query2 = ...         
          ...
          . "\n ORDER BY rpt.startrepeat ASC";


and

Code: Select all
$data = $db->loadObject();
// belts and braces - some servers have a MYSQLK bug on the  user of DISTINCT!
if (!$data->ev_id)
   continue;
$icalrows[] = $data;


changed to

Code: Select all
$rows = $db->loadObjectList();
foreach ($rows as $data)
{
    if (!$data->ev_id)
   continue;
    $icalrows[] = $data;
}




Has anything changed on this part in later versions?
rianwouters
 
Posts: 5
Joined: Wed Feb 27, 2013 10:17 am

Postby Geraint » Wed Feb 27, 2013 11:30 am

Your code should work
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: 42799
Joined: Fri Feb 15, 2008 6:14 pm

Postby rianwouters » Wed Feb 27, 2013 12:49 pm

Yes but why is this not the default behaviour or an optional search argument. I should not have to patch my php to do this, right?
rianwouters
 
Posts: 5
Joined: Wed Feb 27, 2013 10:17 am

Postby Geraint » Wed Feb 27, 2013 2:55 pm

It is designed to show the next occuring repeat from where you can then reach all the other repeats.
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: 42799
Joined: Fri Feb 15, 2008 6:14 pm

Postby Picannick » Thu Apr 11, 2013 2:53 pm

I am wondering too, why this is not a core feature, but whit the solution from "Ryanwouters" i get really close to a perfect solution! (Thanx for that!)

After making these changes i got problem with sorting of entrys, i don't get a list with a <tr> for each day (and all events from this day).

Now i get all repeats from the first event, after that all repeats from next event, etc...

Is it possible to reorder (and group them by day), like jevents did it before?

Thanx
Picannick
 
Posts: 2
Joined: Tue Aug 31, 2010 11:33 am

Postby Picannick » Mon Apr 22, 2013 12:23 pm

Is there nobody who can help me?
Picannick
 
Posts: 2
Joined: Tue Aug 31, 2010 11:33 am

Previous

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: Baidu [Spider]