TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: Bryan on March 11, 2009, 03:08:23 PM

Title: [bugtracker] RSS Feeds in Blocks Not Rendering Graphic/Icon
Post by: Bryan on March 11, 2009, 03:08:23 PM
See: http://www.tinyportal.net/index.php/topic,28756.msg229285.html#msg229285

Block RSS feeds in TP 1.0 beta 3 do not show graphic/icon at all in Firefox and Chrome, while IE shows a broken image icon.
Title: Re: [bugtracker] RSS Feeds in Blocks Not Rendering Graphic/Icon
Post by: bloc on March 12, 2009, 01:14:22 PM
- RSS block did not interpret image tag in RSS feeds properly.Fixed for TP v1.0 beta 4.

Open up TPmodules.php and find:
printf("<img src='%s' alt='' style='margin: 0;' />", trim($tpimage));

and replace with:
printf("<a href='%s'><img src='%s' alt='%s' /></a>", trim($link),trim($curl),htmlspecialchars(trim($title)));