PDA

View Full Version : Order todays events by time in calendar and forum_home_events


RobinPriestley
03-07-2006, 12:56 PM
Hello,

I don't know if it's possible but I want to show events in the calendar ordered by time. We are setting up a forum for the cinema I work at and it's pretty essential that films are in the correct order.

You have an option to order by date which gathers them well but they are displayed in each day in the order that I input them, as opposed to order of event.

Plus,

I want to ideally show todays events on the home page. I have been fiddling around with the forum_home_events template and can get todays events to show. But it just puts the event date and name. I can drop the $eventdate variable as this is not really needed, but where is the $daysevents variable compiled? is it possible to add the time here and order them by time?

Any help would be really appreciated.

Cheers,

Robin

I guess if $daysevents and $userevents simply have an mysql query added to say

Order by dateline_from

then it would work a treat. The only problem is I don't know where these variables are compiled?

Any pointers?

Cheers,

Robin

RobinPriestley
03-14-2006, 10:17 AM
I found this thread which seems to deal with a similar issue:

https://vborg.vbsupport.ru/showthread.php?t=76264

however it is for grouping events by event rather than date. is there a part of it that I can fiddle?

Incase my above post is a bit confusing, I simply want to have events ordered by time within each day on the calendar, rather than ordered by when they are entered into vbulletin. I guess the dateline_from field in the MySql table holds the key to this.

PLease help :)