Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:31 am EST
Geeklog Forums
Bug in Events time display
Status: offline
soydog
Forum User
Chatty
Registered: 08/18/03
Posts: 49
There seems to be a bug in the display of time in Events. At least on my website, when you click to view an event, it misleadingly shows the time that an event ends and nothing else. It doesn't say that that's the time that it ends. It's the only time that is shown. I've just realized the same thing for all the events shown on my website.
For example, there's an event that starts at 7pm and ends at 9pm. When you go to the event page, it only says 9pm next to the date and nothing else such as 7pm or when it begins or ends.
The only way I can trick it to show the actual time an event is supposed to start is by setting both the starting and ending time as the same as the ending time.
Any ideas?
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
For example, there's an event that starts at 7pm and ends at 9pm. When you go to the event page, it only says 9pm next to the date and nothing else such as 7pm or when it begins or ends.
The only way I can trick it to show the actual time an event is supposed to start is by setting both the starting and ending time as the same as the ending time.
Any ideas?
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
10
7
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
in layout/your_theme/calendar/eventdetails.thtml you should have the following line:
I bet you are missing event_start and instead only have event_end.
Text Formatted Code
<td width="100%">{event_start} - {event_end}</td>I bet you are missing event_start and instead only have event_end.
12
7
Quote
Status: offline
soydog
Forum User
Chatty
Registered: 08/18/03
Posts: 49
Quote by Turias:I bet you are missing event_start and instead only have event_end.
I just checked and event_start is there.
Here's my eventdetails.thtml:
{event_begin_anchortag}{event_title}{event_end_anchortag}
{lang_when}:
{event_start} - {event_end}
{lang_where}:
{event_location}{br0}
{event_address1}{br1}
{event_address2}{br2}
{event_city}{event_state} {event_zip}
{lang_description}:
{event_description}
{addremove_event}
Edited: Obviously it doesn't look like the above. All the html seems to have been stripped out.
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
7
7
Quote
Status: offline
soydog
Forum User
Chatty
Registered: 08/18/03
Posts: 49
Quote by Turias: Can you play around with that file a little and figure out exactly what {event_start} and {event_end} print for your events?
I would like to... but I'm actually not that good with this kind of stuff and wouldn't know how to go about doing that. If you could give instructions, I could probably figure it out.
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
7
8
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
In the eventdetails file, just sandwich the two variables between some markers. For example, change {event_start} to: ---{event_start}--- and {event_end} to +++{event_end}+++.
Then, click on one of your events and tell me what you see between the -'s and the +'s.
Then, click on one of your events and tell me what you see between the -'s and the +'s.
6
8
Quote
Status: offline
soydog
Forum User
Chatty
Registered: 08/18/03
Posts: 49
Thanks. Ok. it shows this:
---Tuesday November 11, 2003--- - +++07:00 PM PST+++
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
---Tuesday November 11, 2003--- - +++07:00 PM PST+++
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
7
6
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
Here are a couple more questions:
1) Has calendar_event.php been modified since you installed GL?
2) If you look directly at the events in the database using phpMyAdmin, is the correct start-time in there?
3) Have you modified any of the default date/time settings in the Locale section of your config.php?
1) Has calendar_event.php been modified since you installed GL?
2) If you look directly at the events in the database using phpMyAdmin, is the correct start-time in there?
3) Have you modified any of the default date/time settings in the Locale section of your config.php?
6
7
Quote
Status: offline
soydog
Forum User
Chatty
Registered: 08/18/03
Posts: 49
I'll look into the first two, but for the third question, I know right off the bat that I did edit the way the date and time displays in config.php. And you know what, I think it probably has to do with that because I edited out the time altogether that would show up as "@ 05:28 PM EST" because I just wanted the dates to show.
I'll first try putting that back into the config.php and see what it does. If it works, I suppose I could live with the time showing but it doesn't seem very elegant for the date/time display option to control important event information in the calendar...
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
I'll first try putting that back into the config.php and see what it does. If it works, I suppose I could live with the time showing but it doesn't seem very elegant for the date/time display option to control important event information in the calendar...
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
7
5
Quote
Status: offline
soydog
Forum User
Chatty
Registered: 08/18/03
Posts: 49
Yeah. That was it. It works now, although it breaks the way I had my menubar laid out.... but I think I can sort it out from here.
Thanks so much for the help, Turias. All the support I'm getting here is what makes GeekLog so great and shows that I chose the right CMS.
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
Thanks so much for the help, Turias. All the support I'm getting here is what makes GeekLog so great and shows that I chose the right CMS.
Anarchist Football Network - http://www.passionbomb.com/soccer
"If I can't play soccer, I want no part of your revolution."
24
10
Quote
All times are EST. The time is now 09:31 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content