You are here:  » Reminder for unimported feeds

Support Forum



Reminder for unimported feeds

Submitted by Paul1107 on Sat, 2010-03-20 14:13 in

Hi David,

Just a thought, but sometimes I upload a feed and incorporate into my site, but don't necessarily add it to my fetch script for a cron job immediately or sosmetimes for whatever reason the feed hasn't imported due to an error in the networks site.

Just wondered As a reminder function, whether there's a way each row of the feed that hasn't been included in the most recent imported can be highlighted in the admin panel?

Is that do-able?

Cheers

Paul

Submitted by support on Mon, 2010-03-22 08:13

Hi Paul,

One option might be to highlight the imported date for any feed that hasn't been imported within, say, 1 week. To do this, in admin/index.php, look for the following code at line 142 (latest distribution) or line 120 (original distribution):

print "<td>".($feeds[$filename]["imported"] ? rfctime($feeds[$filename]["imported"]) : "&nbsp;")."</td>";

...and REPLACE with:

print "<td>";
if ($feeds[$filename]["imported"])
{
  if ($feeds[$filename]["imported"] < strtotime("-1 week"))
  {
    print "<span style='color:red;'>".rfctime($feeds[$filename]["imported"])."</span>";
  }
  else
  {
    print rfctime($feeds[$filename]["imported"]);
  }
}
else
{
  print "&nbsp;";
}
print "</td>";

That will highlight in red any feeds not imported within the last week...

Cheers,
David.

Submitted by Paul1107 on Mon, 2010-03-22 18:32

Hi David,

Works great thanks, just a simple reminder, to action so thanks for that really useful.

Cheers!

Paul