vice |
|
---|---|
If you know a little PHP, then you can write your own plugin. I used to write for themselves, this RSS graber.
echo '<div id="main"><div align="justify">';
//point to an xml file
$feed = "http://www.opennet.ru/opennews/opennews_mini_full.rss";
//create object
$sxml = simplexml_load_file($feed);
echo "<center><h2> ГОРЯЧИЕ НОВОСТИ. ПОДРОБНО.
</h2></center>
<img align=left src=skins/ice/img/cofcup.jpg >
<br><br>";
//echo "<h2>{$sxml->channel->title}</h2>\n";
$i = 1;
foreach ($sxml->channel->item as $item){
$strtemp = "<font color=blue>$item->title</font><br>$item->description<br>";
$strtemp = iconv("utf-8", "windows-1251", $strtemp);
$strtemp = strip_tags($strtemp, '<p><br><font>');
$newtext = ereg_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])|Источник:","",$strtemp);
echo $newtext;
echo '<center><img src=skins/ice/img/cup.png> 
<img src=skins/ice/img/cup.png> 
<img src=skins/ice/img/cup.png>
</center><br>';
$i++;
if ($i > 5) break;
}
echo '</div></div>';
An example of how it looks http://linux.povorotka.org.ua/plug.php?e=feed |