Drupal Text-Link-Ads & RSS Feeds

Tags:

Regardless of whether the big "G" approves or not text-link-ads are still a very popular form of revenue for a lot of webmasters. From personal experience I have managed websites with text-link-ads that outperform Adsense with over ten times the revenue per month (this is even after the page rank penalties imposed in the last round of updates).

If you have a Drupal powered website and are still using text-link-ads you my want to consider modifying the code in the module. You may have noticed that at the end of each article in the feed the word Advertisement: is inserted. But, the Drupal module does not currently support text-link advertising in the RSS feed.

The issue only seems to present itself with Drupal's RSS feed set to Title+Teaser mode.

To remove Advertisement: from the feed locate the following piece of code in the textlinkads.module file.

<?php

function theme_textlinkads_rss_ad($link) {
$advertisement = variable_get('textlinkads_advertisement_word', t('Advertisement'));
return
"\n\n$advertisement: {$link['rssbeforetext']} <a href='{$link['url']}'>{$link['rsstext']}</a> {$link['rssaftertext']}";

?>

And replace it with this

<?php 

function theme_textlinkads_rss_ad($link) {
 
$advertisement = variable_get('textlinkads_advertisement_word', t('Advertisement'));
return
"";

?>