skip to main content

Theme-choosing for anonymous users
updated by rck, 2004-10-26

So you want to show your phpWebSite themes to anonymous viewers as well? That's not possible out of the box, as Layout, the module which is responsible for Themes, supports only logged in users. Well, it's possible now, some hours hacking later...

1 | 2

Showing off

So that's it, eh? Not quite, we'll need a couple of links, so the user can choose our Themes. Remember the request variable theme? like in $_REQUEST["theme"]=="emotions"? Add the module layout to it (it's in $_REQUEST["module"]), but handled by the phpWebSite framework) and you're ready to go. A full link to the Emotions theme, you can of course change the values, would look like


If you add a nice image to it, you're all set. You could even throw in some JavaScript and make a selection box out of it. Or change it to a form with a submit button, remember the post variables? All you'd need is to post module=layout and theme=emotions to your index.php

Have fun!

1 | 2
Where to look
Showing off

RSSComments - Make a comment
The comments are owned by the poster. We are not responsible for its content.
  • got it!

    Posted on 2004-10-27 22:49:34 By Sharondippity[12]

    changed On 2004-10-27 23:39:57 Edited By Sharondippity (reason: :))

    hey I got it to work!

    This is fantastic! smile

    [Reply ]

    • Credits page

      Posted on 2004-10-28 00:09:16 By Sharondippity[12]

      changed On 2006-06-19 15:50:33 Edited By rck (reason: )

      I'm starting a credits page for hacks applied. Now I have to think back on other stuff, like the photobox, etc.

      Very handy indeed

      [Reply ]

RSSAll Articles
2008, 2007, 2006, 2005, 2004