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
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
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).'…') : $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
JEM 2.1.6 stable (with Customization)
PHP: 5.4.45
Last edit: 8 years 8 months ago by rstarkey.
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
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
to
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>
Code:
<td><?php if (!empty($cmnt)) { echo JHtml::_('tooltip', $row->comment, null, null, $cmnt, null, null); } ?></td>
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Image shows when no comment
8 years 8 months ago
Perfect. This fixed the issue.
Joomla 3.5.1
JEM 2.1.6 stable (with Customization)
PHP: 5.4.45
JEM 2.1.6 stable (with Customization)
PHP: 5.4.45
Please Log in or Create an account to join the conversation.
- jordanlammon
-
- Offline
- New Member
-
- Posts: 1
- Thanks: 0
Re: [SOLVED] Image shows when no comment
7 years 11 months ago
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
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