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

TOPIC:

[SOLVED] Image shows when no comment 6 years 1 month 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
<?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:
The following user(s) said Thank You: jojo12, Hoffi

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

Last edit: by rstarkey.

Image shows when no comments on My Events Attendee Roster 6 years 1 month ago #22155

  • Hoffi
  • Hoffi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 2279
  • Thank you received: 449
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
<td><?php echo JHtml::_('tooltip', $row->comment, null, null, $cmnt, null, null); ?></td>
to
<td><?php if (!empty($cmnt)) { echo JHtml::_('tooltip', $row->comment, null, null, $cmnt, null, null); } ?></td>
Pessimists are optimists with experience!
The following user(s) said Thank You: Kralyk, rstarkey

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

[SOLVED] Image shows when no comment 6 years 1 month 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.

[SOLVED] Image shows when no comment 5 years 4 months ago #23487

Thanks for this code it really helpfull

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

[SOLVED] Image shows when no comment 4 years 11 months ago #24218

Congratulations, well that's all you have described.

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

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

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......