Squish Templates ------------------ Squish was designed to be highly customizable by setting some configuration varibles in squish.config.inc.php and soon in the install/configure script that will be included with TightURL/Squish v.0.2.0 . Many users will never need to edit the templates to get an acceptable level of customization. However, Squish supports a simple variable-substitution templating system with one level of template nesting and over two dozen substituted variables. You may customize these templates or create new ones of your own from scratch. The information you need to customize your templates or create new ones follows. The outer template is *always* the main site template, squish.tmpl . This template controls your site design and is *always* used to generate output pages to the browser. In order to be recognized as a Squish template, your squish.tmpl file should contain the following lines at the top: If you create your own templates, you should include these lines and adjust the version to reflect the version of Squish you created them for, so the update service can keep track of this. Squish will work without these lines, but will generate error messages to the administrator when it cannot determine the template version. You are free to use the last digit of the version number to track your own template version. (ie: 0.2.0.1, 0.2.0.99, 0.2.0.yournumberhere) The inner template is *always* one of the following sub-templates (or no sub-template): squish.main.tmpl : HTML shown for your URLSquisher homepage squish.save.tmpl : HTML shown when a URL is saved squish.help.tmpl : HTML shown for Help info (may not exist yet) squish.faq.tmpl : HTML shown for Help info (may not exist yet) squish.setup.tmpl : HTML shown for Help info (may not exist yet) squish.view.tmpl : HTML shown for Help info (may not exist yet) squish.save.tmpl : HTML shown for Help info (may not exist yet) squish.blacklist.tmpl : HTML shown for Help info (may not exist yet) squish.greylist.tmpl : HTML shown for Help info (may not exist yet) squish.policy.tmpl : HTML shown for Help info (may not exist yet) squish.complain.tmpl : HTML shown for Help info (may not exist yet) Please note that many screens are generated using only the main site (outer) template. All normal error screens are generated this way. The variables supported by Squish Templates in version 0.2.0 are: $HTML : In the innermost or only template, replaced by a HTML message from TightURL. In an outer template, it is replaced by contents of the inner (sub-)template. You should never remove this variable from a template. $PARM : Parameter when 404-Method not used. $URL : Replaced by browser submitted URL. $URLLEN : Replaced by lenghth of the submitted URL. $TIGHTURL : Replaced by TightURL generated by the submission. $TIGHTURLLEN : Replaced by length of the generated TightURL. $DIFF : Replaced by difference in length between URLs. $PREVIEW : Resolved URL in previews $PREVIEWTEXT : Message related to resolved URL in $PREVIEW $INPUT : Replaced by submitted URL for use when there has been an error detected in the input. $SVCNAME : Replaced by name chosen for your TightURL service. $HEADCOLOR : Replaced by color value chosen for

HTML tags. $TABLECOLOR : Replaced by color value chosen for the table. $TAGLINE : Replaced by "tag line" for your TightURL service. $CPASTTEXT : Replaced by capitalized past tense description of tightened URLs. $PASTTEXT : Same as $CPASTTEXT, but first letter not capitalized. $CVERBTEXT : Replaced by capitalized verb description of your TightURL service. $VERBTEXT : Same as $CVERBTEXT, but first letter not capitalized. $COPYRIGHT : Replaced by generated copyright string created from $copystart config value and current year. $COPYRIGHTHOLDER : Name of copyright holder $URIBLS : Replaced by HTML showing URIBLs being checked. $HOST : Replaced by hostname of Web site. $ALIAS : Alias hostname Squish is running on $SELF : Replaced by the URL path to the TightURL script. $BBSTATS : Bad Behavior stats $SQUISHVER : Running version of Squish $TIGHTURLVER : Replaced by the TightURL running version number. The sections supported by Squish templates in version 0.2.0 are: : Section containing an entire TightURL options form containing , , and sections. When squishing or squish box and previews or preview box and complaints and complaint box are off, this section does not display at all. : Section containing a TightURL submission form When squishing or squish box are off, this section does not display at all. : Section containing a TightURL preview input form When previews or preview box are off, this section does not display at all. : Section containing a TightURL complaint input form When complaints or complain box are off, this section does not display at all. : Section containing TightURL preview output