Author Topic: Editing Event Calendar  (Read 1075 times)

vcaron

  • Newbie
  • *
  • Posts: 1
  • Karma: 3
    • View Profile
Editing Event Calendar
« on: March 18, 2010, 10:51:51 AM »
I'm new at SOS and not webpage savvy, so this may be a very basic question.

I'm a teacher and I want to split events up into their grading periods to make it easier for parents and teachers to access.
When I tried to make a new calendar, it's the same as the old one. If I can have 2, I would like them. If I can only have one, I would at least like it to change directions so that the most current dates are at the top and it's not necessary to scroll all the way down to the bottom to see what's happening. I saw one SOS site that did it, but I can't find out how.

~vcaron

HandsomeWeb

  • SOS Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 85
  • Karma: 2
    • View Profile
    • SOS Webpages
Re: Editing Event Calendar
« Reply #1 on: March 18, 2010, 12:34:49 PM »
The quick solution requires you to edit the file modules/eventcal.php

Change line 163 from

Code: [Select]
$sql="SELECT * FROM " . $dbprefix . "eventcal ORDER BY eventcal_date, eventcal_time";
to

Code: [Select]
$sql="SELECT * FROM " . $dbprefix . "eventcal ORDER BY eventcal_date DESC, eventcal_time DESC";
Whoever installed SOS Webpages for you should be able to do this.  NOTE: The file may be changed on any updates to SOS Webpages.

You are not the first teacher to ask that same question.  I will consider writing a class/assignments module this summer. Please let me know the features you would feel are most important and how you would like to see them work.
Chris
http://www.soswebpages.com
http://www.handsomeweb.com
http://www.handsomewebservices.com