Having Troubles with Feed2JS?
Feed2JS is just some code we have shared, it is free, and we do not have a lot of staff (well none) in customer support. But we will do our best to help you with any problems.
- How Can I Display Multipled Feeds?
- Why Does my Feed Display with Strange Charcter Substitution?
- How Can I Have Links appear in Pop Up Windows?
- How Can I apply Multiple Styles to feeds on the same page?
- When the Server Blinks Out
- Feeds Updating
- Problems with Feeds
- Known Issues And Fixes
Using Multiple Feeds in One
Can the feed-generator generate news from multiple sites?
As is, Feed2JS can only take one RSS feed as a parameter. If you want to create a display that is a mix of multiple sites, our suggestion is to use an externals ervive that can take a list of RSS feeds and "splice" or "mix" them into one RSS URl that you can use in Feed2JS.
For more details, see RSS Mixers. The following sites offer this sort of service:
- RSS Mix
- BlogDigger Groups
- lazytom's feedjumbler
- Feed Findings
Why Does my Feed Display with Strange Charcter Substitution?
What are quotes and other punctuation marks replaced by question marks or other strange characters in the display of a feed?
The explanation is a bit more than we can write here, but it has to do with the charcter sets used to display web content. Most web pages by default, use what is known as ISO-8559-1 or Lat1n-1 sets of charcters. Many publishing systems, or content pasted from software such as MS Word, introduce certain characters (curly quotes, em-dashes) that are not part of the ISO-8559-1 character set, and thus it substitutes other characters, which look like gibberish.
However, there is a web chcaracter set called UTF-8 that can properly display these characters. There are two things you need to do to make this work. First, in Feed2JS, you must check the option box for Use UTF-8 Encoding. This tells our script to use UTF-8 characters for its output. But to have it work correctly in your web page, you must edit or add a line of HTML code so the web page knows to display with this character set.
<head>...</head> portion of your web page, look for a line like:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
and change it to read:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
If there is no such line, add this code anywhere after the
With a new method, adding the character set to the web page HTML may not be necessary! Andrew Denner, a user of Feed2JS from St Pauls Nursery School & Children's Centre wrote with this tip:
We have been using your feed on our website, but encountered a problem with character encodings. Although we could solve this locally by turning on UTF-8 mode in feed2js and changing the encoding type of our page, it did not work once we put the page live. This was because our server overrides the encoding specified by the html, and declares the content type as ISO8859-1 in the http headers.
So it looked like we were stuck with errant encoding of unusual characters, but I hit upon a solution. If in the script tag that loads the feed2js code you include charset="UTF-8" as an attribute, this correctly identifies the character encoding of the external src, and so the browser loads these characters correctly independent of the encoding specified either in the html or http headers of the parent page. This would probably be useful to add to the help section on changing the meta tag in the header, as an alternative to changing the encoding of the original page or server. It could even be added to the generated html in the feed builder when UTF-8 mode has been checked.
Links as Pop Up Windows
How can I make links appear in a custom pop up window e.g. no buttons ot browser bars?
This is a new feature as of January 23, 2005. If you specify a value for the Feed2JS variable
popupfeed(url) that can then do the work to open the a new window with the features you want.
or entered directly into the
<HEAD>...</HEAD> for your feed page:
Use Different Style Sheets On the Same Page
I have multiple feeds listed on the same page- is it possible to have different style sheets applied for different feeds?
This was not possible before June, 2005. A new feature added to our build form allows you to specify a name that becomes part of the class that defines the feed content. By default, this class is rss-box but if you name a new class such as "cool" or pass a parameter
css=cool, you can now style via a class named rss-box-cool. You may have to redefine more specific sub-classes to make dramatically different styles. See the examples included on the Feed Style page.
When the Server Blinks Out
My web pages using Feed2JS do not fully load and when I check your server it is out of commission.. is there anything I can do?
Unfortunately we are dealing with a lot of traffic on our server and trying to isolate why it gets bogged down. One solution would be using one of our mirror sites as a primary or a backup.
"My web site feed has changed but the display from Feed2JS has not changed. What's going on?"
If you are using our web site to generate your feeds, please keep in mind that a site's feed is cached for 60 minutes. This means that once a feed is requested, it is stored locally on our server as a "cached" version that will be used until the cache version is at least one hour old. This is to avoid a performance hit on our server.
If you are running your own version of Feed2JS, you can alter this cache age if you want more or less frequent updates. This is done by editing the value of
CACHE_AGE in the
// default cache time is one hour define('CACHE_AGE', 3600);
A value of
1*60 would only cache feeds for one minute but is not friendly to the loads on other sites.
Problems with Feeds
Other things to check:
- Make sure the feed URL is good- this is the URL for ther RSS feed (not the URL for the web site providing the feed). Paste in your browser and make sure it is a good URL.
- Make sure it is a valid feed- check the URL in the Feed Validator.
Known Issues And Fixes
My installed version keeps reporting error messages about Undefined indexes...
PHP Notice: Undefined index: chan in d:\csd\rss\feed2js.php on line 68
PHP Notice: Undefined index: num in d:\csd\rss\feed2js.php on line 69....
From what I can tell, this is symptomatic on Windows servers where the default settings for PHP are to provide notices of variables not explicitly declared. In your server's
php.ini file search for and find the error_reporting option.
I recommend you change your settings from:
error_reporting = E_ALLto
error_reporting = E_ALL & ~E_NOTICE
This will prevent the "Undefined Index" errors (the others likely trigger from there). Note that as of April 16, 2005, code changes to both feed2js.php and build.php should prevent the error notices, but lacking a windows server, I cannot verify 100%.