Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: upcoming event module

upcoming event module 14 years 2 months ago #9414

  • logisti
  • logisti's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
is there an update version of the upcoming event module? where to download it?

mine keeps throwing off the time on upcoming events - was wondering where to get the newest version.

Please Log in or Create an account to join the conversation.

upcoming event module 14 years 2 months ago #9416

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
The only way to get the latest module is to download the latest DT Register package. The latest module is 2.9.1, but there is a time offset that causes issues for some users. If you are having time issues with it, then open the file:

/modules/mod_dt_upcoming_event/mod_dt_upcoming_event.php

Search for this line:
set_tz_by_offset($config->getValue('config.offset'));

Simply comment it out like this:
// set_tz_by_offset($config->getValue('config.offset'));

Then you should be fine. In the next DT Register release, this fix will no longer be needed.

Please Log in or Create an account to join the conversation.

upcoming event module 14 years 2 months ago #9447

  • emagin
  • emagin's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
The Upcoming Module cannot be shown more than once on a page??
I find this hard to believe, is there a workaround?
I have several categories but need to show 2 of 5 on a page, and 3 of 5 on another page.
Thanks

Please Log in or Create an account to join the conversation.

upcoming event module 14 years 2 months ago #9456

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
emagin - what you are saying is not the issue brought up in this thread... but you can do the code modification mentioned above, then if you want to use the module multiple times on the same page, you should comment out this whole function..

Comment out the function that starts like:
function set_tz_by_offset($offset) {

Put a /* in front of this line.

The function ends right before the code mentioned above. After the closing }, place a */

You'll be set now. The next release of the module won't have this included. For now, comment out this code and you'll be fine.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.110 seconds