![]() Topic awaiting preservation: modifying sig rotator (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: everywhere |
![]() 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 |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: :morF |
![]() 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 |
![]() 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 |
![]() 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 |
![]() quisja: Yep that is certainly the simplest way to go |
Paranoid (IV) Inmate From: under your rug, |
![]() 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? |