Free Daily Content for Your Site
We're often asked by web site owners if they can put our stories on their site, but we've had to refuse such requests -- until now! We're very pleased to offer True-a-Day (TAD). (Advanced Webmasters:True-a-Day is also available in a SSI-PHP version) By adding a single line of code on any page on your site, you can automatically show your visitors a new story every day. What a great way to get return visitors! With the default settings (plus centering), it looks like this: Weekly Weird News Here's all you have to do to get it on your site: add the following line to any page on your web site: Make sure you have it all, and it's very important to copy it verbatim -- it's best to use cut and paste. (And thisistrue.net is correct, do not change it to thisistrue.com or it won't work!) It's best to have it all on one line, but you can break it into two if you wish. That is the simplest way to do it, but there are some optional parameters you can add if you want or need to -- see below. The above story was added simply by using that line -- which means when you come back later the story will be different. It changes every day. Advanced Webmasters:True-a-Day is also available in a SSI-PHP version Frequently Asked QuestionsQ: How does this work? A: It's a program on our server that feeds the story to your site visitor's browser. It uses javascript to do it, so it only works if your site visitor's browser has javascript enabled. (Most browsers, including Netscape, Internet Explorer, Opera, Safari, etc., support javascript and it's enabled by default.) Q: The color scheme doesn't match my site. Can I change the background color(s)? Q: The stories aren't the same as the ones I've gotten in my This is True e-mail subscription. Where are they from? Q: I've missed some stories! Can I get copies of past days? Q: Can I remove the subscribe box for This is True from the bottom? Q: Can TAD be on a page with other content or ads? Q: What are the optional parameters I can use?
How to add the parameters to the script call: Include one or more, without spaces, after the tad.pl part. The first parameter must start with "?". Any additional parameters are separated with "&". Example: The above option coding was used to create the second example above. Again, it should ideally be all on one line, even though it probably wraps for you here, in your browser. Q: This is very, very cool! Did you create it yourself? |
8 Comments on This Entry
All comments on this site are reviewed prior to being published. Spammers: don't waste your time. The posting criteria are simple: if a comment is worth visitors' time to read, it's approved. If not, it's not.
Posted by Will in Little Rock, AR on February 24, 2009:
Is there any way to get TAD into a MySpace profile? Since MySpace blocks javascript, I can't use the code listed.
---
Not so far as I know, no. Sorry! -rc
Posted by Will, Newcastle Australia on May 13, 2009:
Cool feature Randy! I've already bookmarked it on the iphone - definitely will be making use of it!
Leo's website looks pretty interesting too.
---
Indeed it is. For others, the iPhone version of True-a-Day is at http://i.thisistrue.com -rc
Posted by Michal, Norway on July 24, 2010:
I want to edit the text color. Is that possible?
---
I believe the body text color is inherited from the page it's on. -rc
Posted by Stefan, Germany on August 28, 2010:
charset="iso-8895-1" should be charset="iso-8859-1"
And FWIW, I had to use
echo system("wget -q -O - http://thisistrue.net/cgi-bin/tad.pl?ssi=1 | iconv -f WINDOWS-1251 -t UTF-8");to make the typographic quotes work on my site.
Posted by Martin from NoVa on September 11, 2010:
I'd like to do this but I'm hopeless with HTML. I use blogspot and could add it easily if it were a gadget.
---
You don't have to know HTML. Just copy and paste the snippet, and you're done.
Posted by rewinn, Mercer Island on September 11, 2010:
I use blogspot and added it here: http://rewinn.blogspot.com
(Actually I experimented with a couple of ways, it's just using the "html" gadget.)
Feel free to contact me offline if you want help. This Is True is worth supporting!!!
Posted by Jeni, OR on October 30, 2010:
I just wanted to say thank you for adding the "True-a-Day" for your site. I just started my site and was looking for some really different and interesting content to keep my viewers entertained. This is perfect. Best Wishes to you and thanks again.
---
I'm glad you find it useful! -rc
Posted by David in Boulder, CO on November 6, 2010:
I think this is a great idea. By adding something like this to by website, visitors can look forward to getting something new every time they come back. Very cool. Thanks.