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

 


SL-Q&A

< Back to the Overview...

 

 How can I display how often a picture has already been shown?

This only works if your server supports SSI, if it doesn't ask you server-admins to activate it. You just have to add the following HTML-Code where you want the DownloadCount to be displayed:

<!--#include virtual="/cgi-bin/schlabo/sp_showsc.pl?http://www.yoursite.com/images/yourpic.jpg"-->

The script will then display the HTML-Code specified using the General-Admin-Script (Introduction, like "this picture has already been shown", then the SC for this picture, then the 2nd part of the HTML-Code (like " times.").

On some servers (especially on NT-Servers) you have to use a different SSI-call to include a script. Try it if include virtual doesn't work:

<!--#exec cgi="/cgi-bin/schlabo/sp_showsc.pl?http://www.yoursite.com/images/yourpic.jpg"-->

Please note that most servers only parse files with the extension ".php" for SSI-calls. If your server does not parse the SSI-calls, try renaming the file where you want to include the scripts to ".php" or contact your administrator to change the configuration of the server.