[wp-hackers] Themes

Ryan Boren ryan at boren.nu
Tue Oct 12 01:50:15 UTC 2004


On Mon, 2004-10-11 at 16:45 -0700, Kitty wrote:
> On Mon, 2004-10-11 at 16:19, Podz wrote:
> > Will there be a way of a blog owner to create some sort of 'theme 
> > switcher' for visitors based maybe on referrer ?
> > 
> > Idea came about from chatting to someone earlier who wondered if someone 
> > came to their site from a film forum he posts on whether he could have 
> > them see a film theme.
> 
> Well the URL would probably need to look something like this:
> http://www.mysite.com/index.php?theme=film then have a cookie to keep
> the theme around for that user.
> 
> So if someone's in the mood, you could hack up the blog header to handle
> it.

We could add a filter for $wpvarstoreset so that plugins can add new
query vars.  Filters could be added for the theme and stylesheet
settings so that plugins could override them.

Ryan




More information about the hackers mailing list