Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Date, not event title, at top of details listing
Pages: [1]   Go Down
Print
Author Topic: Date, not event title, at top of details listing  (Read 515 times)
0 Members and 1 Guest are viewing this topic.
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: June 03, 2005, 11:33:00 AM »

Hi. I'm trying to do a mod so that the date appears instead of the event name when you click on the calendar item and see the details. However I only want to display the calendar for a specific period of time and so in my initial URL I have to show the starting date. Problem is, whatever I try to do, the starting date is used as the date at the top of the details list. Any ideas?

If you want to see the problem go to http://www.riponinternationalfestival.com/cgi-bin/calendar/calendar.pl?year=2005&month=09&date=03  (date necessary to show calendar for this date onwards) and click on any event (always shows 3rd September at top of listing)

Help!

Thanks

===Toby Wallis===

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #1 on: June 03, 2005, 11:39:00 AM »

Incidentally, when you see the details page, if you take out the date reference in the URL and hit enter, the correct date shows for the event.

===Toby===

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #2 on: June 03, 2005, 12:42:00 PM »

** Any ideas? **

Not without knowing what code you're using in the template to print the date there.

BTW. What code are you using to print the event time?

Dan O.


[This message has been edited by DanO (edited June 03, 2005).]

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #3 on: June 04, 2005, 05:19:00 AM »

I have replaced:

<TD ALIGN="center" WIDTH="20%" BGCOLOR="<%=$_NAVIGATION_BGCOLOR%>"><B><SPAN CLASS="navigationtext"><FONT <%=$_HEADER_SIZE%> COLOR="<%=$_NAVIGATION_TEXT_COLOR%>"><%= EVENT FIELD(title) %></FONT></SPAN></B></TD>

with:

<TD ALIGN="center" WIDTH="60%" BGCOLOR="<%=$_NAVIGATION_BGCOLOR%>"><B><SPAN CLASS="navigationtext"><FONT <%=$_HEADER_SIZE%> COLOR="<%=$_NAVIGATION_TEXT_COLOR%>"><%=$DAY->{'dayname'}%> <%=$DAY->{'monthname'}%> <%=$DATE%>, <%=$YEAR%></FONT></SPAN></B></TD>

I'm not printing out the time in this view.

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: June 04, 2005, 12:42:00 PM »

** I'm not printing out the time in this view. **

The one event I looked at did, "Start Time:  7.30 pm". I assume the other would too. How is that time display being generated???


** <%=$DAY->{'dayname'}%> <%=$DAY->{'monthname'}%> <%=$DATE%>, <%=$YEAR%> **

If you want to use that code to display the date, you'll have to pass the proper values for date, month and year in the link to the template similar to your link to the main calendar view you posted above (ie. year=2005&month=09&date=03).

You can read about doing something similar (although maybe not exactly what you need) in the previous forum message "Add name of Day to datestring in Event View".

BTW. I'm surprised your code worked at all as I though the $DAY->{... variables where only available inside the calendar grids themselves.

The only other way I know of is the more detailed method as described in the previous forum message "Adding Date and Time to Event View".

JFYI

Dan O.

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: June 05, 2005, 01:29:00 AM »

Sorry, DanO, the time is actually added as a separate field in the event details and isn't generated by the script.

===Toby===

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #6 on: June 05, 2005, 12:43:00 PM »

** the time is actually added as a separate field in the event details **

Oh. Too bad, if you had figured out how to get it from the event's schedule, something similar might have been used to retrieve the event's date.

I guess you'll have to modify the links in the calendar grids to pass the appropriate information to the event detail display.

Dan O.

------------------

Logged
tobywallis
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #7 on: June 06, 2005, 04:16:00 AM »

Yes I reckon you're right. I don't suppose the QueryString is generated in just one place by any chance? If so I should be able to mod it out...

===Toby===

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #8 on: June 06, 2005, 12:36:00 PM »

** I don't suppose the QueryString is generated in just one place by any chance? **

Search the calendar.pl file for $Template::CGI_URL_QUERYSTRING


** If so I should be able to mod it out... **

I don't know if you were thinking of some sort of global change but it is going to have to be different for the links in each day in the grids.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: