Sometimes an RSS feed has a low bandwidth and during the page creation WordPress has to wait after those RSS feeds had been downloaded. This plugin allows the site to read the RSS after the page was created, not during the process.
To show a Feed in a post use
[lexi: configuration, rss, title, max_items] or
lexiRSS($configuration, $rss, $title, $max_items).
The configuration number can be calculated as follows:
- Add 1 if you want to save it in cache.
- Add 2 if you want to show the content.
- Add 4 if you want to show the title (this is the channel link too).
- Add 8 if you want to open it in a new page.
- Add 16 if you want to not show the RSS icon (this is the RSS link too).
- Add 32 if you want to show the author.
- Add 64 if you want to show the date.
- Add 128 if you want to paginate the results.
- Add 256 to not show items title.
- Add 512 to show content in the reference title (usefull when using 3rd party rollover plugins).
- Add 1024 to use the internal function to truncate the content to the first complete paragraphs until having 400 letters. Only text, no images. See the FAQ for other truncate size.
If you want to use the title given by the RSS, use
[lexi: configuration, rss, max_items] or
lexiRSS($configuration, $rss, false, $max_items).
There is a button in the editor (the one with the RSS icon) created by the plugin to help you to add feeds in posts or pages.
Lexi detects if your site has the SimplePie library enabled. Since WordPress 2.8 comes with it by default you don’t need to activate anything, but in earlier versions you have to install the SimplePieCore Plugin to use it instead MagpieRSS. I recomend to use SimplePie. Remember to uninstall SimplePieCore if you are using Worpress 2.8 or any latter version.
Screenshots are in spanish because it’s my native language. As you should know yet I spe’k english, and the plugin use it by default.
- Decompress lexi.zip and upload
- Activate the plugin through the Plugins menu in WordPress
- Add Lexi widgets into your side bar (if required).
- Add tags into your posts or pages using the lexi button in the editor, the one with the RSS icon.
- Other RSS reader! How do you dare?
My page (I don’t know if yours too) use to get blocked reading some RSS feeds. I created Lexi to read the RSS after the page was created, not during the process.
- Lexi shows strange characters with some feeds
Lexi encodes the feed list in UTF-8. If your site uses another character encoding you can change
wp-content/plugins/lexi/lexi.php, but I suggest you to use UTF-8.
If your site is in UTF-8, uses WP 2.7.x or an older release, and the problem persists, install SimplePieCore Plugin.
- Can I set my own CSS?
Yes. Copy the file lexi.css to your theme folder. The plugin will check for it.
- Lexi can’t reed the xyz feed
First, use the simplepie validator to check the feed. If you get an error it means the problem is in the library. To solve this situation, use a Mashup engine like Yahoo Pipes to create a new RSS feed from the original data.
If the validator returns the feed data, maybe the library in your WP is older than the one in the validator. Use the RSS widget (the one from WordPress) with the feed to check if the library can read it. If it works, is time to write a comment in my personal page with the RSS feed on it. Else, use a mashup engine as described in the first step.
Also, it happens with some feeds the first time they are readed, but ten minutes later they work.
- How does the truncate function work?
This simple function takes the html code, extract the text and truncate it to the first paragraphs with less than 400 characters. If you want to truncate allways to an specific size, define the LEXI_TRUNCATE_SIZE variable into your wp-config.php file with the required number, like this:
Contributors & Developers
“Lexi” is open source software. The following people have contributed to this plugin.Contributors
- Solved problem with the excerpt.
- Checked for WP 3.1
- Solved bug with script call.
- Added fix to allow commas inside RSS feeds.
- Modified TinyMCE call to solve bugs with wp-cache.
- Solved minor bugs.
- Using WP functions to add safely scripts and css.
- Stable release
- Function to truncate the text.
- New configuration forms to display the content as a rollover (3d party plugin required) or as text.
- Added configuration item to put the content in the href title. Useful to use with tooltip libraries.
- Solved a bug with masqued domains and subdomains.
- Added capability to use qtip-for-wordpress when in pagination mode.
- Solved a bug in English version.
- Added capability to use qtip-for-wordpress.
- Solved a bug with Chanel link.
- Updated sack function to show the error message in the div if something goes wrong.
- Updated sack function to display the data instead execute a function.
- First release that doesn’t require Minimax.
- Now Lexi uses WP’s internal Ajax routines.
- Using WP comment format functions (request by Hypercom Team) to use capabilities added with third party plugins.
- Greek translation thanks to HyperCom Team.
- Russian translation thanks to Fatcow Team.
- Solved bug with item link when it has special characters.
- Solved bug in multipage system with new check cache function.
- Modified to use ajax only when the cache is old.
- Don’t use a list when we show only one item (or only one item per page)
- Option added to show (by default) or not items title.
- Solved an issue with external CSS.
- Modified number of pages to show.
- Pagination system.
- Updated nonce system to enhace security. Using feed url as seed.
- The long awaited new cache system.
- Solved a bug with current path.
- New cache system fixed.
- Solved a strange bug in the editor.
- New cache system to solve a bug with cache plugins.
- Option added to show the author.
- Option added to show the date.
- Solved a bug with old PHP versions.
- Multiple widget.
- Manage activation errors.
- New API without numbered list. See all your posts, pages and sidebar with lexi for changes.
- FAQ and screenshots updated.
- New configuration item – Not show icon (add 16 to configuration number).
- Updated UI to use the new configuration number.
- User interface modified to set more items per feed.
- Using nonce to not show data when someone call the ajax script outside the plugin.
- Silence is gold.
- Using minimax 0.3
- Solved a bug with the cache system.
- The code has been indented, documented and standardised.
- Solved a bug with the headers, now Lexi works with the plugin POD.
- Solved a bug when tinyMCE editor in full window.
- Now you can set your own css file (see FAQ).