vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   CSS <link> hack (https://vborg.vbsupport.ru/showthread.php?t=65753)

AxelF 06-02-2004 12:18 PM

CSS <link> hack
 
Hi guys.
On our board at cableforum.co.uk we need a way to replace the CSS styles with an alternate version.
Instead of using
<style type="text/css">
/*
CSS here
*/
</style>

We need to use
<link href="path/to/style.css" type="text/css" />

This is quite important for us because half the page seems to be CSS and our bandwidth usage is getting silly. (The file method would mean it is cached in the browser, making the site faster too)
I know that we can use an @import version now but this will not work properly in all browsers.

Any ideas?

Just one other note, there seems to be an option to store CSS as file in the Admin CP but it doesn't appear to make any difference to how it's included in the pages?

Thanks in advance to anyone who can help. :)

Zachery 06-02-2004 01:52 PM

vBulletin already has this function built in, did you make sure to CHMOD the file before enabling this option?

AxelF 06-02-2004 04:23 PM

Ok, it was already enabled but something must have gone wrong with it when it was first set because I disabled then re-enabled it and now it works fine.
Thanks. :)

Zachery 06-02-2004 04:26 PM

IF the folder is not chmoded instead of breaking vBulletin just keeps the CSS inline for your own benifit ;)

IF you resave the option after youve chmoded the folder all will be good :D


All times are GMT. The time now is 04:38 PM.

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.01151 seconds
  • Memory Usage 1,705KB
  • 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
  • (4)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