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).
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, it looks like this:
This is True®
by Randy Cassingham
Stories from Our Archives ©1994-2017
Stab the Messenger
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 [Note: Depreciated! We hope to be replacing the functions soon.]
Frequently Asked Questions
Q: How does this work?
Q: The color scheme doesn’t match my site. Can I change the background color(s)?
A: Yes; see optional parameters below, which were used to create the second example to the right.
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?
A: They’re from our vast archive of thousands of stories — True has been publishing since 1994, so even changing to a new story every day won’t result in our running out of content for this program.
Q: I’ve missed some stories! Can I get copies of past days?
A: Not through this program, no. But all the stories (and more!) are in the This is True book collections, which you can order online. (Book info and orders.)
Q: Can I remove the subscribe box for This is True from the bottom?
A: No; that’s the “price” of getting new content every day, for free, for your site.
Q: Can TAD be on a page with other content or ads?
Q: What are the optional parameters I can use?
A: You don’t need to use any of these, but they are available to customize TAD’s look for your site:
|align=||sets horizontal position TAD appears||align=right|
(can also use center or left)
|width=||the number of pixels you want the TAD box to be, or the percentage of your page width (default: 55%)||width=500px or width=55%37|
(Note: “%37” is correct in all cases — it’s the hex code for “percent”. So width=60%37 makes the width 60%, width=75%37 makes it 75%, etc.)
|headerbgcolor=||background color of the top and bottom cells (default: light blue — ADD8E6)||headerbgcolor=white or|
headerbgcolor=FFFFFF (Note: the FFFFFF is the standard hexcode without the #)
|bodybgcolor=||background color of the middle cell (default: beige — F5F5DC)||bodybgcolor=FFFFFF or|
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:
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?
A: No; it’s a custom application from Randy’s friend Leo.
Q: Does this work on WordPress?
A: Almost: coming soon!