Sulfuric:

This is a bad idea™. You will disorient your visitors to the point where they won't be sure where they are. Consisancy is the most important thing in branding. Imagine if every MacDonalds had a random color/font for their 'M' .. you'd not be sure if it was McDonalds or not.

The only exeption I make to that rule is for websites-as-art which, as you've had other people create the look, is not what your site is. Art sites can change as often as they please because the site itself is a piece of art.

All that being said, here's the answer you're looking for:

If your site is CGI based then it's as simple as storing a cookie for however long you want them to get the same template. Read the cookie on each page load and return templates based on the cookie.

If your site is file based, then you want to store your two sites in directories like www.yoursite.com/site1/page.htm and www.yoursite.com/site2/page.htm. Then in apache (which I'll assume you're using) you need to do a mod_rewrite. It's not a two second job and its really not a perl question so I'll leave it at that. Take a look at the apache documentation for mod_rewrite for more information. You'll basically be rewriting www.yoursite.com/page.htm with one of the above links based on a cookie. (Remembering to have some fall back for non-cookie people ... like mod the day of the week).

Just remember that if your site is file based, you'll have to update files in both directories every time you make a change.

Once again though, let me reiterate that this is a bad idea™ and that your users will become confused. I once saw a site with multiple designs but I had to choose to change from the default so at least I knew I was at the same site I'd been at last time.


Cheers!
Rick
If this is a root node: Before responding, please ensure your clue bit is set.
If this is a reply: This is a discussion group, not a helpdesk ... If the discussion happens to answer a question you've asked, that's incidental.

In reply to Re: Random templating by BigLug
in thread Random templating by sulfericacid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.