Alt and title attribute missing

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Mar 02, 2016 8:53 pm
Dear Gavick,
I love your stuff, but I found out that my thumbs used in GK Tabs 5 are without alt and title attributes.
Could you please check it out: darmolandia(dot)pl/16020402
Looking forward to hear from you soon,
best regards,
Kalixo
User avatar
Senior Boarder

teitbite
Sun Mar 06, 2016 12:44 pm
Hi

Can You please screenshot settings for News Show Pro module You've used inside tabs ? I need to know which style it is.
User avatar
Moderator

GK User
Sun Mar 06, 2016 1:44 pm
hi, this is "tryb standardowy".
User avatar
Senior Boarder

teitbite
Thu Mar 10, 2016 10:27 am
Hi

it's interesting because I can clearly see at least "alt" attribute should be there since it's implemented in NSP code. Anyway try to edit file /modules/mod_news_pro_gk5/tmpl/com_k2/view.php and look into function image().

You will see couple of constructions for "<img" so just make sure to include:

Code: Select all
title="'.htmlspecialchars($item['title']).'"


into it's code. If You will have troubles with it send me FTP access to my mail [email protected] and I'll make it for You.
User avatar
Moderator

GK User
Sun Mar 13, 2016 9:40 am
Dear Teitbite,
I wrote you personal message. I checked the file that you advised but only line found was:
$info_author = ($config['user_avatar'] == 1) ? '<span><img
but I thnik that is not the one...
Thanks in advance,
Kalixo
User avatar
Senior Boarder

teitbite
Mon Mar 14, 2016 9:46 am
Hi

Looks like the code for the image were moved to a separated function, so I had to edit line 59 from:

Code: Select all
return NSP_GK5_com_k2_View::getImageHTML($only_url, $IMG_SOURCE, $links, $config, $IMG_LINK, $full_size_img );


to

Code: Select all
      return NSP_GK5_com_k2_View::getImageHTML($only_url, $IMG_SOURCE, $links, $config, $IMG_LINK, $full_size_img, $item['title'] );


the file still the same: /modules/mod_news_pro_gk5/tmpl/com_k2/view.php

Please let me know if it worked. I cannot check it for some reason.
User avatar
Moderator

GK User
Wed Mar 16, 2016 2:34 pm
Dear Teitbite,
Thank you very much! Now it works perfect!
Best regards,
Kalixo
User avatar
Senior Boarder

teitbite
Wed Mar 16, 2016 7:43 pm
Hi

Ok. Great to hear that :) Closing this thread now.
User avatar
Moderator


cron