View Single Post
  #2  
Old 02-24-2002, 08:25 PM
samtha25 samtha25 is offline
 
Join Date: Jan 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jawelin
]Hi.
This' the 3rd time I try this question, but nobody answered... so.
Well. I'm looking for a basic complete procedure or document to create styles.
Maybe no answers because your questions are more appropriate for vBulletin.com. Many of your questions are answered in their forums, but admittedly, it is not easy sifting through the threads and piecing together an overview of how styles work.

Quote:
Is there anything anywhere?
The section of the vBulletin user guide dealing with styles has never been completed, but there is a template reference PDF file available in the member's area. Although it has not been updated to reflect template changes made in the last few upgrades, it does describe most of the templates used by each of the php files, for example, index.php, and is useful.

Quote:
Actually I wouldn't make mistakes adding a new style to my board, and still have a lot of confusion about.
I would create a second style (besides the 'purple' standard one), and for example use the drop-down style hack to make the users choose among them. Just like vb.org.
Do you mean that you want to create other styles for your board?

Quote:
What are the entity-relationships between the assets:
style - templateset - template - more... ?
A style consists of the templates and the replacements variables. It's more or less a convenient construct.

Quote:
A new templateset is necessary for a new style?
Basically, yes, both a new template set and new set of replacement variables.

Quote:
When I'll have created a new style and would need to apply some hacks involving templates, should I reapply again and again the same modifications to the different templates in templatesets?
A hack of the php code would affect every style, I guess, unless specifically designed not to. Do you have something specific in mind?

Quote:
If changing for example only the color-sets and some small behavior of few pages (for instance, as here with a framed-like html on the center of the page), how could I manage the different baselines/branches of templates which would be developed ?
If you only make some minor changes, it's not very hard to manage, since vBulletin shows you the edited and original templates. You should download your styles files in any event as a backup. For more extensive changes, look at FireFly's Template Backup hack, which is also a very useful tool for editing templates offline and keeping track of template sets.

Quote:
Is there a checklist to avoid most famous mistakes?
I've never seen one. Probably the biggest mistake you can make is not retaining a backup copy of your styles files and losing all your edits to a crash or some such.

Try some experimenting and you'll have a better idea of how it all works. Create a new style for testing rather than changing the default templates. If you like the new style and want to make it default, you can then modify the default style to use the templates and replacements from that style.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02111 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete