Topics

User Functions

Events

There are no upcoming events

What's New

Stories

1 new Stories in the last 2 weeks

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 25 2013 @ 12:52 PM EDT


 Forum Index > Extensions > PHP Blocks New Topic Post Reply
 Bug in Events time display
   
soydog
 11/05/03 04:27AM (Read 2111 times)  
+++--
Chatty

Status: offline


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."
 
Profile Email Website
 Quote
Turias
 11/05/03 11:00AM  
+++++
Full Member

Status: offline


Registered: 10/20/03
Posts: 807
in layout/your_theme/calendar/eventdetails.thtml you should have the following line:

PHP Formatted Code
<td width="100%">{event_start} - {event_end}</td>
 


I bet you are missing event_start and instead only have event_end.

 
Profile Email Website
 Quote
soydog
 11/05/03 04:23PM  
+++--
Chatty

Status: offline


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."
 
Profile Email Website
 Quote
Turias
 11/05/03 04:32PM  
+++++
Full Member

Status: offline


Registered: 10/20/03
Posts: 807
Can you play around with that file a little and figure out exactly what {event_start} and {event_end} print for your events?

 
Profile Email Website
 Quote
soydog
 11/05/03 04:57PM  
+++--
Chatty

Status: offline


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."
 
Profile Email Website
 Quote
Turias
 11/05/03 05:00PM  
+++++
Full Member

Status: offline


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.

 
Profile Email Website
 Quote
soydog
 11/05/03 05:17PM  
+++--
Chatty

Status: offline


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."
 
Profile Email Website
 Quote
Turias
 11/05/03 05:26PM  
+++++
Full Member

Status: offline


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?

 
Profile Email Website
 Quote
soydog
 11/05/03 05:34PM  
+++--
Chatty

Status: offline


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."
 
Profile Email Website
 Quote
soydog
 11/05/03 05:51PM  
+++--
Chatty

Status: offline


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."
 
Profile Email Website
 Quote
samstone
 12/27/03 02:21AM  
+++++
Full Member

Status: offline


Registered: 09/29/02
Posts: 820
Wow, it is really odd that Calendar would use that configuration for the starting time. That means changing that line is not much of an option at all.

Happy New Year!

Sam

 
Profile Email
 Quote
Content generated in: 0.52 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content