Hi,
I’m trying to use this snippet, but it doesn’t seem to be working.
This is what I did:
- Uploaded newsparserx.inc.php to a folder called newspaserx in the snippets folder.
- Add a new snippet and put the txt file contents into it.
And when i try and use this in one of my documents:
[[NewsParserX? &url=`
http://rss.manchesteronline.co.uk/news.xml`]]
I get the following Error:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: file(</span>http://rss.manchesteronline.co.uk/news.xml<span clas) [function.file]: failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: /home/gaia/public_html/boredawards/assets/snippets/newsparserx/newsparserx.inc.php
Line: 426
Line 426 source: $data = @file($this->URL) or die ("Could not open a feed called: " . $this->URL);
Parser timing
MySQL: 0.0015 s s (3 Requests)
PHP: 0.0390 s s
Total: 0.0405 s s
Any suggestions? Or if someone knows of another RSS tool that I can use to import RSS items into my ModX Document.
Thanks.