vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   External stylesheet (https://vborg.vbsupport.ru/showthread.php?t=173043)

asandhanam 03-14-2008 09:05 PM

External stylesheet
 
By default vbulletin puts all the stylevars within the <style> tag. Is it possible to externalize it (put them in an external stylesheet).

Lynne 03-14-2008 10:12 PM

I may be reading your question wrong, but if you are asking about having your stylesheets stored as files, then go to your Admin CP > Style & Language Settings > Store CSS Stylesheets as Files? and set to Yes. However, note this:

If you would like to store the CSS stylesheet for each style as a file, you must ensure that you have a directory called 'vbulletin_css' inside the 'clientscript' folder, and that the web server has permission to write and delete files within that directory.

asandhanam 03-19-2008 05:52 AM

Thanks for the reply. I couldn't find 'styles & language settings' in admincp.? I have a 'style manager' and 'language manager'. But even in the 'style manager' i couldn't find the setting to save css in external files.
To be more precise, if you view source on stage.lawinfo.com/chattest/, you can see the css within the <style> tags. Those correspond to the css settings in 'main css' under 'style manager'. I was wondering if those could be moved to an external style sheet, but still be editable via the admin panel. For SEO purposes, it would be a good idea to move it to an external style sheet.

SEOvB 03-19-2008 06:49 AM

under AdminCP -> vBulletin Options -> Styles and Language Settings

Not only good for SEO purposes but will also decrease your page load times :D

asandhanam 03-19-2008 04:49 PM

It worked !!!Awesome. Thanks for your help!!!

StarScream1 03-28-2008 03:45 AM

hmm how would i know it its working? i tried changing to css but the folder clientscript/vbulletin_css/ still remains empty with only 1 index.html. please advice.

must i change the permissions to the folder to 777?

SEOvB 03-28-2008 04:07 AM

make sure the permissions are 777 like you said.

Then after that, go to your forums and from your browsers menu Hit View -> View Source

if you've got a load of CSS at the top, its not working. If you don't have loads of CSS up top its working.

ssandgirls 09-06-2008 03:46 AM

I just did this also , my pages are loading much faster.... :)


All times are GMT. The time now is 01:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00960 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete