Permalink
Browse files

remove nota from news

  • Loading branch information...
1 parent 0672dfb commit faed7943b7432162f11322ddcbd363c5ad93a715 @abma abma committed Apr 8, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 wwwroot/includes/news.php
@@ -48,14 +48,17 @@ function get_news_from_feed($feedurl)
if ($xml)
{
- $count = 1;
+ $count = 0;
foreach ($xml->xpath('/rss/channel/item') as $item)
{
if (strlen($item->title)<=0)
continue;
+ if ((stripos($item->title, 'nota') !== false)
+ || (stripos($item->link, 'nota.machys.net') !== false))
+ continue;
$newsdata = array((string) $item->title, (string) $item->link);
$cnews .= str_replace($cnewskeys, $newsdata, $cnewstemplate);
- if($count>=20) break; //limit to 20 news items
+ if($count>20) break; //limit to 20 news items
$count++;
}
}

1 comment on commit faed794

@abma
Member
abma commented on faed794 May 4, 2013

as note: this was done because the notalobby developers ignored this: http://springrts.com/phpbb/viewtopic.php?f=64&t=30120 (there is no response yet).

The NOTA website and project site hosts notalobby, this is why the news of NOTA is filtered out at the start page of springrts.com. I've already answered this in private before they started to make personal attacks to me.

I've also said in a pm, that if the NOTA devs remove Notalobby from their website, this filter will be removed.

Please sign in to comment.