1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Theme Switcher plugin for WordPress HELP

Discussion in 'PHP' started by andrej, Jul 20, 2007.

  1. #1
    I'm going to launch my own "free WordPress themes" site wpmix.com and I would also like to have a live demo (test run) for each theme. I'd like to work the demos on another Wordpress installation in folder wpmix.com/wpdemos/

    However, the problem is I don't know how to get it working. I don't want to install new Wordpress for each of my themes. That would take too much time and too many databases...

    I think it's possible to get the demos working with the URLs like e.g.:
    http://wpmix.com/wpdemos/index.php?wtheme=bluesense
    http://wpmix.com/wpdemos/index.php?wtheme=techdesign

    But this doesn't work. I have the themes uploaded in the wpdemos folder and I've also installed the "Theme Switcher" plugin (downloaded from wordpress.org). So in the default theme on wpmix.com/wpdemos/ you can change themes, but I need exact URL for demo of each theme, so that I could link to particular demos from other sites.

    Anyone could help me to get this working? Rep+ will be added.

    P.S. I think PHP forum is the be the best for this thread, as the theme switcher plugin is a .php file and some work in PHP needs to be done to get this working.
     
    andrej, Jul 20, 2007 IP
  2. daman371

    daman371 Peon

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The name of the theme is case sensitive. The name of the actual directory is what is put after the equals sign, for example in
    http://wpmix.com/wpdemos/index.php?wtheme=TechDesign, the theme name is TechDesign and case sensitive. Spaces are put as a + for example WordPress+Classic
     
    daman371, Jul 20, 2007 IP
    andrej likes this.
  3. andrej

    andrej Notable Member

    Messages:
    3,210
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    220
  4. bikerjeg

    bikerjeg Active Member

    Messages:
    364
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Hey there andrej. I am trying to do the same thing. What I noticed is that the http://dev.wp-plugins.org/wiki/ThemeSwitcher plugin does not seem to work with WP 2.2.1 version. I may be wrong but it does not work for me with the current WP version.

    If anyone knows a quick fix for the plugin please let us know here. I would be interested in know how to get this to work too.
     
    bikerjeg, Jul 22, 2007 IP
    andrej likes this.
  5. andrej

    andrej Notable Member

    Messages:
    3,210
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    220
    #5
    I already got this problem resolved. It didn't work because I've misspelled the links! Check the links above and you'll see that I've typed wtheme and not wptheme.

    And it works with Wordpress 2.2.1 for me.
     
    andrej, Jul 23, 2007 IP
  6. bikerjeg

    bikerjeg Active Member

    Messages:
    364
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #6
    your links on your site still don't work for me. I tried all of them and the only theme I saw was the default wpmix theme.
     
    bikerjeg, Jul 23, 2007 IP
  7. andrej

    andrej Notable Member

    Messages:
    3,210
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    220
    #7
    What browser do you use? It works for me in Firefox and Opera, but I just noticed today that it doesn't in my IE6. And that's not good, as most surfers use this browser. :(
     
    andrej, Jul 23, 2007 IP
  8. daman371

    daman371 Peon

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yeah I'm using Firefox. It doesn't work for me in Firefox anymore either. Someone said the workaround is to upload the same php files to each theme's directory.
     
    daman371, Jul 25, 2007 IP
  9. andrej

    andrej Notable Member

    Messages:
    3,210
    Likes Received:
    130
    Best Answers:
    0
    Trophy Points:
    220
    #9
    No, that's not necessary. All you have to do is to upload the Theme Switcher plugin into the plugins directory and activate it.

    These links work for me in Firefox and Opera:
    http://wpmix.com/wpdemos/index.php?wptheme=TechDesign
    http://wpmix.com/wpdemos/index.php?wptheme=BlueSense

    But it doesn't work in my IE6. :mad:

    It also has something to do with cookies. I think you need them enabled.
     
    andrej, Jul 25, 2007 IP