Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: no time in jem_wide module from 4.3.1+ #1885

Closed
jojo12 opened this issue Jan 13, 2025 · 8 comments
Closed

Bug: no time in jem_wide module from 4.3.1+ #1885

jojo12 opened this issue Jan 13, 2025 · 8 comments
Labels
fixed Have a commit with the solution.

Comments

@jojo12
Copy link
Contributor

jojo12 commented Jan 13, 2025

post from king louis in forum:
in JEM 4.3.1+ there is only the date, but no time! He says, this was earlier.
I reproduced this on 4.3.1 and 4.3.2b2. This bug is only in responsive style!
This should be solved before release of 4.3.2

@jojo12 jojo12 added bug Something isn't working releaseblocker labels Jan 13, 2025
@mckillo
Copy link
Collaborator

mckillo commented Jan 13, 2025

The time is in the title of the date. If you move your mouse over the date, you will see a tooltip with the date and time.
This is the design of this module, in \modules\mod_jem_wide\tmpl\responsive\default_jem_eventslist.php Line119-122:

<div class="jem-event-info time" title="<?php echo Text::_('COM_JEM_TABLE_DATE').': '.strip_tags($item->dateinfo); ?>">
    <?php echo $item->date;
    echo $item->dateschema; ?>
</div>

Now, do we change it?

@mckillo
Copy link
Collaborator

mckillo commented Jan 13, 2025

This code was added in Commit 51dbd04 by Egnarts94 on Aug 1, 2018

@mckillo
Copy link
Collaborator

mckillo commented Jan 13, 2025

In legacy, there is a conditional to show the time:

<span class="date" title="<?php echo strip_tags($item->dateinfo); ?>"><?php echo $item->date; ?></span>
<?php if ($item->time && $params->get('datemethod', 1) == 1) : ?>
     <span class="time" title="<?php echo strip_tags($item->dateinfo); ?>"><?php echo $item->time; ?></span>
<?php endif; ?>

Solution: I can add this code of time to the responsive layout. Do you agree?

@mckillo
Copy link
Collaborator

mckillo commented Jan 13, 2025

I have found the error in the code...after 7 years is solved :-) see next commit

@mckillo mckillo added the fixed Have a commit with the solution. label Jan 13, 2025
@mckillo
Copy link
Collaborator

mckillo commented Jan 13, 2025

The JEM wide module must have this setting:

image

Now, the module view also displays the time.

image

@jojo12
Copy link
Contributor Author

jojo12 commented Jan 13, 2025

excellent! Now we need to brake: if not our code will be perfect. And I don't like perfection! ;-)

@jojo12 jojo12 removed bug Something isn't working releaseblocker labels Jan 13, 2025
@jojo12
Copy link
Contributor Author

jojo12 commented Jan 13, 2025

we can close!

@jojo12 jojo12 closed this as completed Jan 13, 2025
@mckillo
Copy link
Collaborator

mckillo commented Jan 13, 2025

Thanks. Nothing is perfect, and chasing perfection is a waste of time; it never ends. You have to be practical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Have a commit with the solution.
Projects
None yet
Development

No branches or pull requests

2 participants