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...
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! |
Comments - Make a comment |
The comments are owned by the poster. We are not responsible for its content.
|
AdministrativeTexts
updated by freddiemac1993, 2013-06-14
wiki
Re: adventures
created by brittdavis10, 2012-02-23 (1 rply, 3 views)
thread
Re: how to run phpwebsite...
created by alexander, 2011-08-25 (2 rpls, 3607 views)
thread
Re: Forum tags
created by HaroldFaragher, 2011-08-22 (3 rpls, 8488 views)
thread