Topic awaiting preservation: modifying sig rotator (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: everywhere |
posted 08-14-2003 00:39
I've just begun using Master Suho's sig rotator, but realized it would be useful for someone visiting the script to be shown a gallery of all the sigs, much like many people have on their sites. The automated gallery I can deal with, but how do I tell if the script is being viewed as an image on an Asylum board or not? I've tried $HTTP_REFERER, but that wont work if someone pastes the url into a browser window that they've been prowling the boards with... Any ideas? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-14-2003 00:52
What's the sig rotator script look like? (sorry I don't know it) |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-14-2003 02:13 |
Maniac (V) Mad Scientist From: :morF |
posted 08-14-2003 08:03
actually...using $HTTP_REFERER should be right, if you put it down as loading the gallery if $HTTP_REFERER == your_site OR empty($HTTP_REFERER), so if there is no referer (which would never happen when an image is loaded from this site) load the gallery as if the referer had been your site. |
Paranoid (IV) Inmate From: everywhere |
posted 08-14-2003 13:08
OK, I played around with hthe referer, but couldn't make it enough of a catch-all solution, so I went a different way instead, and have posted it in the FAQ: |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 08-14-2003 15:17
well, you're a pretty good mindreader, quisja, that's just what I'd have done. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 08-15-2003 03:23
quisja: Yep that is certainly the simplest way to go |
Paranoid (IV) Inmate From: under your rug, |
posted 08-28-2003 15:33
quisja, you need to look over your script again, there are several mistakes that appear to be formatting errors, probably due to how it's being displayed. Can you use the [code] tagss in there? |