NSP GK5 - Event Time on Latest Events

GK User
Tue Jan 19, 2016 9:46 pm
Here is how an example of one of my events:

Image

It all looks correct, however the time being shown (9:00 pm) is the end time. I would like to show the beginning time, which would be 7pm. All of the events being shown on my site all show the end time. It is not a time zone issue. It is pulling the end time directly from the K2 article format.

It seems that the end time is being pulled from a controller.php file located in modules/mod_news_pro_gk5/tmpl/portal_modes/events_list/controller.php

Is there a way that I have the module pull the beginning time instead of the end time?
User avatar
Fresh Boarder

teitbite
Sat Jan 23, 2016 10:50 am
Hi

Interesting. Try update module to the latest version. If this will not make a difference please send me an access to joomla panel and ftp.
User avatar
Moderator

teitbite
Sun Feb 07, 2016 11:03 am
Hi

I have an access to Your joomla panel, but what I need is an access to FTP. I need to check in modules code directly why isn't it working. Please send it to me.
User avatar
Moderator

teitbite
Mon Feb 08, 2016 10:22 am
Hi

Here is a modification You need to do: https://github.com/GavickPro/News-Show- ... er.php#L72

In short:

Edit file /mod_news_pro_gk5/tmpl/portal_modes/events_list/controller.php, change line 72 to:

Code: Select all
$event_info['when'] = $event_datetimes[2][0] . ' @ ' . $event_datetimes[2][2];
User avatar
Moderator

GK User
Tue Feb 09, 2016 10:26 pm
Excellent! That is the file and the correct spot that I need to focus on. However, that was my current setting for the file. I just had to change one thing.

Change the line to this:

Code: Select all
$event_datetimes[2][0] . ' @ ' . $event_datetimes[2][1];


It is not working perfectly.

Thanks for your time and help. It is much appreciated.

You can close this thread and mark it resolved.
User avatar
Fresh Boarder

teitbite
Tue Feb 16, 2016 2:56 pm
Hi

Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron