RSS Ads in Movable Type

Freshness Warning
This article is over 15 years old. It's possible that the information you read below isn't current.

I’ve added a short ad for my consulting services to the RSS feed for Simplelinks. The problem with putting persistant content in RSS is that many news aggregators only show an item once unless it changes.

So your persistant item has to change regularly, but not too regularly. If the same item appears in the feed every day, people may get irritated and stop reading your feed. If the item only changes once a month, then the ad won’t have much impact.

I settled on changing the ad weekly. Then I had to figure out how to have content automatically changes once a week. My plan was to have link element use a query string that would be unique each week. Using the year and the week number for the current date would work fine.

MT’s date formatting commands will let me insert the day number (the tag <$MTDate format="%j"$> inserts 149), but not the week number. I considered writing a plugin to add a week number format command to MT (and I still might), but for a quick and dirty way of doing things I turned to the Regex plugin to convert the day number into a week number.

Here’s what ended up in my template, right after the final </MTEntries> tag.

<MTAddRegex name="weeknum">          s|(\d+)|int($1/7 + .9999)|e</MTAddRegex>    <item>        <title>Kalsey Consulting Group :: Web Sites With         Business Sense</title>        <description>Simplelinks is a product of Kalsey Consulting         Group. We build Web sites that solve real business problems.         To find out how we can help your business, ask for a         free quote at <a         href="http://kalsey.com?<MTDate  format="%Y">-        <MTDate format="%j" regex="weeknum">      ">http://www.kalsey.com/</a></description>        <link>http://kalsey.com?<MTDate format="%Y">-        <MTDate format="%j" regex="weeknum"></link>    </item>

Business Intelligence Software
September 12, 2003 5:47 AM

Thanks for the Inputs on RSS, it makes lot more business sense to me now.

Chad
December 19, 2003 11:14 AM

RSSAds - http://www.rssads.com is an ad network that makes it easy to sell advertising in RSS.

Kevin Donahue
August 9, 2004 12:39 AM

Adam - I know I"m a couple years late to the game, but how 'bout a full view of the code being used, that way we can see exactly how/where the insert goes in the template.

Your comments:

Text only, no HTML. URLs will automatically be converted to links. Your email address is required, but it will not be displayed on the site.

Name:

Not your company or your SEO link. Comments without a real name will be deleted as spam.

Email: (not displayed)

If you don't feel comfortable giving me your real email address, don't expect me to feel comfortable publishing your comment.

Website (optional):

Follow me on Twitter

Best Of

  • Pitching Bloggers Forget what you learned in your PR classes. Start acting like a human instead of a marketer, and the humans behind the blogs will respond.
  • Debunking predictions Read/Write Web's authors have some goofy predictions.
  • Google on the desktop Google picks up Picasa, giving them an important foothold on people's PCs.
  • Best of Newly Digital There have been dozens of Newly Digital entries from all over the world. Here are some of the best.
  • Rounded corners in CSS There lots of ways to create rounded corners with CSS, but they always require lots of complex HTML and CSS. This is simpler.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

15

Recently

Networking as an entrepreneur (Oct 23)
Having a network is crazy important. Networking is not.
Stretching your team (Jun 11)
Stretching your team is one of the best ways to improve your output, your team's happiness, and your velocity. But they'll need coaching.
Physical camera shutter for Cisco Spark Board (Jul 6)
A 3d printable design for a camera shutter for a Cisco Spark Board
My Travel Coffee Setup (Jan 20)
What my travel coffee brewing setup looks like, and how you can build your own for under $100.
Turkey Legs (May 30)
Product naming gone awry.
Speaking for Geeks: Your Slides (Dec 17)
Tips and tricks for creating great slides.
Speaking for Geeks: Writing Your Talk (Dec 14)
Don’t wait until the night before the talk to write it. Crazy, I know.
Speaking for Geeks: Tell a Story (Dec 13)
Telling a story keeps your presentation focused, keeps your audience interested, and makes it easier for you to remember your talk.

Subscribe to this site's feed.

Elsewhere

Tropo
Voice and communications platforms, including Tropo and Phono. Work.
SacStarts
The Sacramento technology startup community.
Pinewood Freak
Pinewood Derby tips and tricks

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

AIM or Skype: akalsey

Resume

PGP Key

©1999-2018 Adam Kalsey.
Content management by Movable Type.