Support » Plugins » Aaaarrrgh… wp-style-switcher plugin

  • 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 - 1 through 15 (of 42 total)
  • A url would be handy 🙂

    Ah, yeah… Stupid me… Although, I should point out something I didn’t notice until just now.
    The URL for my test/play-around/try-to-learn installation is:
    http://s94939858.onlinehome.us/journal/
    Currently, the changes to the ‘index.php’ file have been restored to static (slightly modified) .css file, but the links to the alternate styles are still shown toward the bottom of the page on the right.
    The thing I recently noticed (which might or might not be worth pointing out), is that the example on Alex’s ‘golf’ page seems to view well under firefox, but not under MSIE. Probably a huge oversight on my part, but my MSIE cookies were disabled. Still, even after enabling them, it seems to make no difference on my site, although it works on Alex’s ‘golf’ site just fine.
    Thanks again to anyone who can straighten me out…. I’m sure it’s probably something stupid on my part….

    Yes, I made a few changes to the file:
    /journal/index.php
    purely for the purposes of altering the layout slightly (mainly the order of the items on the right-hand side, under the “menu” section), and I made a few changes to the default stylesheet (before I installed – or even knew about – the style-switcher), to change the default colors and such) – Other than that, it’s a straight install…
    I did (a couple of times) back up my current files, replace the changed files with those from the distro, and retry the changes… If I understand corrctly, replacing these files (and then following the instructions in the wp-style-switcher README) should create a relatively foolproof test-install:
    /journal/index.php
    /journal/wp-layout.css
    /journal/wp-content/plugins/wp-style-switcher.php
    No joy. I’m convinced that this must be a really stupid oversight on my part… Gotta be something obvious that I’ve overlooked… I have a natural talent for missing the simplest things.
    Again, I’m tremendously thankful for any and all advice.

    I am not sure Volponi…
    It looks like everything is ok in your files. You have activated your style switcher in the plugins?
    I know it sounds like a silly question but don’t worry, you wouldn’t be the first to make this simple mistake.
    Failing that, I will have to leave it in the hands of the gurus here. Let us know how you get on though… and do check to make sure your plugin is activated.

    Yeah, it’s activated… And no question is too silly as far as I’m concerned… I’m not really sure if I should’ve posted this in the troubleshooting forum rather than the plugin forum… I do have a tendency to overlook things that should be obvious…
    I keep coming back to the idea that I must’ve hosed up my /journal/index.php file while I was re-arranging the placement of the things in the #menu section… That seems like the obvious place I could’ve screwed something up… Although after having restored the index.php and other files, clearing cache, deleting cookies, etc, with no positive results, I’mleft with the feeling that I must’ve done something really boneheaded in order to still be non-functional….
    Oh well, at least it was a fresh install… I’ll play with it for a day or so, then I’ll delete it all and try a fresh re-install if I don’t get any better ideas…. Nothing to lose, anyhow, and plenty to gain in the way of a learning experience (assuming I can figure out where I screwed up in the first place)… We all tend to learn more from our mistakes than from our success…
    Even so, if anyone is able to spot my (probably obvious) errors before I go ‘tabula rasa’, please feel free to make suggestions, criticism, or whatever…. Anything short of direct flames might be helpful…
    Thanks again, in advance

    This is from the Read me:
    Include the stylesheet in your index.php file.
    Find this line near the top of index.php:
    @import url( <?php echo $siteurl; ?>/wp-layout.css );
    And change it to:
    @import url( <?php wp_stylesheet(); ?> );
    Note: you can pass in the name of the style you want to use as the default like this:
    @import url( <?php wp_stylesheet("my-new-style"); ?> );
    Did you try this?

    Mark (podz)

    (@podz)

    Support Maven

    Have you looked inside the plugin itself ?
    wp-style-switcher.php
    This line is in there:
    // change this to the name of default style you want to use
    $wp_style_default = ‘wp-default’;
    Try changing that ?

    Looks like I got it working… As I suspected, it was my idiocy… I didn’t realize that it was taboo to have anything commented out inside the “<style> … </style>” block… I did have a comment line in there, and apparently the entire block was being ignored.
    Now to play with the different styles available, and modify the layout/etc…
    Thanks to all for the suggestions.

    Hi Folks,
    I’ve got exactly the same problem as Volponi, I also made the change that podz mentioned,
    i changed $wp_style_default = ‘wp-default’; to $wp_style_default = ‘blue’; and i can see the blue style, but still when i click on one of the other styles the page reloads with the same blue style.
    I have read all the other posts with regards to cookies and localhost installs, but nothing seems to fix it,
    i have even downloaded alex king’s “wp_1.2_pluggedin” which is WP1.2 and all the plug-in’s already linked in but that does not work.
    I have the WP installation on the root of the webserver, the wp-style is a subfolder of the root.
    I have tried accessing the server from another pc but still the styles don’t change.
    I can’t post the url of the server as its not on live internet connection at the moment.
    any idea’s,
    cheers
    Puerilis

    Mark (podz)

    (@podz)

    Support Maven

    View Source and check paths ?
    Also hover the style links and check the path there too. ?

    Mark (podz)

    (@podz)

    Support Maven

    The js error is related to the slvShowNewIndicator not being defined.
    Still looking 🙂

    Mark (podz)

    (@podz)

    Support Maven

    Well the CSS is in the correct place ….
    What is the actual code in index.php that covers this part ?
    <style type="text/css" media="screen">
    @import url(http://home.puerilis.co.uk/wordpress/wp-style/wp-default/style.css);
    </style>

    <style type=”text/css” media=”screen”>
    @import url(<?php wp_stylesheet(); ?>);
    </style>
    the code was all tweaked by alex king :o)

    Mark (podz)

    (@podz)

    Support Maven

    Very odd …. have you got a server error log ? That would show if any odd errors were occurring.

    only the standard IIS logs
    Oh hang on “/wordpress/wp-style/wp-default/images/content-background.gif 404 “
    404 is file not found, i just checked the directory and the “wp_1.2_pluggedin” zip file and there isn’t a “content-background.gif ” in the directory and non in the zip file, but apart from that, there are no other errors.

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