vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   XML Question (https://vborg.vbsupport.ru/showthread.php?t=71940)

bondjetta 11-19-2004 03:33 PM

XML Question
 
Sorry for posting this here but it seems most appropriate.

I'm just learning XML so keep that in mind ;) This is *sort* of a template question, but more so of a coding question.

If i want to split the CSS out of my style.xml file into its own file (style.css) how do I call style.css into style.xml so that it appears when I upload the style? :ermm: I've already setup the /clientscript/vbulletin_css/ with the correct permissions already :o

So any hints/tips/etc? :) Thanks

Zachery 11-19-2004 04:59 PM

Quote:

Originally Posted by bondjetta
Sorry for posting this here but it seems most appropriate.

I'm just learning XML so keep that in mind ;) This is *sort* of a template question, but more so of a coding question.

If i want to split the CSS out of my style.xml file into its own file (style.css) how do I call style.css into style.xml so that it appears when I upload the style? :ermm: I've already setup the /clientscript/vbulletin_css/ with the correct permissions already :o

So any hints/tips/etc? :) Thanks

You mean you want to store the CSS as a file?:

AdminCP > vBulletin Options > Style & Language settings > Store CSS Stylesheets as Files? > Yes ;)

bondjetta 11-19-2004 05:06 PM

Quote:

Originally Posted by Zachery
You mean you want to store the CSS as a file?:

AdminCP > vBulletin Options > Style & Language settings > Store CSS Stylesheets as Files? > Yes ;)

so I don't need to include a line in the xml style sheet to say that the css IS being stored externally? :D

sweeeeet...i'll try it tonight :) i thought it was more complicated (i did turn on store css as files already but wasn't sure what exactly it did)

Zachery 11-19-2004 05:09 PM

Quote:

Originally Posted by bondjetta
so I don't need to include a line in the xml style sheet to say that the css IS being stored externally? :D

sweeeeet...i'll try it tonight :) i thought it was more complicated (i did turn on store css as files already but wasn't sure what exactly it did)

Basicly if you want your style sheet stored externaly it needs to be enabled in the vB options.

Not all users are able to use this feature due to server restrictions, double check and see if there is a .css file for each of the styles of you board in the forums/clientscript/vbulletin_css folder.

bondjetta 11-19-2004 05:12 PM

Quote:

Originally Posted by Zachery
Basicly if you want your style sheet stored externaly it needs to be enabled in the vB options.

Not all users are able to use this feature due to server restrictions, double check and see if there is a .css file for each of the styles of you board in the forums/clientscript/vbulletin_css folder.

there isn't :(

here's my theory:
I'll remake the css sheets (no biggie) on my own, store them in /clientscript/vbulletin_css/xxx.css.

HOWEVER how do i tell the new style i'm uploading which style sheets to use? this is where i thought the style.xml file should include a reference to which css sheets to call.

Zachery 11-19-2004 05:39 PM

Quote:

Originally Posted by bondjetta
there isn't :(

here's my theory:
I'll remake the css sheets (no biggie) on my own, store them in /clientscript/vbulletin_css/xxx.css.

HOWEVER how do i tell the new style i'm uploading which style sheets to use? this is where i thought the style.xml file should include a reference to which css sheets to call.

well first, chmod that folder to 777, then disable and renable the option ;)

bondjetta 11-19-2004 06:00 PM

Quote:

Originally Posted by Zachery
well first, chmod that folder to 777, then disable and renable the option ;)

grrrr....that's my fault.

thanks Zachery! :D

bondjetta 11-20-2004 11:42 PM

Ok, i've done that, gotten the CSS out...but get this:

So i want to make a duplicate style as my default however using a new color scheme...seems easy right?

So i download the current style and style sheet, no problem. However when I go to upload the new theme the css isn't coming across. :(

Any ideas how to links the external CSS sheet to the style.xml file? this is starting to aggrevate me...i tried a few different things including just editing it after the file's uploaded and it's still not showing my "extra" CSS code... :ermm:

Zachery 11-20-2004 11:42 PM

Quote:

Originally Posted by bondjetta
Ok, i've done that, gotten the CSS out...but get this:

So i want to make a duplicate style as my default however using a new color scheme...seems easy right?

So i download the current style and style sheet, no problem. However when I go to upload the new theme the css isn't coming across. :(

Any ideas how to links the external CSS sheet to the style.xml file? this is starting to aggrevate me...i tried a few different things including just editing it after the file's uploaded and it's still not showing my "extra" CSS code... :ermm:

Add a new style, as a child of the main style :)

bondjetta 11-21-2004 12:18 AM

Quote:

Originally Posted by Zachery
Add a new style, as a child of the main style :)

how does that add the css? i want to use a .css file and not .xml

thanks for the help Zachery, i do appreciate it :)


All times are GMT. The time now is 04:11 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.01650 seconds
  • Memory Usage 1,738KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete