Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 43

[How To] Move CSS to file system

This is a discussion on [How To] Move CSS to file system within the Member Articles forums, part of the Focus on Members category; 1) ftp into your site and chmod /clientscript/vbulletin_css/ folder to 777. 2) login to vbacp. 3) vboptions -> Style & ...

  1. #1
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2

    [How To] Move CSS to file system

    1) ftp into your site and chmod /clientscript/vbulletin_css/ folder to 777.
    2) login to vbacp.
    3) vboptions -> Style & Language Settings
    4) find heading: Store CSS Stylesheets as Files?
    5) choose yes

    Your style tag will now be moved to a link rel="stylesheet" tag.
    Last edited by Ace Shattock; 09-05-2009 at 05:13 AM.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  2. #2
    Sid
    Sid is offline
    Member Sid's Avatar
    Real Name
    Sid
    Join Date
    Oct 2008
    Location
    Athens, Greece
    Posts
    59
    Liked
    0 times
    In what way does this help?

  3. #3
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    It removes quite a bit of bloat that SE's have to go through to get to your content.
    The Forum Hosting - Forum Hosting from the Forum Experts

  4. #4
    Sid
    Sid is offline
    Member Sid's Avatar
    Real Name
    Sid
    Join Date
    Oct 2008
    Location
    Athens, Greece
    Posts
    59
    Liked
    0 times
    i thought so just wanted to check and to also get rid of that nasty reminder that i havent posted in a long while

    a quick check of admin cp shows i already have it set up this way.. pity and it seemed like an easy enough upgrade to do

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    Advantages:


    • linked style sheets are cached by browsers.
      • downloads once, saves bandwidth, pages load faster after initial view
    • removes all the code in the head area of the document.
      • replaces with 1 line
      • increases code2content ratio
      • moves your REAL content/text towards the top of the document.
    • saves a database call
      • uses filesystem instead

    Disadvantages:

    • Can cause issues on multiple web server set ups (will only save to one web server)
    • Will not be included in a db backup (be sure to back up the file system too)
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Member
    Real Name
    Nathan
    Join Date
    Mar 2009
    Posts
    73
    Liked
    0 times
    Thanks for the help, I thought I had this working before but found out it wasn't for some reason. Did some troubleshooting and now it does!

  7. #7
    Junior Member
    Real Name
    Abbsta
    Join Date
    Sep 2009
    Location
    London, UK.
    Posts
    11
    Liked
    0 times
    Thanks for the tip Brian.

  8. #8
    Senior Member KURTZ's Avatar
    Real Name
    Christian
    Join Date
    May 2008
    Location
    Italy
    Posts
    287
    Liked
    2 times
    Blog Entries
    6
    thx Brian, just a Q: but if i need to change something into my templates this article can have any effect onto my updated templates/styles?

  9. #9
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    The only issue with changing styles is the google cache. As they take a bit to update, but still tend to link direct to the CSS file. When saving, it will re-name the css file. Eventually it will catch up and the cache will be ok again.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  10. #10
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    To take this a step further: Styles @import vs link - vBulletin Community Forum

    Anyone have any insite on the wysiwyg class and how it doesn't load from within the editor iframe when css file is hosted on a cdn?

  11. #11
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    old browsers don't recognize @import. Thus, stuff that older browsers don't support and will render weird should be @import 'ed.

    Otherwise, there's no semantic differences between them in other than how they are physically linked (ie, @import can run in a linked sheet to import additional rules)

    My guess is that @import is failing because its a relative path, and to the CDN, it's an invalid path that does not exist.

    Try changing it to a FQD instead of local URI.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  12. #12
    Senior Member
    Real Name
    John
    Join Date
    Dec 2005
    Posts
    691
    Liked
    17 times
    I've tried using @import and linked via a cdn. They both have the same result with the editor not loading correctly. The wysiwyg class is the only class that does not load.

    btw, I did a comparison between @import and linked and the difference was substantial. Overall load time was decreased by a couple seconds average on thread pages.

  13. #13
    ALP
    ALP is offline
    Senior Member ALP's Avatar
    Real Name
    Emre
    Join Date
    Mar 2009
    Posts
    182
    Liked
    1 times
    Blog Entries
    2
    thanks brian

    CSS Compressor Robson » CSS Compressor --> is useful.

  14. #14
    Junior Member
    Real Name
    Gabriel
    Join Date
    Dec 2007
    Location
    Spain
    Posts
    19
    Liked
    0 times
    Hello, excellent information will try the tweak today.

    Just 2 questions:

    1. After following all the steps to I have to revert the 777?
    2. And also, is this tweak reversible?

    Regards!

  15. #15
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,782
    Liked
    648 times
    Blog Entries
    2
    You can convert the folder back to 755 if you wish, but any time you want to make a style/template change, you will need to go back to 777. It's not a big security issue as the FILE in the folder is chowed to vbulletin and will not be writable.

    Yes, it can be reverted. just need to change the option in vb Options back in step 4.
    Last edited by Brian Cummiskey; 01-13-2011 at 08:53 AM.
    Brian Cummiskey / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Rewrite root/subfolder/file.php to root/file.php
    By shokmuzik.com in forum URL Rewrite Settings
    Replies: 1
    Last Post: 12-24-2008, 03:00 PM
  2. Moving things to file system
    By Alfarin in forum General Discussion
    Replies: 1
    Last Post: 05-04-2008, 09:13 AM
  3. can i move the contents of the .htaccess file to the apache
    By tornadoseo in forum General Discussion
    Replies: 1
    Last Post: 03-30-2007, 10:14 AM
  4. move from .ext to .com
    By magnaromagna in forum General Discussion
    Replies: 1
    Last Post: 03-03-2007, 05:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •