vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   calling vb's style.css from a php file? (https://vborg.vbsupport.ru/showthread.php?t=163665)

glorify 11-26-2007 06:58 PM

calling vb's style.css from a php file?
 
I have an addon php file that I instead of calling it's own css file, I want to add the css to vb's stylesheet.

That way I can use the file with different styles and have it's own stylesheet built into the default vb style.

The code I'd assume is here I'd have to modify in the .php file:
Code:

var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "mod_fpslideshow/jj_raster/mod_fpslideshow.css";'

I'd assume I would change it to:
Code:

var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "vbstylesheet.css";'

But I have no clue where the actual vb css is.

vertigo jones 11-26-2007 08:12 PM

It's at:

<forum home>/clientscript/vbulletin_css/style-<some number>.css

The number changes for each style. I assume it's somehow related to the style id.

glorify 11-26-2007 08:23 PM

So if it were style 27, would it look like:

Code:

var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "forums/clientscript/vbulletin_css/style-27.css";'

?

I can't direct link to that file in my browser.

vertigo jones 12-03-2007 09:04 PM

Quote:

Originally Posted by glorify (Post 1389873)
So if it were style 27, would it look like:

Code:

var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "forums/clientscript/vbulletin_css/style-27.css";'

?

I can't direct link to that file in my browser.

No, it's some random looking number. Check the clientscript/vbulletin_css folder. It should be in there.


All times are GMT. The time now is 09:59 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.00915 seconds
  • Memory Usage 1,719KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (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