plugin: Hide googleAds in RSS Feed |
| Written by kksou | ||
| Monday, 16 June 2008 | ||
|
This plugin hides {googleAds} tags in your RSS feed. If you have installed the {googleAds} 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 {googleAds} tags will appear in the RSS feed too! This is usually undesirable. This plugin will automatically hide all these {googleAds} tags so that the RSS feed is FREE of these {googleAds} tags. Latest Version v1.0.1 (for Joomla 1.0) and v1.5.1 (for Joomla 1.5) Fixed the warning message "Undefined variable: flag" DownloadJoomla 1.0.x: hide_googleAds_for_rss_feed_v1.01.zip
Joomla 1.5.x: hide_googleAds_for_rss_feed_v1.51.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 There are no user reviews yet. Note: You have to be a registered member to leave a comment. Free registration here. |
||
| Last Updated ( Monday, 30 June 2008 ) | ||
| < 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






