plugin: Hide include_content_item in RSS Feed |
| Written by kksou | ||
| Tuesday, 20 May 2008 | ||
|
This plugin hides {include_content_item} tags in your RSS feed. If you have installed the {include_content_item} plugin, and you're also using the standard RSS feed generator that comes installed with Joomla 1.0 and 1.5, you will find that those {include_content_item} tags will appear in the RSS feed too! This is usually undesirable. This plugin will automatically hide all these {include_content_item} tags so that the RSS feed is FREE of these {include_content_item} tags. Latest Version v1.0.2 (for Joomla 1.0) and v1.5.2 (for Joomla 1.5)
DownloadJoomla 1.0.x: hide_include_content_item_for_rss_feed_v1.02.zip
Joomla 1.5.x: hide_include_content_item_for_rss_feed_v1.52.zip How to install (Joomla 1.0.x)
Note: If you've already installed the plugin "Hide DirectPHP for RSS Feed", "Hide include_content_item in RSS Feed" or "Hide jumi for RSS Feed" you can skip this step. The same trigger will trigger all these plugins. $database->setQuery( $query, 0, $info[ 'count' ] ); $rows = $database->loadObjectList(); global $_MAMBOTS; $_MAMBOTS->loadBotGroup( 'content' ); foreach ( $rows as $row ) { // title for particular item $item_title = htmlspecialchars( $row->title ); $item_title = html_entity_decode( $item_title ); // url link to article // & used instead of & as this is converted by feed creator $_Itemid = ''; $itemid = $mainframe->getItemid( $row->id ); if ($itemid) { $_Itemid = '&Itemid='. $itemid; } $item_link = 'index.php?option=com_content&task=view&id='. $row->id . $_Itemid; $item_link = sefRelToAbs( $item_link ); $results = $_MAMBOTS->trigger( 'onBeforeDisplayTitle', array( &$row, array(), 16) ); // removes all formating from the intro text for the description text $item_description = $row->introtext; $item_description = mosHTML::cleanText( $item_description ); $item_description = html_entity_decode( $item_description ); How to install (Joomla 1.5.x)
Note: If you've already installed the plugin "Hide DirectPHP for RSS Feed", "Hide include_content_item in RSS Feed" or "Hide jumi for RSS Feed" you can skip this step. The same trigger will trigger all these plugins.
if ($data->skipDays!="") {
$feed.= " <skipDays>".htmlspecialchars($data->skipDays,
ENT_COMPAT, 'UTF-8')."</skipDays>\n";
}
$dispatcher =& JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
for ($i=0; $i<count($data->items); $i++)
{
$results=$dispatcher->trigger('onBeforeDisplayTitle',
array(&$data->items[$i], array(), 16));
$feed.= " <item>\n";
$feed.= " <title>".
htmlspecialchars(strip_tags($data->items[$i]->title),
ENT_COMPAT, 'UTF-8')."</title>\n";
$feed.= " <link>".$url.$data->items[$i]->link."</link>\n";
$feed.= " <description><![CDATA[".
$this->_relToAbs($data->items[$i]->description)."]]></description>\n";
if ($data->items[$i]->author!="") {
$feed.= " <author>".htmlspecialchars(
$data->items[$i]->author, ENT_COMPAT, 'UTF-8')."</author>\n";
}
User reviews Average user ratings: 4.0 (from 3 users) Note: You have to be a registered member to leave a comment. Free registration here. |
||
| < Prev | Next > |
|---|
Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla Plugins
Joomla Components
Joomla Gadgets
- Google Image Search
- Google News Search
- Wikipedia Search
- Google Book Search
- Google Video Search
- Google Currency Converter - AJAX version
- Yahoo Currency Converter - AJAX version
- Yahoo Stock Quote (AJAX module version)
- Yahoo Stock Quote (AJAX component/ module version)
- googleSearch_cse component
- googleSearch_cse module
- googleMaps plugin








September 03, 2008 3:01pm
Do you have a solution for 3rd party RSS feeders like iJoomla's RSS Feeder?
September 04, 2008 2:58am
I took a look at iJoomla's RSS Feeder's site. It's a commercial software for $59.95.
Since you've paid for the software, you should ask them to add the code for you.
As you can see above, you only need to add a couple of lines to trigger the plugin. The 'trick' is to know where to add the code. Since they wrote the software, they will know where to add it.
Regards,
/kksou
November 17, 2008 8:57am
Hello, I have both Hide DirectPHP for RSS Feed and Hide include_content_item in RSS Feed instaled and enabled and still have
{include_intro }
{include_fulltext } in published rss. In Joomla 1.0 there wasn't such a problem. I use standard mod_syndicate to publish it.
Regards
Bartek