You are not logged in.
Hi guys,
I would like to know if it's possible to display RSS feeds without having to hover to display images ?
I would love to see it displayed like google discover ;
I didn't find any plugin. Maybe there is a quick fix I could do to the source code ?
Thanks a lot,
Maxime
Offline
I did some research and GLPI is using SimplePie to fetch and display RSS feeds.
So I updated the following file glpi/src/RSSFeed.php
I did some cosmetic changes and also added this code near the end ;
$doc = new DOMDocument();
@$doc->loadHTML($item->get_content());
$imgs = $doc->getElementsbyTagName('img');
$res = $imgs->item(0)->getAttribute('src');
$output .= "<br><img src='" . $res . "' width='400' height='300'><br><br>";
Offline