No results posted
Posted: Thu Mar 19, 2009 10:22 pm
My site: http://esports.divito.ca/esportal.php (the Google ad is a placeholder, not real)
If you visit the site, you'll notice that under the Starcraft header, there is nothing there. Essentially all I did was add a new feed (the readmore one), and added a new condition to actually output the link (because that site doesn't have separate feeds for games). I can't really figure out what would be causing no results to appear.
And in a semi-related note, is there a way to improve the load times even if the RSS is already being cached? Loads way too slow for my liking.
If you visit the site, you'll notice that under the Starcraft header, there is nothing there. Essentially all I did was add a new feed (the readmore one), and added a new condition to actually output the link (because that site doesn't have separate feeds for games). I can't really figure out what would be causing no results to appear.
Code: Select all
<?
$sc = array ('http://readmore.s3.amazonaws.com/rss/eu/rss_headlines_rmeu.rss', 'http://www.mymym.com/en/rss/game/sc.xml', 'http://www.sk-gaming.com/rss/channel/sc', 'http://sc.gosugamers.net/sc.rss');
foreach ($sc as $feed3 ) {
$rss3 = fetch_rss($feed3);
foreach ($rss3->items as $item3 ) {
$date3 = $item3['date_timestamp'].microtime(TRUE);
$entries3[$date3] = $item3;
}
}
krsort($entries3);
$counter3 = 0;
foreach ($entries3 as $entry3) {
if ($counter3 == 10) {
?>
<tr>
<td width="16"><img src="esmini.jpg">
<td width="250" height="16" ><?
echo "<a href=$link>More...</a></li><br>";?> </td>
<?
break;
} if ($counter3 < 10) {
$counter3++;
$url = $entry3['link'];
$title = $entry3['title'];
$category = $entry3['category'];
$date = $entry3['date_timestamp'].microtime(TRUE);
$title = str_stop($title, 35);
$mym = strpos($url, 'mymym.com');
$skgaming = strpos($url, 'sk-gaming.com');
$readmore = strpos($url, 'readmore.eu');
$readless = strpos($category, 'Star');
$gosu = strpos($url, 'gosugamers.net');
if ($mym == true) {
?>
<tr>
<td width="16"><img src="mym.jpg">
<td width="250" height="16" ><?
echo "<a href=$url target='_blank'>$title</a></li><br>";?> </td>
<?
} if ($skgaming == true) {
?><tr>
<td width="16"><img src="sk.jpg">
<td width="250" height="16" ><?
echo "<a href=$url target='_blank'>$title</a></li><br>";?></td>
<?
} if (($readmore == true) && ($readless == true)) {
?><tr>
<td width="16"><img src="readmore.jpg"></td>
<td width="250" height="16"><?
echo "<a href=$url target='_blank'>$title</a></li><br>";?></td>
<?
} if ($gosu == true) {
?><tr>
<td width="16"><img src="gosu.jpg"></td>
<td width="250" height="16"><?
echo "<a href=$url target='_blank'>$title</a></li><br>";?></td>
<?
}
}
}
?>