0
Welcome Guest! Login
0 items Join Now

About StyleSwitcher in Versatility, Carbonation, etc

    • Youyou's Avatar
    • Youyou
    • Elite Rocketeer
    • Posts: 699
    • Thanks: 0

    Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 17 years 3 months ago
    • Rifky Hidayat wrote:
      I join to this forum cause I want to remove "Style Switcher" too, and all I have done just like Miss Ellie
      but switcher effect still works uncontrol.
      Please need hear to all of you soon.
      Rifkin

      If you do exactly what it is explain in the first post (just the part 1) and also what it is explain in the second post, it will works.
      We cannot be more precise because this is all what it is needed.
    • Michael L's Avatar
    • Michael L
    • Jr. Rocketeer
    • Posts: 30
    • Thanks: 0

    Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 17 years 3 months ago
    • Hi all,

      I too am having problems following directions it seems. I'm trying to remove the resizer from versatility II and get the same scrambled mess others have mentioned. Here's what I've done (just as previous post mentioned):

      Quote
      Code:

      <div id="access">
      bla bla bla
      bla bla bla
      bla bla bla
      </div>

      * Remove all of those lines and your styleswitcher will disappear from your header.

      Quote
      If you want totally remove the style switcher, you need also to remove the line:
      Code:

      require($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/rt_styleloader.php");

      Quote
      And changes lines (for VersatilityI-II):
      $default_width = "fluid"; // wide | thin | fluid
      into:
      Code:

      $fontstyle = "f-default"; // f-smaller | f-default | f-larger
      $widthstyle = "w-thin"; // w-wide | w-thin | w-fluid


      Then I tried by removing this whole block:
      <div id="access">
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 <div id="selectors">
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <span class="font-selector">&nbsp;</span>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <span class="width-selector">&nbsp;</span>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 </div>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 <div id="buttons">
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?widthstyle=w-fluid" title="Fluid width" class="fluid"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?widthstyle=w-wide" title="Wide width" class="wide"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?widthstyle=w-thin" title="Narrow width" class="thin"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?fontstyle=f-larger" title="Increase size" class="lrg"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?fontstyle=f-default" title="Default size" class="med"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?fontstyle=f-smaller" title="Decrease size" class="sml"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 </div>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;            </div>
      IT WORKS and found this link to confirm:
      BROKEN LINK REMOVED
    • Last Edit: 8 years 3 months ago by Kat05.
  • Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 17 years 3 months ago
    • Michael L wrote:
      Then I tried by removing this whole block:
      <div id="access">
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 <div id="selectors">
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <span class="font-selector">&nbsp;</span>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <span class="width-selector">&nbsp;</span>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 </div>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 <div id="buttons">
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?widthstyle=w-fluid" title="Fluid width" class="fluid"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?widthstyle=w-wide" title="Wide width" class="wide"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?widthstyle=w-thin" title="Narrow width" class="thin"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?fontstyle=f-larger" title="Increase size" class="lrg"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?fontstyle=f-default" title="Default size" class="med"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                      <a href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/rt_styleswitcher.php?fontstyle=f-smaller" title="Decrease size" class="sml"><span class="button">&nbsp;</span></a>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                 </div>
                     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;            </div>
      IT WORKS and found this link to confirm:
      BROKEN LINK REMOVED
      Hello, Michael

      You have done what I mentioned by removing:
      <div id="access">
      bla bla bla
      bla bla bla
      bla bla bla
      </div>
      And of course it will work

      Best Regards,

      Arifin FinLy
    • Last Edit: 8 years 3 months ago by Kat05.
    • Ellie's Avatar
    • Ellie
    • Sr. Rocketeer
    • Posts: 143
    • Thanks: 0

    Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 17 years 2 months ago
    • LoL!

      Yes, of course it does work.

      I did manage to get myself corrected after some unnecessary hair-pulling on my part. I am happy to see that some others made a similar mistake to what I did. I think it is just a problem of very smart and experienced people talking slightly over the heads of the inexperienced and somewhat daft, without realizing it of course.

      In my case especially, I don't really understand yet what I am looking at when i am looking at code, so "remove every thing between <div id="access"> and </div>", would quite literally mean to remove only these lines:

      <div id="access">
      <div id="selectors">
      <span class="font-selector"> </span>
      <span class="width-selector"> </span>
      </div>



      of course, because that is literally what the instructions say. It took me some thinking to realize that the first </div> is simply the closing tag for <div id="selectors">, and the second </div> closes something else, and that it was the 3rd </div> that actually closed "access".

      Like I said, for most people with even a bit of experience, what I just said is painfully obvious. But to me, for several tries, it just wasn't.

      But, hey live and learn, and when I sorted out what Arifin actually meant, it was a very, very easy fix.

      Thanks to both Arifin and Youyou for the fix and for their patience.
    • It feels like someone with a fever is yelling at my pants.
    • David Chappell's Avatar

    Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 17 years 1 month ago
    • I have successfully taken out the styleswitcher, now how do i delete the border that it was sitting in...i would like my banner to sit flush at the top of the screen? Is this possible?
  • Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 17 years 1 month ago
    • Hello David,

      The border is from the header-bg.png image. You must use picture editor to cut it. Then set the proper height in your css.

      Best Regards,

      Arifin FinLy
  • Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 16 years 11 months ago
    • Hello to everyone! Let me start by saying this if my first post and I've been really enjoying all the great themes and the forums here. Highest marks to Andy for all that is Rocket Theme!

      Now to my issue. I've looked through the other Style Switcher threads, both in the Carbonation and other theme sub-forums, and have yet to see anything like what I'm experiencing. I've also tried the fixes mentioned in those other threads without success.

      First my setup: I'm running IIS on a Windows 2000 Server box with PHP 5.1.4 and MySQL. I should also mention that this is just a base Joomla install, with nothing added yet apart from themes.

      My Problem: The redirect on line 20 of rt_styleswitcher.php seems to be preventing Firefox or IE from creating a cookie, rendering the style switcher useless.
      Code:

      header("Location: " . $_SERVER);


      When I comment out this line, and attempt to change color, font size, or width, of course I get a blank screen because no re-direction takes place. However when hitting the "back" button on my browser, the change has taken effect. I've also verified this by keeping my cookie window open in Firefox. Without the redirect, the cookie controlling the color changes. With it, the cookie never gets written.

      So you can see it in action, I've created a second rt_styleswitcher2.php file with the redirect commented out. At the following link, the first set of color bars omit the redirect. The second set of colors along with the the font and width buttons all point to the original rt_styleswitcher.php file.

      invadeyouthministries.com

      Thanks in advance for any replies.

      Jon
  • Re: About StyleSwitcher in Versatility, Carbonation, etc

    Posted 16 years 11 months ago
    • Update to post above. I uncommented the header() call in rt_styleswitcher2.php and changed it from

      header("Location: " . $_SERVER);

      to

      header("Refresh: 0; url=" . $_SERVER);

      That gives a brief white flash, which isn't absolutely desirable, but at least it's working.

      If anyone has any idea why the original call of header("Location ... would be preventing the setting of the cookie, please let me know.

      Thanks!

Time to create page: 0.066 seconds