×
Blue Eagle (1.5.0) for K5.1 is released (20 Jul 2018)

Please update the Kunena Blue Eagle to 1.5.0 if you use Kunena 5.1.
We made several bug fixes and improvements. Also Blue Eagle has now all the features from Crypsis.
Download: www.kunena.org/download/templates/category/blue-eagle-5

× Please note: The Kunena project team takes NO responsibility for maintaining nor supporting anything in this category.

Idea Rss Feed Validator

  • Trony
  • Trony's Avatar Topic Author
  • Offline
  • Junior Member
  • Music and Electronic Devices Designer.
More
2 years 4 months ago #1 by Trony
Rss Feed Validator was created by Trony
I have submitted Rss Feed of Kunena on this www.feedvalidator.org/ and it has found this error:

style attribute contains potentially dangerous content: max-height


So I modded:

1) com_kunena ► template ► system ► layouts ► attachment ► item ► image.php
 
$doctype    = $document->getType();
// Only render for HTML output
if ($doctype == 'html') {
$attributesLink = $config->lightbox ? ' rel="lightbox[imagelink' . $attachment->mesid . ']"' : '';
$attributesImg = ' style="max-height:' . (int) $config->imageheight . 'px;"';
}
 

2) com_kunena ► template ► system ► layouts ► bbcode ► image ► default.php
 
$doctype    = $document->getType();
// Only render for HTML output
if ($doctype == 'html') {
$attributesLink = $config->lightbox ? ' rel="lightbox[gallery]"' : '';
$attributesImg = ' style="max-height: '. (int) $config->imageheight . 'px;"';
$attributesImg .= $size ? ' width="' . (int) $size . '"' : '';
}
 

Now Rss Feed is Valid.
(Tool says "Self reference doesn't match document location" but I don't know how to Fix it)

What do you think ?!?

Music and Electronic Devices Designer. Drum and Bass Addict. Creative Mind as Lifestyle. Cat in past Life. Soccer, Ice Hockey and Snowboard Lover.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.084 seconds