Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-19-2004, 03:33 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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

So any hints/tips/etc? Thanks
Reply With Quote
  #2  
Old 11-19-2004, 04:59 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #3  
Old 11-19-2004, 05:06 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

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)
Reply With Quote
  #4  
Old 11-19-2004, 05:09 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

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.
Reply With Quote
  #5  
Old 11-19-2004, 05:12 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-19-2004, 05:39 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 11-19-2004, 06:00 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 11-20-2004, 11:42 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #9  
Old 11-20-2004, 11:42 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 11-21-2004, 12:18 AM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:52 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.04851 seconds
  • Memory Usage 2,263KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete