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)
-   -   Link External Page to VB CSS Files (https://vborg.vbsupport.ru/showthread.php?t=126954)

jwashburn 09-18-2006 07:03 PM

Link External Page to VB CSS Files
 
I have a page outside of VB that I would like to use VB CSS styles on. The easy answer is to just view the CSS styles of a VB page and create a new CSS style sheet and link my external page to that, buts that more work if I make a change.

How would I link a page outside of VB to the style sheets that VB dynamically builds?

Is it even possible?

abenoking 01-14-2007 03:15 AM

Postmortem bump. I'd like to know this too.

I have set VB to output CSS as a file, and have integrated VB: I just need to know the function/variable call that will echo the users' selected stylesheet.

DPSR 01-14-2007 04:09 AM

I think first store the CSS as file in 'clientscripts/vbulletin_css' folder (chmod first 777)

You can find this option to store css as file in vbulletin option

and then, you can link that css file to your external pages!
Like-
Quote:

<link rel="stylesheet" type="text/css" href="http://www.yoursite.com/clientscript/vbulletin_css/style-0000000.css" id="vbulletin_css" />

abenoking 01-14-2007 05:47 AM

Quote:

Originally Posted by DPSR (Post 1158595)
I think first store the CSS as file in 'clientscripts/vbulletin_css' folder (chmod first 777)

You can find this option to store css as file in vbulletin option

and then, you can link that css file to your external pages!
Like-

Sort of.

The trick is that the script has to figure out which css file that the user has selected, as opposed to hard coding it like that.

There is probably a global variable or function that will do this, but I don't know what it is.

abenoking 01-28-2007 10:06 PM

Bump

Anybody? Not knowing how to do this is really holding me back on my project.


All times are GMT. The time now is 03:55 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.01148 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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