Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 02:49 am EST
Geeklog Forums
Events block not listing events that occur on the current day
55118
Anonymous
On our site, events that occur on the current day are not showing.
Any idea where that would be controlled? We're using Geeklog 1.4.1 and don't believe any changes have been made to code that would affect that, but since we've got the problem figure it might have happened.
Any idea where that would be controlled? We're using Geeklog 1.4.1 and don't believe any changes have been made to code that would affect that, but since we've got the problem figure it might have happened.
8
10
Quote
55118
Anonymous
Thank you. I had searched the archives, but somehow didn't find that.
Per your comments regarding where the code was:
function phpblock_calendar() in /public_html/plugins/calendar/functions.inc
And Craig's about changing
$eventSql = 'SELECT eid,title,url,datestart,dateend,group_id,owner_id,perm_owner,perm_group,perm_members,perm_anon '
. "FROM {$_TABLES['events']} "
. "WHERE dateend >= NOW() AND (TO_DAYS(datestart) - TO_DAYS(NOW()) < $range) "
. 'ORDER BY datestart,timestart';
to
$eventSql = 'SELECT eid,title,url,datestart,dateend,group_id,owner_id,perm_owner,perm_group,perm_members,perm_anon '
. "FROM {$_TABLES['events']} "
. "WHERE dateend >= (NOW() - INTERVAL 24 HOUR) AND (TO_DAYS(datestart) - TO_DAYS(NOW()) < $range) "
. 'ORDER BY datestart,timestart';
Even after you pointed that out, my other problem was that when I upgraded the site a while ago, I'd forgotten to download all the changed files to my computer at home and while I've been able to muck with some things, couldn't find the Calendar's functions.inc file. Thankfully the brain kicked in. Figured giving the path as well might help someone else.
Many thanks for your speedy reply!
Per your comments regarding where the code was:
function phpblock_calendar() in /public_html/plugins/calendar/functions.inc
And Craig's about changing
$eventSql = 'SELECT eid,title,url,datestart,dateend,group_id,owner_id,perm_owner,perm_group,perm_members,perm_anon '
. "FROM {$_TABLES['events']} "
. "WHERE dateend >= NOW() AND (TO_DAYS(datestart) - TO_DAYS(NOW()) < $range) "
. 'ORDER BY datestart,timestart';
to
$eventSql = 'SELECT eid,title,url,datestart,dateend,group_id,owner_id,perm_owner,perm_group,perm_members,perm_anon '
. "FROM {$_TABLES['events']} "
. "WHERE dateend >= (NOW() - INTERVAL 24 HOUR) AND (TO_DAYS(datestart) - TO_DAYS(NOW()) < $range) "
. 'ORDER BY datestart,timestart';
Even after you pointed that out, my other problem was that when I upgraded the site a while ago, I'd forgotten to download all the changed files to my computer at home and while I've been able to muck with some things, couldn't find the Calendar's functions.inc file. Thankfully the brain kicked in. Figured giving the path as well might help someone else.
Many thanks for your speedy reply!
8
6
Quote
All times are EST. The time is now 02:49 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content