Home > Features > Why I Did It: Working With Walnuts, Part 1 • Bookmark   • Newsletters   • Register Search Options


Why I Did It: Working With Walnuts, Part 1

Why I Did It: Working With Walnuts, Part 1

January 23, 2002
Text size: 
Get XBIZ News
XBIZ Research
Will virtual reality boost the paysite market?
Yes, it will soon
Yes, but in a few years
Out of 179 votes. Results based on votes submitted by members of XBIZ.net social network.

" You could go and manually edit all of those pages, and perhaps need to do so all over again in the future. "

In this newest installment of my ongoing "Why I Did It" series, I'm going to redefine the acronym "WWW" from being short-hand for "World Wide Web" to "Working With Walnuts" ~ So what the heck am I talking about now? For some of you, it just might be the coolest thing you've read in a long time...

"The coolest thing you've read in a long time:" A bold statement indeed, and perhaps more appropriately it should be "the most helpful thing you've read in a long time:" for if you've never used them while building your sites before, I'm about to make your life a whole lot easier by exposing you to the wonderful world of HTML "includes."

As I typically do when delving into "technical" issues, I will toss this disclaimer out up-front: I am not a programmer, and often my approach is more akin to wielding a sledge-hammer than to the surgical coding precision of a "Root God" like my pal C-Dawg — and everything I discuss here should not be viewed as the "best" or most technically accurate information available. It is rather the proven techniques that I have used and developed through trial and error, cut n' paste, and several drunken rages over bits of code that have eluded me over the years. These things work on my virtually-hosted domains; use them at your own risk.

"Includes" for Fun and Profit
With that out of the way, let me enlighten those who are unfamiliar with them: "Includes" are just that; snippets of code that are "included" on (usually) multiple HTML pages for a wide variety of reasons and uses.

Why? Consider a site with *many* pages. Now say you want to update the credits and copyright info, or the navigation bar, or the background image and text colors. You could go and manually edit all of those pages, and perhaps need to do so all over again in the future. But wouldn't it be cool if you could assign the values in question to a simple text file, and then by editing that file, cause global changes to your site? Well, that's what includes can do for you!

I've used includes to provide common "headers" and "footers" on my pages. I've used them to replace the BODY tag, and I've used them to insert JavaScript into the HEAD tag. I almost always use them to insert navigational components that may be subject to change into my sites. While some alternative "work-arounds" such as using framesets for your site's navigation and Cascading Style Sheets (CSS) for BODY tag formatting are possible (and often desirable), the use of includes is often preferable. Let's take a closer look:

MS FrontPage "Include Bot"
My first exposure to using includes came from Microsoft FrontPage; a ubiquitous but quite controversial tool that I've used since version one was issued on diskette back in '94 or so. For those who are laughing, prior to my discovery of this gem from Heaven, I was writing HTML using "DosEdit" — and so FrontPage was a MAJOR improvement for me.

Anyways, at the time I had built my first network of AVS sites and was incorporating them into the first evolution of PORNWORKS. With roughly 500 pages, updating this pig was a seriously mind-numbing chore. A chore made much simpler by the FrontPage Include Bot. For those who've never used FrontPage, part of its power stems from a set of tools known as FrontPage Server Extensions that your Web Host installs on your server. These tools (known as "bots") contained an "include" bot, the value of which was dramatically shown to me when a major sponsor who provided most of the free content I used on my sites decided to change their linking URL syntax. I breathed a big sigh of relief — and thanked God that I was blessed with such powerful tools:

Because the sponsor's terms of use for their free image content dictated a link saying "Photos Courtesy of ____" underneath each image, and since each full-size pic was on a separate HTML page, I had my work cut out for me — or would have, if I hadn't used the following tag to place the sponsor's link across these several hundred pages that required it:

!--WEBBOT bot="Include" u-include="../_private/footer.htm" tag="BODY" startspan--

Now, all that I had to do was edit my footer.htm file, and voila! All of the pages were instantly updated with the sponsor's new linking code! I breathed a big sigh of relief — and thanked God that I was blessed with such powerful tools:

But what about those who do not use FrontPage? How can they use includes to perform these maintenance tasks and so much more? While other options may be available, two that I have (and do) use are PHP and Server Side Includes (SSI), both of which I'll discuss next in Part 2 ~ along with the "Walnut" revelation. Stay tuned! ~ Stephen


NMG’s Megan Stokes Helps Brands Find New Revenue

NMG Management, which helps adult companies find new ways to increase revenue and brand exposure, has some of the industry’s most prominent studios listed as clients. From MetArt to Holly Randall... More »

Cam World: Chaturbate’s Ramona Flour Cultivates Community

Wreathed in a scarlet mane of silky flames, Ramona Flour is a mesmerizing Renaissance woman, her painterly figure gorgeously inked and her savvy intellect sharpened to a witty edge. Artistry pours forth... More »

Cam World: TheaForYou Hypnotizes Audiences on Stripchat

TheaForYou is an exotic mirage of heavenly dreams, dancing through streaming lights whenever she graces the web-cam on Stripchat. Shimmering golden hair crowns her adorable eyes like solar rays spun from... More »
Stay informed of the latest industry developments. Get XBIZ newsletters delivered to your inbox. Subscribe today!
Enter email address:

* To manage existing subscriptions click here.

Submit your press release to
multiple news outlets with 1 click.
Subscribe to RSS news feeds or
add free content to your website.
Access XBIZ news and articles
with your mobile device.
Subscribe to XBIZ World magazine, the industry's leading e-commerce trade publication, delivering in-depth coverage of the online, mobile and ancillary digital markets.


XBIZ.net Paysite Meetup

May 04 - May 04
Prague, Czech Republic

Eurowebtainment 2017

May 17 - May 20
Majorca, Spain

XBIZ Retreat

May 30 - Jun 03
Miami, Florida

XBIZ Miami 2017

May 30 - Jun 02
Miami, Florida
Everyday thousands of business professionals browse XBIZ's industry directory for quality products and services. Not listed yet? Your company could be losing potential new business. Submit your company today!
Use XBIZ RSS feeds to stay informed of the latest industry developments or as a content syndication tool for your website!