TinyPortal

Development => Block Codes => Topic started by: MetalHellsangel on March 16, 2006, 02:15:09 AM

Title: RSS Feed reader For blocks & articles
Post by: MetalHellsangel on March 16, 2006, 02:15:09 AM
Php code to syndacate rss feeds in either blocks or articles

Download & Support HERE (http://www.blockcodes.com)
Title: Re: RSS Feed reader For blocks & articles
Post by: DAD on March 18, 2006, 12:04:59 PM
Thanks for this, it works really well, especially placing it in a php article and linking from a menu.

Is there a way to reduce the font size slightly as its a little large?

Cheers

DAD
Title: Re: RSS Feed reader For blocks & articles
Post by: MetalHellsangel on March 18, 2006, 01:14:12 PM
See this

echo "<table width=\"100%\" border=\"0\"><tr>
    <td class=\"main-table\">
<span class=\"nav-head\"><strong>
";
  printf("<p><b><a href='%s'>%s</a></b></p>", // make our title into an actual link
       trim($link),htmlspecialchars(trim($title))); // remove html characters from the title
 
  echo "</tr>";
echo "<tr>
    <td class=\"nav\">";
printf("<p>%s</p>",$description); // Print out the live journal entry
    echo"</td>";
echo "</tr>";
  echo "</table>";

you can add your own font tags in there, it's just like html, except you need to add \" slashes before quotations.
Title: Re: RSS Feed reader For blocks & articles
Post by: DAD on March 18, 2006, 05:12:19 PM
great thanks very much :)
Title: Re: RSS Feed reader For blocks & articles
Post by: Lesmond on March 18, 2006, 08:09:59 PM
Don't know if this happening to anyone else but this seems be giving me errors :o

Quote
8: Use of undefined constant r - assumed 'r'
File: /home/lesmonds.co.uk/smf/Themes/TP_helios_multi11_rc2/TPortal.template.php (eval?)
Line: 67
Title: Re: RSS Feed reader For blocks & articles
Post by: MetalHellsangel on March 19, 2006, 12:07:58 AM
Quote from: MetalHellsangel on March 16, 2006, 02:15:09 AM
Support For this Snippet Can Be found Here (http://noizepollutionrox.com:70/index.php?topic=3.msg3;topicseen)