The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm webmaster for an online and paper publication here in New Mexico, USA. I'm good with most stuff, but I'm NOT a MYSQL expert.
For several months we've had a project going to greatly expand the number of events featured in our vBulletin calendar. We've been successful with that... beyond my wildest dreams. Therein lies the root of my dilemma. Our Calendar now contains over 2,100 future events and it's growing FAST! Our sitewide calendar features events from 40+ communities around our state. So, as part of our calendar expansion strategy, I asked the lady who was researching and adding calendar events to make sure that each event title begins with the community name followed by a colon as in - Albuquerque:, Las Cruces:, Santa Fe:, etc. My plan was to sort the events for each day by the name of the city within our calendar so that the events for each date would be listed by community within day. A week ago I tried making that change by adding an "order by title" clause to the calendar query that appears in functions_calendar.php At first, the change seemed to work fine. However, on close examination of the events on some days, I realized that although the list of events does get sorted and for a while everything is in sequence. The list is NOT always in full alphabetical order. For the life of me, I can't figure out why. But on days with many events in the list, the list will almost always have a few events at the end that seem to have been ignored by the sort. The web address for the site is: Our Home Page (that's a synonym for the licensed vbulletin domain name which is much longer). Our events the calendar can be found at: Steppin Out Calendar. If you look close at the list of events for September 9th, you'll see what is happening. It begins with an event whose title starts with "P" followed by 2 events with titles beginning with "T". Then it starts over again with events whose titles begin with A's and runs through a long list of events in exact alphabetical order and then it inexplicably starts OVER again with the A's and runs through yet another list of events in Alphabetical order. Can anyone give me a CLUE what is happening here? I swear to GOD the only change I made to that query in functions_calendar.php was to add the words "ORDER BY event.title" to the select statement. Here's the actual code block involved: Code:
WHERE calendarid = $calendarinfo[calendarid] AND ((dateline_to >= $beginday AND dateline_from < $endday) OR (dateline_to = 0 AND dateline_from >= $beginday AND dateline_from <= $endday )) AND visible = 1 ORDER BY event.title Thanks! PS. If this event needs to be MOVED, feel free to do so, but please leave a link behind here so that I can find it. Thanks! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|