Tom's Newbie Booster

Customizable Story Script
Let your surfers put themselves into the story

Freeware
Version 1.0



Description

This is an idea that came up in a discussion on TNB. The concept is that the surfers out there are asked for some names, and then those names are inserted into the story at the relevant places and they become the protagonists in the tale.

The whole thing is comprised of an HTML page (which takes the names to be used), and a script (which inserts the names into your story). To get the most out of the script, it's worth spending a bit of time learning how to alter both pages. You'll need to learn how to set up multiple stories, choose how many people are in the story and so on.


Working Example

Here's an example of the kind of page the surfers would get to and be able to add names of their choosing. It's just a re

Example

Add in a couple of names, and then press the submit button. You'll see that the names you inserted were added into the story.


Download & Installation

The script itself isn't that complicated. Download the following zip file:

Download the latest version HERE.


How To Section

Here's a list of common things that you'll probably want to do with this script.

Add your own story text

1) Write your story.

2) Add it into a regular HTML webpage and format the text as desired.

3) Paste all of the HTML code into story1.php where it says paste story here.

4) Wherever you want the male name to appear, paste this code over the male name:

<?php print("$male1"); ?>

4) Wherever you want the female name to appear, paste this code over the male name:

<?php print("$female1"); ?>

Add more than two names

If you view the source code of the index.html page, you'll see that there's a FORM on that webpage. You'll also see some comment tags which give you instructions as to how to reveal another female name and another male name on the form. But let's look at how this while thing works.

1) Open index.html in a text editor. NOT a regular HTML editor.

2) Look for the line that says:

<input class="pink" type="text" name="male1">

3) Look along that line where it says:

name="male1"

Whatever the surfer types in this box - goes into the computer's memory. The computer creates a space in it's memory called "male1" and stores whatever name is typed in this text box in it's memory.

4) Now look at what we pasted into the story earlier on:

<?php print("$male1"); ?>

This is where we tell the computer to recall whatever the user typed into that box on the form and insert it into the story.

Now consider the following:

We create a text box:

<input class="pink" type="text" name="pimp">

Example 1) We then add this to the story:

<?php print("$pimp"); ?>

Result: Whatever the surfer typed into the box will appear wherever we paste <?php print("$pimp"); ?> in the story.

Example 2) We create a text box:

<input class="pink" type="text" name="maid">

We then add this to the story: <?php print("$maid"); ?>

Result: Whatever the surfer typed into the box will appear wherever we paste <?php print("$maid"); ?> in the story.

It's important to understand the relationship between the form text boxes and the way the script inserts them into your story, if you're going to get the most out of this script. Play around and see if you can add your own NEW text box for the character "wife" and then see if you can get the script to insert whatever the surfer types as 'wife' into the story.

Add more stories and change the file names

index.html can be renamed freely. You could rename that my-story.html, story-one.html, or straight-sex.html... you choose! You can have as many html forms like that in the story as you like.

Naming story1.php requires more understanding of how the form works.

1) Open up index.html in a text editor.

2) Look for the line: <form action="story1.php"> This is the script which will have the information the surfer adds at this page inserted into it. Whatever you rename story1.php to - it MUST be added in here so that the form knows which script to use.

As usual - give me a holler if you get stuck...


Enter Tom's Newbie Booster here
More tips, scripts and help...