0 Schlabo's Scripts

Schlabo's
Scripts
- home -


Scripts
 Information
 Admin
 POTD
 DL
 SP
 COW

Download
 Download

Installation & Usage
 Overview
 Installation
 Q&A: Admin
 Q&A: POTD
 Q&A: DL
 Q&A: SP
 Q&A: COW

Support
 Troubleshooting

General
 Startpage
 What's New?
 Quotes
 Future
 Contact
 Privacy
 Terms of Use
 Copyright

 


ADMIN-Q&A

< Back to the Overview...

 

 How do the templates work?

The POTD, DL, COW and the SP-script need templates for the pages that the visitors can see (you can not change the layout of the Admin-Interface, there would be no use in doing that). If you do not want to use the templates that came with the scripts, you can make your own. They are normal HTML-Files, you can even use SSI and the script will parse it itself. But somehow the scripts have to know where they should insert their own things like the POTD. That's why there are a few commands that you can insert into the HTML-Code, the script will then replace them with something else.



 Here are the general recognized commands:


  • [!images_url] - POTD, DL, SP, COW
    This is replaced with the full URL of the images-directory where the pictures needed for the script are stored, for example:
    http://www.yoursite.com/images/schlabo/

 

 Every script has several individual commands:


POTD

  • [!cur_date]
    This is replaced with the date of the picture that is currently being displayed by the POTD-Display-Script. Example:
    8-5-2000
  • [!back_link]
    This is replaced with a link to the previous POTD (if there is one available). Example:
    <a href="http://www.yousite.com/cgi-bin/schlabo/potd.pl?day=29&month=12&year=2000"><< Previous Picture</a>
  • [!next_link]
    This is replaced with a link to the next POTD (if there is one available). Example:
    <a href="http://www.yousite.com/cgi-bin/schlabo/potd.pl?day=29&month=12&year=2000"><< Previous Picture</a>
  • [!gallery_link]
    This is replaced with a link to the POTD Visitor-Gallery if it's activated. Example:
    <a href="http://www.yousite.com/cgi-bin/schlabo/potd_gallery.pl?to_day=29&to_month=12&to_year=2000">Gallery</a>

DL

  • [!filename]
    This is replaced with the alias of the file the user wants to download (even if you specified the URL when linking to this file). Example:
    Testfile
  • [!fullname]
    This is replaced with the full URL of the file that the user wants to download. Example:
    http://www.yoursite.com/testfile.zip
  • [!filename]
    This is replaced with just the filename which the user wants to download. Example:
    testfile.zip

SP

  • [!description]
    This is replaced with the description of the full picture-file. Only available if you specified the info when calling the script. Example:

    This is a photo of my house.
  • [!backlink]
    This is replaced with a link back to the referring/specified page. Example:
    <a href="http://www.yoursite.com/"><< Back to the previous page...</a>
  • [!picture]
    Instead of this tag the full picture will be inserted. Example:

    <img src="/images/test.jpg" alt="test.jpg">
  • [!pic_filename]
    This is replaced with the filename of the picture (not the whole URL, just the filename). Example:

    test.jpg
  • [!width]
    This is replaced with the width of the picture. Only available if you specified the width when calling the script. Example:

    640
  • [!height]
    This is replaced with the height of the picture. Only available if you specified the height when calling the script. Example:

    480
  • [!pic_count]
    Displays how often this picture has already been displayed. Example:

    1589

COW

  • [!curweek]
    This is replaced with the current week / episode that is being displayed. Example:
    15
  • [!maxweek]
    This is replaced with the maximum weeks / episodes that are already accessible for visitors. Example:
    20
  • [!archivelinks]
    This is replaced with a link to each of the already available episodes. Example:
    <a href="http://www.yoursite.com/cgi-bin/schlabo/cow.pl?week=1">Week&nbsp;1</a> - <a href="http://www.yoursite.com/cgi-bin/schlabo/cow.pl?week=2">Week&nbsp;2</a>