• OK, so I’m almost a complete newbie to PHP. I’m sure that this problem has been asked an answered here many times. I tried searching for it repeatedly, and nothing seems to be working for me though. Perhaps I’m just too daft to understand the answer, if it was there.
    Scenario is this:
    I installed WP 1.2 yesterday. It was not installed in the server root, but in /journal/
    Everything seemed to work well. I played with some minor customizations of the default template, and managed to not screw things up (at least, I don’t think so, it all seemed to be working OK).
    Then I tried to install Alex Jone’s wp-styleswitcher, and I downloaded a ton of his sample styles to test out, but I just can’t seem to get it to work.
    The styles are located in their individual folders, under /journal/wp-style
    The wp-style-switcher.php file is located in /journal/wp-content/plugins
    When I make the mod in /lournal/index.php, I can get a list of the styles, but none of them will load.
    I found several posts where a user called ‘Beel’ had suggested some alterations, although it sounded like there might be a slight difference in what the others were trying to do. It seemed that others were running WP from somewhere outside of public-html (which is probably a good idea, but I’m not at that level… Face it, I can’t even make the thing work as it is…). Either way, I couldn’t get any of it to work.
    Eventually, I restored the original wp-style-switcher.php file and put index.php bach the way it had been regarding styles.
    Any help would be greatly appreciated.

Viewing 15 replies - 16 through 30 (of 42 total)
  • In the plugin file itself is this line:
    change this to the name of default style you want to use
    $wp_style_default = ‘wp-default’;//
    Try changing that to golf ? or blue-fade ?
    Just need to check that another stylesheet can be picked up.

    Just changed it to
    // change this to the name of default style you want to use
    $wp_style_default = ‘golf’;
    I’ve refreshed the page, no change in the style.

    Something *is* wrong somewhere ……..
    Lets try this – grab a stylesheet directly.
    In index.php, whete you have that style call, cut and delete it (it;’s copied here above to put back), and paste this there instead:
    <style type="text/css" media="screen">
    @import url(https://home.puerilis.co.uk/wordpress/wp-style/blue/style.css);
    </style>

    See if this works …

    Done, and is working, I can see blue.
    BTW i have msn messenger if its easier to chat

    Okay …
    css paths are cool
    css can be picked up with a direct call
    plugin is sending no errors so we assume it’s okay too..
    It’s a local install.
    When the styleswitcher kicks in, it does by using an addition to the url (POST method ?) – could your server setup be stripping that information ?

    On that issue I’m afraid I have not the slightest clue …. that’s beyond my knowledge and experience. Worth a bash for a few minutes to test though ?
    You’ll need to replace the style stuff.

    you said earlier
    “The js error is related to the slvShowNewIndicator not being defined.”
    hows do i fix that ?

    Have you got this in the <head> anywhere ?
    <?php $wplastvisit_output = "javascript"; require('wp-content/plugins/wp-last-visit.php'); ?>

    And with the styleswitcher – it brings up default again.
    What I *think* may be happening is that the script is actually calling the correct stylesheet, but that somewhere – and I’ve no clue where – the default is again being called.
    I’m at a bit of a loss now I’m afraid.

    yeah i’ve stripped it out but it still errors

    I think I’m having a similar problem.
    I’ve finished upgrading to 1.2, and have installed the style switcher and followed the readme, etc etc. However, I’m having a hard time figuring out exactly why my styles are not switching.
    Url: https://cafe-jazz.net/court/

    Hi le_honey
    We’ve all had the same problem, the codes are in the right places and the files are in the right folders but it still doesn’t work, personally i’ve given up on it as when i checked alex king’s (the style switcher creator) website, it didn’t even look like he was using his own style switcher on his site.
    I have also downloaded and installed the “wp_1.2_pluggedin” which is wordpress 1.2 with all the plugin’s installed and that doesn’r work either, i have tried reinstalling this style switcher on Apache and on other IIS servers and still i can’t get it to work, i think that we are all better off using another style switcher.

    Honey, the source of your page has this:
    <style type=”text/css” media=”screen”>
    @import url( https://cafe-jazz.net/court/wp-layout.css );
    </style>
    Did you replace it in the file with this?:
    <style type=”text/css” media=”screen”>
    @import url( <?php wp_stylesheet(); ?> );
    </style>

    The problem, I think is Windows somehow. I have never been able to get it to work on a Windows box (running Apahe) running as localhost or 127.0.0.1 (this is my local machine I try to use for testing). For some reason, the cookie that holds the style to switch to doesn’t get set, so it continues to use the default one.
    But when I uploaded to my main server (which happens to be a Linux running Apache) then it worked fine and the cookie gets set and the style changes. I have never been able to trace what the problem is, or how to fix it. People at PHP.net seemed to think that using 127.0.0.1 was the answer (the key was that the domain address contain at least 1 dot in it) but it wasn’t.
    I don’t know if any of this is any help, but I thought I’d share my experience because, I have been there.
    TG

    TG – Sorry, but my page is run off my Windoze computer running Apache so it must be something else.

Viewing 15 replies - 16 through 30 (of 42 total)
  • The topic ‘Aaaarrrgh… wp-style-switcher plugin’ is closed to new replies.