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

Reply
 
Thread Tools Display Modes
  #11  
Old 11-21-2004, 01:37 AM
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
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
Reply With Quote
  #12  
Old 11-21-2004, 04:57 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
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?
Reply With Quote
  #13  
Old 11-21-2004, 01:07 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
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.
Reply With Quote
  #14  
Old 11-21-2004, 01:09 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
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
Reply With Quote
  #15  
Old 11-21-2004, 01:13 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
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.
Reply With Quote
  #16  
Old 11-21-2004, 01:19 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, 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
Reply With Quote
  #17  
Old 11-21-2004, 01:26 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
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.
Reply With Quote
  #18  
Old 11-21-2004, 01:29 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
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?

I'm down with this it might not be my ideal solution, but it just might be easier in the long run
Reply With Quote
  #19  
Old 11-21-2004, 01:32 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'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?

I'm down with this it might not be my ideal solution, but it just might be easier in the long run
When you add a new style, there is a option to set a parrent style
Reply With Quote
  #20  
Old 11-21-2004, 01:38 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
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?
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 07:07 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.04246 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
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
  • (10)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