Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortalanh
    • CommentTimeJul 27th 2007
     
    Help,
    I'm using Plogger 3, which is wonderful, kudos to all! I'm trying to use two different css and I would like to be able to access the gallery with both. I simply made another index page, named it index2.php with the different css and it works fine until I click on the gallery photos to view the large (actual size) photo. The reason I believe is because of the link reference. Below are the two links. The first is the one that works and the second is not. Maybe someone can show me a different way than what I'm doing to access the different css.

    http://www.crgymnastics.com/photos/?level=picture&id=225
    http://www.crgymnastics.com/photos/index2.php?level=picture&id=225 (the index2.php is the problem)
    • CommentAuthorardamis
    • CommentTimeJul 27th 2007
     
    Renaming the files in a PHP script is always a little dangerous. At some point, the script is probably going to go looking for the file you've renamed, and, not finding it, break. Quite a few posters to the forums have tried renaming index.php for various reasons, and often run into problems.

    A good article on using Javascript and Cookies to allow a user to switch between different stylesheets is available at http://www.alistapart.com/stories/alternate/

    This method should work well, unless you want to invisibly force visitors to use a certain stylesheet, depending on various factors. That would be a little more involved.

    -ardamis