skip to main content

kiesler.at
You are NOT logged in. ( login | New Account Signup | Forgot Your Password? ) Why log in?

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

http://www.kiesler/index.php?module=layout&theme=emotions

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.
RSSAll Articles
2008, 2007, 2006, 2005, 2004