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

 


SP-Q&A

< Back to the Overview...

 

 How do I use the SP-Script?

Linking to a picture with the SP-Script is easy. The simplest way to do so is something like that:

<a href="/cgi-bin/schlabo/sp.pl?/images/test.jpg">...</a>

This will create a page with the test.jpg-picture and a link to the page where the visitor came from.

But you have many more options to use the script. For example you can add a description which will be shown above the picture. Example:

<a href="/cgi-bin/schlabo/sp.pl?/images/test.jpg&info=This_is_my_test-Image">...</a>

As you can see the " "-chars were replaced with underscores ("_"). You don't have to do that, but it's recommended. Please note that the full picture-URL either has to be the first thing you specify or you have to add "src=". Example:

<a href="/cgi-bin/schlabo/sp.pl?info=This_is_my_test-Image&src=/images/test.jpg">...</a>

You can also specify other things like the width and height of the image or the URL where the script should link back to ("from="). Example of a script-call with every option used:

<a href="/cgi-bin/schlabo/sp.pl?/images/test.jpg&info=This_is_my_test-Image&from=http://www.schlabo.com/&width=600&height=400">...</a>

As in the example you have to use a "?" right after the sp.pl, to add an additional parameter you have to seperate it with "&". The Width and Height will be used as parameters for the <img>-Tag, using the Templates you can also display them on somewhere on the page.