-
☆ A M B ☆
- 24,524 Posts
[!FeedX? &url=`http://feedmysearch.com/|xq|q|xe|wedding+photographer|xa|where|xe|web` &preset=`rss` &caheTime=`3600`!]
Works fine for me. Notice that the ?, = and & in the URL have to be replaced with the appropriate placeholders (not to be confused with MODx placeholder tags!)
Hi there,
Do You have any suggestions concerning the question I’ve asked above?
Thx
Greg
Hi!
Had some problems with my feed, so I made some changes to the code. This change creates htmlentities from all else, but html-tags. I had to do this because in my feed scandinavian letters were dropped from the output.
So here it is.
feedx.class.inc.php
function execute ()
line number 103 (about)
// Get the htmlspecialchars_decode to work in PHP4
if ( !function_exists('htmlspecialchars_decode') ) {
function htmlspecialchars_decode($text) {
return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
}
}
/*
This could be done sweeter, but thats the way, aha aha, i like it aha aha!
Modifies the feed to show htmlentities from everything else but html-tags.
*/
$output = htmlspecialchars_decode(htmlentities($output));
if (function_exists('mb_convert_encoding')) // Convert output encoding, if available
return mb_convert_encoding($output, $modx->config['modx_charset'], 'auto');
else
return $output;
Hopefully someone else needs this also.
The sun always shines for tough guys.
Hi,
I would like to see if it’s possible to generate one url with the title of the article, and this url will be one page where there will be desctiption and linke of the article ?
I retry.
Is it possible with Feedx, that when i parse one site whitch is "this-site.com" whitch publish an article "title of the article", i have the liste of his news like this :
News on this-site.com
-title of the article
-title of the article2
-title of the article3
etc
And, when i clic on the news, i stay (for the moment) on my web site, and i have article’s description like this :
Title of the article (is the link for the complete news)
description description description description description description description
And, that the url of this page is :
my-website.com/title-of-article.html
And all the news will be archive for keep the urls and not have 404.
(sorry for my english...)