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)

Zachery 11-21-2004 01:37 AM

Quote:

Originally Posted by bondjetta
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 :)

You want to use the settings right? same colors and such same css, but then you want to modifiy it but leave the original intact?

It will inherit all of the parrents changes, css and templates and everything else that a style ineherits.

;) trust me

bondjetta 11-21-2004 04:57 AM

Quote:

Originally Posted by Zachery
You want to use the settings right? same colors and such same css, but then you want to modifiy it but leave the original intact?

It will inherit all of the parrents changes, css and templates and everything else that a style ineherits.

;) trust me

no i want to write my own css file altogether, same structure (bbs_logo.gif, etc but more like bbs_logo_blue.gif or blue/bbs_logo.gif)

how come vB doesn't give me an option to declare my own style sheets? :( or does it and i'm missing the declaration in my style.xml file?

Zachery 11-21-2004 01:07 PM

Quote:

Originally Posted by bondjetta
no i want to write my own css file altogether, same structure (bbs_logo.gif, etc but more like bbs_logo_blue.gif or blue/bbs_logo.gif)

how come vB doesn't give me an option to declare my own style sheets? :( or does it and i'm missing the declaration in my style.xml file?

Its not specificly designed that way, you can if you want decalre them in the headinclude template.

bondjetta 11-21-2004 01:09 PM

Quote:

Originally Posted by Zachery
Its not specificly designed that way, you can if you want decalre them in the headinclude template.

ooh this is interesting.

can you explain why it was designed that way? maybe i'm just approaching this from the wrong angle ;)

Zachery 11-21-2004 01:13 PM

Quote:

Originally Posted by bondjetta
ooh this is interesting.

can you explain why it was designed that way? maybe i'm just approaching this from the wrong angle ;)

Well, If you are going about it the alternet style sheet route, mostly the only people who will take advantage of it will be Mozi and FF users.

If you just need to define more classes,
AdminCP > Styles & Templates > STyle Manager > Click on Go > Custom CSS

If you really want alternet styles i suggest making a new child style and customizing it from there.

bondjetta 11-21-2004 01:19 PM

Quote:

Originally Posted by Zachery
Well, If you are going about it the alternet style sheet route, mostly the only people who will take advantage of it will be Mozi and FF users.

If you just need to define more classes,
AdminCP > Styles & Templates > STyle Manager > Click on Go > Custom CSS

If you really want alternet styles i suggest making a new child style and customizing it from there.

maybe i can save some of your time ;) is there a how to or a deeper explanation of child styles? do i have to write the css IN vB's interface? that's sort of what's got me down, it's way faster for me to write my own and attach it, but perhaps not BEST if i do it that way.

Thank you for your patience Zachery, i would have flamed me by now ;)

Zachery 11-21-2004 01:26 PM

Quote:

Originally Posted by bondjetta
maybe i can save some of your time ;) is there a how to or a deeper explanation of child styles? do i have to write the css IN vB's interface? that's sort of what's got me down, it's way faster for me to write my own and attach it, but perhaps not BEST if i do it that way.

Thank you for your patience Zachery, i would have flamed me by now ;)

I enjoy my work and if I did not, Jelsoft would'nt have hired me ;)

You can write it yourself, in some other application and copy it into the additional css box.

Basicly, before in the long long ago of vB2, styles and template mods were a pain, because either all templates could share 1 single set, or all be unquie. Now in vB3 we have a parent child system However, this has always been the case to some degree as it was in vB2, just most people never knew, and you really couldnt take advantage of it.

We have the following template setup in vB3

*Master Hidden Style*
-Default Style

Now, everything that would be done to the master style if you were to edit it (but by default you cannot, and you really shouldnt) it would get inherited into the default style, unless that template or bit of css or style var, etc.. were already customized in the child style

So If you want to have a bunch of styles use the same template set but only differ in colors and images

Default Style
- Blue Style
- Orange Style
- Red Style
-- Red and Black Style

So like i said up there, any changes made to the default style, get inherited by all childeren, unless they have that aspect already customized. :) Lets take this abit further, lets say you make a few changes to the Red Style, it will have the changes and so will the Red and Black style, if you were to then make one more change to the Red and Black style, only the red and black style gets it.

bondjetta 11-21-2004 01:29 PM

Quote:

Originally Posted by Zachery
I enjoy my work and if I did not, Jelsoft would'nt have hired me ;)

You can write it yourself, in some other application and copy it into the additional css box.

Basicly, before in the long long ago of vB2, styles and template mods were a pain, because either all templates could share 1 single set, or all be unquie. Now in vB3 we have a parent child system However, this has always been the case to some degree as it was in vB2, just most people never knew, and you really couldnt take advantage of it.

We have the following template setup in vB3

*Master Hidden Style*
-Default Style

Now, everything that would be done to the master style if you were to edit it (but by default you cannot, and you really shouldnt) it would get inherited into the default style, unless that template or bit of css or style var, etc.. were already customized in the child style

So If you want to have a bunch of styles use the same template set but only differ in colors and images

Default Style
- Blue Style
- Orange Style
- Red Style
-- Red and Black Style

So like i said up there, any changes made to the default style, get inherited by all childeren, unless they have that aspect already customized. :) Lets take this abit further, lets say you make a few changes to the Red Style, it will have the changes and so will the Red and Black style, if you were to then make one more change to the Red and Black style, only the red and black style gets it.

ok i'm with you so far (THANKS) now how do i go about making a child style? do i have to write the xml or just go into Styles & Languages >> New Style and go from there? :D

I'm down with this ;) it might not be my ideal solution, but it just might be easier in the long run :D

Zachery 11-21-2004 01:32 PM

Quote:

Originally Posted by bondjetta
ok i'm with you so far (THANKS) now how do i go about making a child style? do i have to write the xml or just go into Styles & Languages >> New Style and go from there? :D

I'm down with this ;) it might not be my ideal solution, but it just might be easier in the long run :D

When you add a new style, there is a option to set a parrent style :)

bondjetta 11-21-2004 01:38 PM

Quote:

Originally Posted by Zachery
When you add a new style, there is a option to set a parrent style :)

so now let's say my images are normally in:

/img/ss/misc/bbs_logo.gif

i want the child style to point to:

/img/ss/misc/blue/bbs_logo.gif

how would I go about that? Edit every image entry in all templates via the Find and Replace option in Templates? :)


All times are GMT. The time now is 03:35 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.01234 seconds
  • Memory Usage 1,749KB
  • 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
  • (10)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