help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[SOLVED] Image shows when no comment

[SOLVED] Image shows when no comment

8 years 8 months ago - 8 years 8 months ago
#22143
When on the "My Events" into the attendee's list, when there is no comment, it's trying to show an image. I've explored further into this, and it appears it's just pulling the images directory, not a particular image.





I believe it to be something to do with /components/com_jem/views/attendees/tmpl/default.php
Code:
<?php if (!empty($this->jemsettings->regallowcomments)) : ?> <?php $cmnt = (strlen($row->comment) > 16) ? (substr($row->comment, 0, 14).'&hellip;') : $row->comment; ?> <td><?php echo JHtml::_('tooltip', $row->comment, null, null, $cmnt, null, null); ?></td> <?php endif;?>
Joomla 3.5.1
JEM 2.1.6 stable (with Customization)
PHP: 5.4.45

Attachments:

Last edit: 8 years 8 months ago by rstarkey.
The following user(s) said Thank You: jojo12, Hoffi

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

Re: Image shows when no comments on My Events Attendee Roster

8 years 8 months ago
#22155
Hi Robert,

thanks for catching this, it's really a bug. :whistle: On my sites I don''t see such icons but yes, the stupid tooltip function creates an useless img tag if text is empty. :S

I'll fix this in all views (attendees, myattendances as well as attendees on backend) by changing
Code:
<td><?php echo JHtml::_('tooltip', $row->comment, null, null, $cmnt, null, null); ?></td>
to
Code:
<td><?php if (!empty($cmnt)) { echo JHtml::_('tooltip', $row->comment, null, null, $cmnt, null, null); } ?></td>
The following user(s) said Thank You: Kralyk, rstarkey

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

Re: [SOLVED] Image shows when no comment

8 years 8 months ago
#22164
Perfect. This fixed the issue.
Joomla 3.5.1
JEM 2.1.6 stable (with Customization)
PHP: 5.4.45

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

Re: [SOLVED] Image shows when no comment

7 years 11 months ago
#23487
Thanks for this code it really helpfull

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

Re: [SOLVED] Image shows when no comment

7 years 6 months ago
#24218
Congratulations, well that's all you have described.

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

Time to create page: 0.502 seconds