![]() |
Nice widget, but it won't show 'All Day'-events.
To fix this find: Code:
$query = sprintf("SELECT * FROM ".TABLE_PREFIX."event WHERE visible = 1 AND (dateline_from > '%d' || ( dateline_from > '%d' AND dateline_to < '%d' )) ORDER BY dateline_from ASC LIMIT %d",TIMENOW,TIMENOW,TIMENOW,$show_count); Code:
$query = sprintf("SELECT * FROM ".TABLE_PREFIX."event WHERE visible = 1 AND (dateline_from > '%1\$d' || ( dateline_from > '%1\$d' AND dateline_to < '%1\$d' ) || (dateline_to = 0 AND DATE(FROM_UNIXTIME(dateline_from)) = DATE(FROM_UNIXTIME(%1\$d)))) ORDER BY dateline_from ASC LIMIT %2\$d",TIMENOW,$show_count); Christian Stadler |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Try again. I fixed a typo in my post above. It should work now.
|
1 Attachment(s)
ahha i just noticed something
the problem only occurs if you don't use ranged events and set an end date ... to make it work correctly you have to have a starting and ending day. so the weird thing happens only on single all day events haven't tried reoccurring yet ! works i figured it out now installed |
Quote:
Thanks for helping though Stadler. :) |
The two issues that seem to persist are:
(1) Getting re-curring events to display after the initial day (even though I have specific date ranges); and (2) Getting the current day's events to display Otherwise, it's a great mod and in spite of these issues, I use it on my main page. Think it's funny that vBulletin does not provide this as a built-in feature (similar to their built-in feature that displays recent posts) |
Quote:
[Edit:]Here's the full code in my widget: PHP Code:
|
All times are GMT. The time now is 08:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|