Quote:
Originally Posted by wampforum
Second thing is there a way to make it pull dates from a single calendar? At the moment it also pulls from a private calendar
|
Change the code like this:
$query = sprintf("SELECT * FROM ".TABLE_PREFIX."event WHERE visible = 1 AND
calendarid = X AND (dateline_from > '%d' || ( dateline_from > '%d' AND dateline_to > '%d' )) ORDER BY dateline_from ASC LIMIT %d",TIMENOW,TIMENOW,TIMENOW,$show_count);
X should be the ID of the calendar you want the events to be taken from.
I am not a professional programmer, i. e. an expert should have a look at it.
Netzwart