bookelves.com presents Elf Life.
Home |  Comics |  Carsblog |  Technodope |  Kipper |  Email + 


$5.95 Dial-up
Kipper 2.

Detailed page information with data.info

For a higher level of page customization, create a file called data.info in your source file folder. Here, you will enter your information manually, through a text editor.

This file is merely a collection of arrays for Kipper to read. The entire page should be between PHP brackets:

<?php
[...]
?>

Customize page titles

The format for listing page titles:

$indtitle = array();
$indtitle["filename"] = "New page title";

The first line must be included once, to define $indtitle (individual title) as an array. The next line can be repeated for every page that you want to name.

Here is a sample from one of my own archives:

$indtitle = array();

$indtitle["20010523"] = "Du kanske har rätt, Baughb...";
$indtitle["20010524"] = "Meera, du och barnet borde vara nere i grottorna med de andra...";
$indtitle["20010525"] = "Nå, visir? Jag väntar på ert svar...";
$indtitle["20010611"] = "Ho-hoo! De måste vara här nånstans...";
$indtitle["20010612"] = "Hur ska vi hitta alverna om vi inte vet deras namn?...";
$indtitle["20010613"] = "Vad du skulle fråga dem? Dumhuvud!...";
$indtitle["20010619"] = "Det här blir alldeles för komplicerat...";

Whenever indicating a page, use just the filename and not the extension, i.e. index and not index.php.

Transcripts and notes

Use the same format as above, but with $transcript as the variable, to create individual transcripts or notes.

$transcript = array();

$transcript["20010523"] = "
[...]
";

Kipper copies the text of this transcript underneath the page content, in a section with the ID "transcript", and should be formatted with styles. Our transcript CSS is designed to emulate the look of a motion picture screenplay, but with a little extra color. Feel free. :D

Here's a full example of my own transcript code:

$transcript = array();

$transcript["20010523"] = "
<div class=\"character\">   Aemus   </div>
<div class=\"dialogue\">
    Hmm...du kanske har rätt, Baughb. Förvisso lever ingen av oss för evigt.
</div>
<div class=\"dialogue\">
    Det där otydbara klottret är det forntida språket. Det är vårt modersmålexact. Vetenskapligt, men också uråldrigt och bortglömt.
</div>
<div class=\"character\">   Oggie   </div>
<div class=\"dialogue\">
    Psst-psst.
</div>
<div class=\"character\">   Aemus   </div>
<div class=\"dialogue\">
    Känner du redan till de här tecknen?
</div>
<div class=\"character\">   Oggie   </div>
<div class=\"dialogue\">
    Psst-psst psst.
</div>
<div class=\"character\">   Aemus   </div>
<div class=\"dialogue\">
    Fantastiskt! Var har du lärt dig det, unge vän?
</div>
<div class=\"character\">   Meera   </div>
<div class=\"dialogue\">
    Böcker.
</div>
<div class=\"dialogue\">
    Han hade aldrig några vänner, så jag gav honom böcker som sällskap.
</div>
<div class=\"dialogue\">
    Det var det minsta jag kunde göra som hans mor.
</div>
";

As you can see, even though you can break lines and tab, there is the drawback of having to use the backslash to escape quotation marks. To see the result of this code, go here.

Reset page order

To change archive navigation order, use this format:

$order = array
("20010619","20010613","20010612","20010611",
    "20010525","20010524","20010523");

Kipper would otherwise sort these files in alphanumeric order. The example above would set these pages in reverse order. Even webpages that are not archives can benefit from this, with navigation buttons taking the user through a logical sequence:

$order = array("index","requirements","features","download")

Some users like this kind of feature; instead of scrolling back up to the menu, the navigation takes them through everything they need and want to read.

This also limits the pages that Kipper makes. If it's not on the list, it doesn't get made.

Kipper 2

Copyright © 2009 Carson Fire • Privacy policy